LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-17-2014, 06:54 AM   #1
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, exMandriva
Posts: 381

Rep: Reputation: 30
Try to clone software RAID1 - problems


Hello!
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
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,544

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


Reply


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


All times are GMT -5. The time now is 01:29 AM.

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