Hi,
Facing a little bit of an issue around the above monetioned topic.
My situation is that I have 3 SSD and 2 HDD attached in my system. I would like to use 2 SSD out of the 3 in a RAID1 array with btrfs.
I already installed Leap 42.3 on one SSD doing just a clean install, no software raid or anything just installing on a single SSD.
After the installation I copied the 1st ssd’s partition table to the 2nd ssd and cloned the EFI and boot partition’s content over (even the UUID is identical).
Tesla:~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 139.8G 0 disk
├─sda1 8:1 0 517M 0 part
├─sda2 8:2 0 517M 0 part
└─sda3 8:3 0 138.7G 0 part /var/lib/mysql
sdb 8:16 0 139.8G 0 disk
├─sdb1 8:17 0 517M 0 part /boot/efi
├─sdb2 8:18 0 517M 0 part /boot
└─sdb3 8:19 0 138.7G 0 part
sdc 8:32 0 139.8G 0 disk
sdd 8:48 0 9.1T 0 disk
sde 8:64 0 9.1T 0 disk
Tesla:~ # blkid
/dev/sdb1: SEC_TYPE="msdos" UUID="48E0-DA93" TYPE="vfat" PARTLABEL="primary" PARTUUID="1b0adde5-1aa3-4507-80a9-8986f6dfd312"
/dev/sdb2: UUID="89fa0582-bf5a-43ba-9beb-49978b87eedb" TYPE="ext4" PARTLABEL="primary" PARTUUID="bc4e0794-38ae-4741-be3f-0cb87309a84b"
/dev/sdb3: UUID="9ac7ecf4-c681-4cba-9178-521e60b6a71d" UUID_SUB="0c0090eb-08c0-49d1-8571-0e5631829e47" TYPE="btrfs" PARTLABEL="primary" PARTUUID="569d80e7-0774-4bb9-bf0d-08fdeb8f0b8e"
/dev/sda1: SEC_TYPE="msdos" UUID="48E0-DA93" TYPE="vfat" PARTLABEL="primary" PARTUUID="1b0adde5-1aa3-4507-80a9-8986f6dfd312"
/dev/sda2: UUID="89fa0582-bf5a-43ba-9beb-49978b87eedb" TYPE="ext4" PARTLABEL="primary" PARTUUID="bc4e0794-38ae-4741-be3f-0cb87309a84b"
/dev/sda3: UUID="9ac7ecf4-c681-4cba-9178-521e60b6a71d" UUID_SUB="9d645e5c-3191-4dca-a99c-edb775552da6" TYPE="btrfs" PARTLABEL="primary" PARTUUID="569d80e7-0774-4bb9-bf0d-08fdeb8f0b8e"
And created the RAID1
Tesla:~ # btrfs fi df /
Data, RAID1: total=6.00GiB, used=5.75GiB
System, RAID1: total=32.00MiB, used=16.00KiB
Metadata, RAID1: total=1.00GiB, used=200.84MiB
GlobalReserve, single: total=19.53MiB, used=0.00B
Tesla:~ # btrfs fi show /
Label: none uuid: 9ac7ecf4-c681-4cba-9178-521e60b6a71d
Total devices 2 FS bytes used 5.94GiB
devid 1 size 138.72GiB used 7.03GiB path /dev/sda3
devid 2 size 138.72GiB used 7.03GiB path /dev/sdb3
After this I mounted the boot, EFI partitions and required virtual directories (/dev /dev/pts /sys /proc /run) and chrooted to sdb3, installed and updated both drive’s grub.
Next what I was trying to simulate is a worst case scenario where I loose sda and the system has to run or boot from sdb. Was removing the 1st ssd, trying the boot option first, but it doesn’t seem to work. It does have a grub menu and starts booting, but due to missing dependencies it won’t boot for some reason. I assume it is lacking the ability to actaully mount the disk with the UUID.
So I have 2 assumptions:
1.) I actually missing something or do something wrong,
2.) Btrfs actaully not supposed to boot from only 1 disk available from the 2 in the array.
Would appreciate if someone could provide some guidance in what am I doing wrong.