Yet, it's slightly different...
This HowTo is used in case you had a mirrored Linux Kernel Software RAID-1.
I've had 2 disks mirrored, attached as external USB devices. Both disks are 3TB, therefore GPT partitioned.
No auto-RAID partition, but directly on the disks. This means, for example: "/dev/sda" - instead of "/dev/sda1"
The disks were in an unknown state.
After connecting the drives to the computer, the physical devices showed up. In my case "/dev/sdc" and "/dev/sdd".
Check if the disks still "know" that they belong together somewhat:
Code: Select all
$ sudo blkid
You can see, that both have the same UUID and are marked "linux_raid_member"./dev/sdc: UUID="3d3e767b-abda-c80f-97b4-4267567fe5a7" LABEL="ferry-1:video_inbox" TYPE="linux_raid_member"
/dev/sdd: UUID="3d3e767b-abda-c80f-97b4-4267567fe5a7" LABEL="ferry-1:video_inbox" TYPE="linux_raid_member"
Seems good.
Yet, there is no /dev/mdX device assigned by the OS automatically.
Auto-assemble (--scan) won't work, so we have to tell the Kernel manually to create the md-device and which disks to assign:
Code: Select all
$ sudo mdadm --assemble /dev/md1 /dev/sdd /dev/sdc
In my case, that brought up the array. Status: "RESYNC PENDING" (of course).
That's it.