LinuxQuestions.org
Visit Jeremy's Blog.
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, 01: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, 11:48 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229Reputation: 2229
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, 08: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 01:57 PM
Legality of raid on home of iPhone blogger raid queried Jeebizz Linux - News 0 04-28-2010 12:26 PM
[SOLVED] Hardware RAID vs Software RAID and DATA RECOVERY bskrakes Linux - General 7 07-04-2008 02:09 PM
RAID recovery question: can permissions/ownership get whacked? Alotau Linux - General 1 04-19-2007 02:53 PM
RAID Recovery DavidPhillips Linux - General 0 10-03-2001 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration