After a restart which stalled, I did a hard reboot and now mdadm can't see the RAID 6 array anymore, LVM can't find the volume which was on that raid array. I have looked into
/etc/mdadm/mdadm.conf, it doesn't contain my
/dev/md2 (the RAID 6 array).
How can I restore the RAID 6 array and then the LVM volume without losing any data?
OK, so I did an
mdadm --assemble --scan and it re-assembled
/dev/md2, but it missed one of the drives. The missing drive seems to have been added to a new, inactive array:
md_d2 : inactive sdb1(S) 1953511936 blocks
Going to remove it now and add manually to
Still not sure about the missing LVM group & volume...
OK, after re-assembling the array, I got the LVM back:
root@freetunes:~# pvdisplay --- Physical volume --- PV Name /dev/md2 VG Name lvm-raid PV Size 5.46 TiB / not usable 43.50 MiB Allocatable yes (but full) PE Size 256.00 MiB Total PE 22356 Free PE 0 Allocated PE 22356 PV UUID sJxydW-lMTJ-fsQn-Bln1-z6Cj-Dt6F-OPxMtr root@freetunes:~# lvdisplay --- Logical volume --- LV Name /dev/lvm-raid/lvm0 VG Name lvm-raid LV UUID D7Wj1A-wiJk-NxlM-IDdH-0uM4-aF1r-Fbpjjr LV Write Access read/write LV Status available # open 0 LV Size 5.46 TiB Current LE 22356 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 1536 Block device 251:0