I had an raid1 partition with ext4 on it which was empty.
it was /dev/md124 which was made up of /dev/sda1 and /dev/sdb1, I decided
to change this to be a btrfs partition.
Initially I figured I'd simply unmount /dev/md124 and simply do a
"mkfs.btrfs -f -L home2 /dev/md124" and remount the partition, however
after doing some reading I believe btrfs supports raid1 directly without
using the software raid driver md (?).
so I then tried "mkfs.btrfs -m raid1 -d raid1 -L home2 -f /dev/sdb1
/dev/sda1" and something was successfully created but this is where I am
confused, is this truly a raid1 partition? secondly mounting this
partition I simply specify something like "mount /dev/sda1 /mntpoint".
I can see -
# btrfs filesystem show
Label: 'home2' uuid: 635be1e8-31d2-4b5c-b81c-1ec2cd8d9101
Total devices 2 FS bytes used 664.00KiB
devid 1 size 376.46GiB used 2.01GiB path /dev/sdb1
devid 2 size 376.46GiB used 2.01GiB path /dev/sda1
To me this looks like two different partitions but I maybe wrong, so
assuming it is one raid partition how would I go around having this auto
mounted in /etc/fstab? I would assume this entry -
UUID=635be1e8-31d2-4b5c-b81c-1ec2cd8d9101 /home2 btrfs defaults 0 0
but I'm looking for some confirmation first that I actually have a raid
partition and I've done everything correctly first.
Lastly if I'm reading correctly the system will NOT automatically mount a
degraded array, how can I force it to automatically mount on a reload even
if the array is degraded.
Thanks, Jeff