How to setup a RAID5 btrfs pool from 3 disks
井民全, Jing, mqjing@gmall.com
1. Quick
1.1. Clean all disc
1.2. Install the system
2. Procedure
2.1. Step 1: Install BTRFS
E.g.
2.2. Step 2: Create BTRFS pool with RAID-5 using three disks
E.g.
2.3. Step 3: Mount and create btrfs subvolume on it
To mount the RAID-5 pool, you can reference either device when your file system contains multiple devices. Here, the /dev/sdb was chosen.
2.4. Step 4 Create a new lxd storage pool
2.4.1. Check the storage
lxc storage list
2.4.2. Check the storage size
lxc storage info mylxd-btrfspool
3. Mounting the btrfs filesystem
3.1. Get btrfs filesystem UUID
E.g.
3.2. Setup fstab
We mount the mybtrfs-pool (56bd1605-9358-466d-b45c-a988957d7945) on /home/pi/data.
4. References
Mount & resize the btrfs system, https://www.thegeekdiary.com/centos-rhel-how-to-create-and-mount-btrfs-file-system-explained-with-examples/
UUID=e7e5c123-fg76-5gxx-a87d-gt5fed9r768e /data btrfs defaults 0 0