1 |
... I am quite happy now with the performance of that new server I am |
2 |
preparing. |
3 |
|
4 |
See thread "Intel(R) C600 SAS Controller" for that story: |
5 |
|
6 |
https://www.mail-archive.com/gentoo-user@l.g.o/msg146119.html |
7 |
|
8 |
Right now I get quite good results when doing backups of the 2 existing |
9 |
VMs (which have their virtio-disks on LVM-LVs on the host) ... up to |
10 |
200MB/s ... I can show for reference, if someone is interested. |
11 |
|
12 |
I think that is around the possible maximum. |
13 |
|
14 |
---> |
15 |
|
16 |
The issue I want to share with you is related to a btrfs subvol I have here. |
17 |
|
18 |
Block device sda builds the btrfs-pool containing the root-fs: |
19 |
|
20 |
# btrfs fi show |
21 |
Label: ROOT uuid: 9133c469-df1e-45f5-a09f-d1b9c75c69da |
22 |
Total devices 1 FS bytes used 29.47GiB |
23 |
devid 1 size 500.00GiB used 278.04GiB path /dev/sda |
24 |
|
25 |
Btrfs v3.12 |
26 |
|
27 |
These are the subvolumes (I could/should rm some, but it doesn't matter |
28 |
for this issue, afaik): |
29 |
|
30 |
# btrfs su list / |
31 |
ID 257 gen 4282 top level 5 path __active |
32 |
ID 258 gen 4874 top level 5 path __active/root |
33 |
ID 266 gen 4772 top level 258 path images |
34 |
ID 267 gen 838 top level 258 path images/otrs |
35 |
ID 289 gen 4285 top level 258 path images/windows |
36 |
ID 538 gen 4874 top level 5 path __active/virt-backup |
37 |
|
38 |
|
39 |
fstab has: |
40 |
|
41 |
# grep btrfs /etc/fstab |
42 |
LABEL=ROOT / btrfs defaults,noatime,compress=lzo 0 0 |
43 |
LABEL=ROOT /mnt/virt-backup btrfs compress=no,noatime,subvolid=538 0 0 |
44 |
|
45 |
|
46 |
... so I want to mount subvolid 538 with disabled compression (to speed |
47 |
up backups as the files written to it are compressed on the fly via pigz |
48 |
already). |
49 |
|
50 |
|
51 |
But after booting I get that dir mounted with compress=lzo (which is |
52 |
default). |
53 |
|
54 |
# mount | grep btrfs |
55 |
/dev/sda on / type btrfs (rw,noatime,compress=lzo,space_cache) |
56 |
/dev/sda on /mnt/virt-backup type btrfs |
57 |
(rw,noatime,compress=lzo,space_cache) |
58 |
|
59 |
remounting works, though: |
60 |
|
61 |
booze ~ # mount -o remount,compress=no /mnt/virt-backup/ |
62 |
|
63 |
booze ~ # mount | grep btrfs |
64 |
/dev/sda on / type btrfs (rw,noatime,space_cache) |
65 |
/dev/sda on /mnt/virt-backup type btrfs (rw,noatime,space_cache) |
66 |
|
67 |
BUT it remounts / without compression as well ... ! |
68 |
|
69 |
Is it a bug? A mistake or misunderstanding? |
70 |
|
71 |
Could someone test this on his gentoo-btrfs-box? |
72 |
|
73 |
-- |
74 |
|
75 |
Additional info: |
76 |
|
77 |
# cat /proc/version |
78 |
Linux version 3.12.21-gentoo-r1 ... |
79 |
|
80 |
sys-fs/btrfs-progs-3.12-r1 |
81 |
|
82 |
# btrfs su get-default / |
83 |
ID 258 gen 4886 top level 5 path __active/root |
84 |
|
85 |
# line in grub.cfg mounts default subvol (because no specific subvol is |
86 |
specified) |
87 |
|
88 |
linux /boot/vmlinuz-3.12.21-gentoo-r1 |
89 |
root=UUID=9133c469-df1e-45f5-a09f-d1b9c75c69da ro |
90 |
|
91 |
Thanks, regards, Stefan |