LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-17-2016, 04:09 PM   #1
sierrajam
LQ Newbie
 
Registered: Jan 2015
Distribution: Slackware
Posts: 10

Rep: Reputation: Disabled
Recovery from RAID failure. Device names changed eg. /dev/md2 to /dev/md/2


I have had a drive fail in my RAID(1) array on my home server and I'm wanting to get the system back up temporarily while I obtain a replacement.

Unfortunately two of my RAID partitions have not come back. I have done an "mdadm --examine --scan" and this now shows something like this:
Quote:
...
ARRAY /dev/md/2 metadata=1.2 UUID=c82af915:d1a84066:bbc4cbf5:b347b05b name=Microknoppix:2
ARRAY /dev/md3 UUID=6dff6efd:a8f89543:1e12c7ee:6e1c64bf
ARRAY /dev/md4 UUID=6166d42f:4711b973:1e12c7ee:6e1c64bf
ARRAY /dev/md/5 metadata=1.2 UUID=8bb05937:c501ba5d:f30f52e7:be86dc9a name=slackware:5
Partitions /dev/md2 and /dev/md5 are not mounted and appear to have been renamed /dev/md/2 and /dev/md/5.
The underlying partitions were/are simply /dev/sda2, /dev/sdb2 etc.

Is there some way of forcing the /dev/md2 array to be created on boot or do I need to create a new array using the updated "/dev/md/2" terminology ?
(Note: I'm OK that this runs degraded in the short term.)
 
Old 01-18-2016, 10:14 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Has the UUID changed? How is the array referenced in /etc/fstab?
 
Old 01-18-2016, 01:22 PM   #3
sierrajam
LQ Newbie
 
Registered: Jan 2015
Distribution: Slackware
Posts: 10

Original Poster
Rep: Reputation: Disabled
No the UUID is unchanged. I just unplugged the failed drive and rebooted.

I tried adjusting the names in both /etc/mdadm.conf and /etc/fstab to refer to /dev/md/2 but this made no difference.
 
Old 01-18-2016, 06:20 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Have a look in the initramfs.
Easy to test with a liveCD rather than the system itself - assemble the array(s) yourself and mount them anywhere just to check.
 
  


Reply

Tags
raid



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
[SOLVED] Why is there a need for /dev/null, /dev/zero and other special device (files) in /dev suttiwit Linux - General 13 08-07-2012 12:26 AM
[SOLVED] Raid device /dev/md2 not sustaining vinaytp Linux - Newbie 3 05-20-2010 02:04 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:12 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