On the computer you currently have the RAID1 running, unmount it if it's still mounted.
Then type:
Code: Select all
$ mdadm -S /dev/mdx
NOTE: Stopping the software RAID is important, because with unmounting alone you will cause the softraid to think that the harddisk "disappeared" and it will require a complete re-sync.
2) Unplug the disks and move them to the target computer
3) Attach the disks individually:
I prefer to attach the disks one by one, check it's softraid status and make sure it's not automatically starting without having all its drives present.
Attaching a disk should list the RAID as inactive, with the disk present marked as spare.
/proc/mdstat might look something like this:
4) That should be it.md127 : inactive sdg1[2](S)
524156928 blocks super 1.2
Once all disks are present, the array automatically assigns them to the same array as before and starts it.
Check /proc/mdstat to be sure. It should look something like this:
Important is the part with "[UU]", which means that both disks are up. If you see a "[U_]" or "[_U]" it means that one device is considered missing. Do not start the array while in that state, or you will have to re-sync.md127 : active (auto-read-only) raid1 sdh1[0] sdg1[2]
524156736 blocks super 1.2 [2/2] [UU]