Try to clone software RAID1 - problems
i try to clone my software raid system based on two discs - slackware64 14.1
there is thre partitions - /sda1 | sdb1 as / and as md1
sda2 | sdb2 as swap and md2
sda3 | sdb3 as /secondary and md3
my idea to clone that raid system with all data is add to system third physical disc ( sdc), boot up system, and do:
sfdisk -d /dev/sda |sfdisk /dev/sdc : done, ok. partition table copied.
now i try to do
mdadm /dev/md1 --add /dev/sdc1 : there i got problem - got message
mdadm: Cannot open /dev/sdc1: device or resource busy
it is even not mounted. any ideas?
PS after that i plan to do mdadm -G /dev/md1 -n3 , wait to finish syncing, and then mdadm -f /dev/sdc1 and mdadm -r /dev/sdc1.
after that, i hope, i can put that removed sdc disk as primary in new system, boot from it, add new disk, syncing, and get working copy of my first RAID1...?
The kernel only knows about the new partition table if you reboot, or force it to reread the disk with:
|All times are GMT -5. The time now is 11:18 AM.|