Good day.
My setup goal:
1x ssd for boot and install of the OS
2 x hdd in raid1 for /etc/home/files
I have been following the guides on raid in the documentation section. "wiki.koozali.org/Raid"
I can successfully create a raid1: md211
lsblk --fs
NAME FSTYPE LABEL UUID MOUNTPOINT
sdb
├─sdb1 vfat A6C6-EEE6 /boot/efi
├─sdb2 xfs d823d387-aa6e-4496-8ac0-fadfd7eac4a0 /boot
├─sdb3 swap 4a040fd9-f670-4d17-8960-34d35b7d4779 [SWAP]
└─sdb4 xfs 23dc1ef0-8f6a-4ee1-9c38-568b6278bbde /
sdc linux_raid_member 211 f295044e-f81a-9dd3-6553-512577e7d563
└─md211 xfs bff6fa99-eec8-4284-9d4f-9e03dcf2992f /mnt/newdisk
sdd linux_raid_member 211 f295044e-f81a-9dd3-6553-512577e7d563
└─md211 xfs bff6fa99-eec8-4284-9d4f-9e03dcf2992f /mnt/newdisk
I then add the needed info to /etc/mdadm.conf:
ARRAY /dev/md211 level=raid1 num-devices=2 metadata=1.2 UUID=f295044e:f81a9dd3:65535125:77e7d563
devices=/dev/sdc,/dev/sdd
I then add the following to /etc/fstab:
# UUID=bff6fa99-eec8-4284-9d4f-9e03dcf2992f /mnt/newdisk xfs uquota,gquota 0 0
UUID=bff6fa99-eec8-4284-9d4f-9e03dcf2992f /home/e-smith/files xfs uquota,gquota 0 0
If I restart the system with either of the above active, even none of the above, the raid md211 is gone unfortunately.
Before reboot:
cat /proc/mdstat
Personalities : [raid1]
md211 : active raid1 sdd[1] sdc[0]
1953382464 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk
After reboot: There are no raid any longer...
cat /proc/mdstat
Personalities :
unused devices: <none>
??????
lsblk --fs
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat A6C6-EEE6 /boot/efi
├─sda2 xfs d823d387-aa6e-4496-8ac0-fadfd7eac4a0 /boot
├─sda3 swap 4a040fd9-f670-4d17-8960-34d35b7d4779 [SWAP]
└─sda4 xfs 23dc1ef0-8f6a-4ee1-9c38-568b6278bbde /
sdb
└─sdb1 LVM2_member yXZ182-32lu-jZ4x-H1VY-dpZV-aPVs-qWy5wU
sdc
└─sdc1 LVM2_member Ppb9rl-s8cG-H6r0-1XCq-bCFO-I2mi-NiLWbA
I have also added the following to /etc/default/grub: "rd.md=1 rd.md.conf=1 rd.auto=1"
GRUB_CMDLINE_LINUX="resume=UUID=4a040fd9-f670-4d17-8960-34d35b7d4779 rhgb quiet rootflags=uquota,pquota rd.md=1 rd.md.conf=1 rd.auto=1"
Unfortunately this also does not help the raid survive past a reboot...
After a reboot the system does not boot and gets stuck at "single user mode". I disable the added info at /etc/fstab, only after that the system will complete a reboot...
I am clearly not doing something that is still required, or doing something wrong?
Any assistance would be appreciated pls.
PS. after a reboot, there are still something on the 2 x hdds...
How can I then get the raid1 active again short of rebuilding again? (mdadm --create)