Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-17-2014, 06:54 AM   #1
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 579

Rep: Reputation: 72
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...?
Old 03-17-2014, 09:50 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,798

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
The kernel only knows about the new partition table if you reboot, or force it to reread the disk with:
blockdev --rereadpt /dev/sdc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.04LTS software raid1 problems rytec Linux - Server 2 12-17-2010 03:25 PM
[SOLVED] Software Raid1 problems lpallard Linux - Software 10 10-09-2010 06:58 PM
Software RAID1 problems, won't take /dev/sdb2 ? michaelsanford Linux - General 4 01-08-2006 07:46 PM
Software RAID1 problems robbow52 Debian 7 11-15-2004 10:52 AM
Software RAID1 problems robbow52 Linux - Software 1 07-28-2004 09:32 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration