recover two usb drives raid1 after system failure
by edvdrmark from LinuxQuestions.org on (#4Y2CT)
with a raspberrypi (hostname: homer) I had set up a raid1 with two usb drives of 5Tb using mdadm. All worked perfect until the system failed.
After connecting the two drives on my laptop lsblk -f gives the following output (part):
sdc
a""a"sdc1 linux_r homer:0 a3e7388f-b23e-585f-c61c-9573d129fca1
a""a"md127 ext4 5c40fa6a-ee42-40a9-a45b-d04da893b67d /media/ed/
sdd
a""a"sdd1 linux_r homer:0 a3e7388f-b23e-585f-c61c-9573d129fca1
Until now I have not written anything to the drives. When I inspect the md127 (/dev/sdc1), it seems that all the files are present. But I don't see anything on /dev/sdd1.
My simple (?) question is: can I recover the two drives as raid1 again without dataloss?
I hope someone can help me. It's about 1 Tb data.
Thanks in advance, kind regards Ed


After connecting the two drives on my laptop lsblk -f gives the following output (part):
sdc
a""a"sdc1 linux_r homer:0 a3e7388f-b23e-585f-c61c-9573d129fca1
a""a"md127 ext4 5c40fa6a-ee42-40a9-a45b-d04da893b67d /media/ed/
sdd
a""a"sdd1 linux_r homer:0 a3e7388f-b23e-585f-c61c-9573d129fca1
Until now I have not written anything to the drives. When I inspect the md127 (/dev/sdc1), it seems that all the files are present. But I don't see anything on /dev/sdd1.
My simple (?) question is: can I recover the two drives as raid1 again without dataloss?
I hope someone can help me. It's about 1 Tb data.
Thanks in advance, kind regards Ed