Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: btrfs fails to balance
Date: Tue, 20 Jan 2015 02:50:45
Message-Id: 54BDC0FE.7000807@iinet.net.au
In Reply to: [gentoo-user] Re: btrfs fails to balance by James
1 On 20/01/15 00:50, James wrote:
2 > Bill Kenworthy <billk <at> iinet.net.au> writes:
3 >
4 >
5 >>> Am 19.01.2015 um 09:32 schrieb Bill Kenworthy:
6 >
7 >>>> Can someone suggest what is causing a balance on this raid 1
8 >
9 > Interesting.
10 > I am about to test (reboot) a btrfs, raid one installation.
11 >
12 >> Brilliant, you have hit on the answer! - The ancient 300GB system disk
13 >> was sda at one point and moved to sdb - possibly at the time I changed
14 >> to using UUID's. Ive just resized all the disks and its now moved past
15 >> 300G for the first time as well as the other two falling in step with
16 >> the data moving.
17 >
18 > I was wondering what my /etc/fstab should look like using uuids, raid 1 and
19 > btrfs.
20 >
21 > Could you post your /etc/fstab and any other modifications you made to
22 > your installation related to the btrfs, raid 1 uuid setup?
23 >
24 > I'm just using (2) identical 2T disks for my new gentoo workstation.
25 >
26 >> I moved to UUID's as the machine has a number of sata ports and a PCI-e
27 >> sata adaptor and the sd* drive numbering kept moving around when I added
28 >> the WD red.
29 >
30 >
31 > Eventually, I want to run CephFS on several of these raid one btrfs
32 > systems for some clustering code experiments. I'm not sure how that
33 > will affect, if at all, the raid 1-btrfs-uuid setup.
34 >
35 >
36 > TIA,
37 > James
38 >
39 >
40 >
41 >
42
43 Sorry about the line wrap:
44
45 rattus backups # lsblk
46 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
47 sda 8:0 0 1.8T 0 disk
48 sdb 8:16 0 279.5G 0 disk
49 ├─sdb1 8:17 0 100M 0 part
50 ├─sdb2 8:18 0 8G 0 part [SWAP]
51 └─sdb3 8:19 0 271.4G 0 part /
52 sdc 8:32 0 1.8T 0 disk /mnt/vm
53 sdd 8:48 0 1.8T 0 disk
54 sde 8:64 0 1.8T 0 disk
55 rattus backups #
56
57 rattus backups # blkid
58 /dev/sda: UUID="f5a284b6-442f-4b3d-aa1a-8d6296f517b1"
59 UUID_SUB="9003b772-3487-447a-9794-50cf9880a9c0" TYPE="btrfs" PTTYPE="dos"
60 /dev/sdc: UUID="f5a284b6-442f-4b3d-aa1a-8d6296f517b1"
61 UUID_SUB="20523d9d-3d90-439e-ad68-62def0824198" TYPE="btrfs"
62 /dev/sdb1: UUID="cc5f4bf7-28fc-4661-9d24-a0c9d0048f40" TYPE="ext2"
63 /dev/sdb2: UUID="dddb7e60-89a9-40d4-bf6b-ff4644e079e9" TYPE="swap"
64 /dev/sdb3: UUID="04d8ff4f-fe19-4530-ab45-d82fcd647515"
65 UUID_SUB="72134593-8c9f-436f-98ce-fbb07facbf35" TYPE="btrfs"
66 /dev/sdd: UUID="f5a284b6-442f-4b3d-aa1a-8d6296f517b1"
67 UUID_SUB="2ca026f7-e5c9-4ece-bba1-809ddb03979b" TYPE="btrfs"
68 rattus backups #
69
70
71 rattus backups # cat /etc/fstab
72
73 UUID=cc5f4bf7-28fc-4661-9d24-a0c9d0048f40 /boot
74 ext2 noauto,noatime
75 1 2
76 UUID=04d8ff4f-fe19-4530-ab45-d82fcd647515 /
77 btrfs
78 defaults,noatime,compress=lzo,space_cache 0 0
79 UUID=dddb7e60-89a9-40d4-bf6b-ff4644e079e9 none
80 swap sw
81 0 0
82 UUID=f5a284b6-442f-4b3d-aa1a-8d6296f517b1 /mnt/btrfs-root
83 btrfs
84 defaults,noatime,compress=lzo,space_cache 0 0
85 UUID=f5a284b6-442f-4b3d-aa1a-8d6296f517b1 /home/wdk
86 btrfs
87 defaults,noatime,compress=lzo,space_cache,subvolid=258 0 0
88 UUID=f5a284b6-442f-4b3d-aa1a-8d6296f517b1 /mnt/backups
89 btrfs
90 defaults,noatime,compress=lzo,space_cache,subvolid=365 0 0
91 UUID=f5a284b6-442f-4b3d-aa1a-8d6296f517b1 /mnt/vm
92 btrfs
93 defaults,noatime,compress=lzo,space_cache,subvolid=14916 0 0
94
95 rattus backups #