Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] btrfs fails to balance
Date: Mon, 19 Jan 2015 09:09:03
Message-Id: 20150119100843.56d50af8@marcec.fritz.box
In Reply to: [gentoo-user] btrfs fails to balance by Bill Kenworthy
1 Am Mon, 19 Jan 2015 16:32:53 +0800
2 schrieb Bill Kenworthy <billk@×××××××××.au>:
3
4 > Can someone suggest what is causing a balance on this raid 1, 3 disk
5 > volume to successfully complete but leave the data unevenly distributed?
6 > Content is mostly VM images.
7 >
8 > sdc and sdd are 2TB WD greens, and sda is a 2TB WD red.
9 >
10 >
11 > rattus backups # btrfs fi sh
12 > Label: none uuid: 04d8ff4f-fe19-4530-ab45-d82fcd647515
13 > Total devices 1 FS bytes used 8.25GiB
14 > devid 1 size 271.36GiB used 23.04GiB path /dev/sdb3
15 >
16 > Label: none uuid: f5a284b6-442f-4b3d-aa1a-8d6296f517b1
17 > Total devices 3 FS bytes used 1.90TiB
18 > devid 1 size 1.82TiB used 1.77TiB path /dev/sdc
19 > devid 2 size 1.82TiB used 1.77TiB path /dev/sdd
20 > devid 4 size 1.82TiB used 270.03GiB path /dev/sda
21 >
22 > Btrfs v3.18
23 > rattus backups # btrfs fi df /mnt/btrfs-root/
24 > Data, RAID1: total=1.90TiB, used=1.89TiB
25 > System, RAID1: total=32.00MiB, used=464.00KiB
26 > Metadata, RAID1: total=8.00GiB, used=6.53GiB
27 > GlobalReserve, single: total=512.00MiB, used=0.00B
28 > rattus backups # btrfs fi usage /mnt/btrfs-root/
29 > Overall:
30 > Device size: 5.46TiB
31 > Device allocated: 3.81TiB
32 > Device unallocated: 1.65TiB
33 > Used: 3.80TiB
34 > Free (estimated): 845.00GiB (min: 845.00GiB)
35 > Data ratio: 2.00
36 > Metadata ratio: 2.00
37 > Global reserve: 512.00MiB (used: 154.42MiB)
38 >
39 > Data,RAID1: Size:1.90TiB, Used:1.89TiB
40 > /dev/sda 265.00GiB
41 > /dev/sdc 1.77TiB
42 > /dev/sdd 1.77TiB
43
44
45 OK, that is odd. While my experience with BTRFS RAID1 was that the FS is never
46 perfectly balanced, this is just... weird.
47
48 If I were you, I would ask on the BTRFS ML.
49
50 > Metadata,RAID1: Size:9.00GiB, Used:6.96GiB
51 > /dev/sda 6.00GiB
52 > /dev/sdc 7.00GiB
53 > /dev/sdd 5.00GiB
54
55 This I would see as perfectly possible with BTRFS RAID1.
56
57 > System,RAID1: Size:32.00MiB, Used:464.00KiB
58 > /dev/sda 32.00MiB
59 > /dev/sdd 32.00MiB
60 >
61 > Unallocated:
62 > /dev/sda 1.55TiB
63 > /dev/sdc 47.02GiB
64 > /dev/sdd 47.99GiB
65 > rattus backups #
66
67 HTH
68 --
69 Marc Joliet
70 --
71 "People who think they know everything really annoy those of us who know we
72 don't" - Bjarne Stroustrup