LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-19-2014, 12:00 AM   #1
nick_th_fury
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Slackware, NetBSD
Posts: 151

Rep: Reputation: 23
/home Raid Recovery Question


I have an existing /home RAID1 consisting of /dev/sdb1 and /dev/sdc1.
My root drive failed and have replaced. Slack14.1-64 is installed on the new /dev/sda & is running fine.

Trying to assemble the raid so I can setup /home again, but it errors.
So just looking for ideas as to what Iím doing wrong. No raid setup or running.

Running this command:
Code:
 mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1
It errors.
Code:
 mdadm: /dev/sdb1 is busy - skipping
 mdadm: /dev/sdc1 is busy - skipping
Iím obviously missing a step. The raid disks where in sync before my root drive failed.
Do I need to create the raid again before I assemble? Iíd rather not wipe out my /home data if I can help it.
ie.
Code:
mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm --detail --scan >> /etc/mdadm.conf
Just as a Workstation user thatís new to this as Iíve never had a software raid before, so any advice is appreciated.
Thanks
 
Old 07-19-2014, 10:48 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,515

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
When you boot the new system, what does
Code:
cat /proc/mdstat
print out?

Your array may be auto-assembled but using a different device name than you expect.

See this comment (and maybe the entire thread to get the full context). If you are using an initrd, it may have the default /etc/mdadm.conf file which will result in your array being assembled as /dev/md127 or similar.
 
1 members found this post helpful.
Old 07-22-2014, 07:01 PM   #3
nick_th_fury
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Slackware, NetBSD
Posts: 151

Original Poster
Rep: Reputation: 23
That was it. I thought I needed to assemble it after install, but it was already done.
Sheepish, but learned a lot about auto raid recovery in the kernel. Its impressive.
Just added /dev/md127 to my fstab as /home and everything works perfectly.
Thank you.
 
  


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
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 12:57 PM
Legality of raid on home of iPhone blogger raid queried Jeebizz Linux - News 0 04-28-2010 11:26 AM
[SOLVED] Hardware RAID vs Software RAID and DATA RECOVERY bskrakes Linux - General 7 07-04-2008 01:09 PM
RAID recovery question: can permissions/ownership get whacked? Alotau Linux - General 1 04-19-2007 01:53 PM
RAID Recovery DavidPhillips Linux - General 0 10-03-2001 10:59 AM


All times are GMT -5. The time now is 01:33 PM.

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