LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   /home Raid Recovery Question (https://www.linuxquestions.org/questions/slackware-14/home-raid-recovery-question-4175511569/)

nick_th_fury 07-19-2014 12:00 AM

/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

Richard Cranium 07-19-2014 10:48 AM

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.

nick_th_fury 07-22-2014 07:01 PM

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.


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