LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-21-2016, 09:36 AM   #1
usao
Member
 
Registered: Dec 2011
Location: Chandler, AZ
Posts: 286

Rep: Reputation: Disabled
CentOS 6.7 - Missing md0 raid


I created a raid array using:
mdadm -Cv -l5 -c1024 -n3 -pls /dev/md0 /dev/sd{b,c,d}1

After reboot, the array /dev/md0 is missing. I searched the web, and found referencs to creating a CONF file, but not sure how to create it. Commands shown on the web don't work:

mdadm --assemble --scan
mdadm: No arrays found in config file or automatically

mdadm --assemble --force /dev/mds0 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: /dev/sdb1 is busy - skipping
mdadm: /dev/sdc1 is busy - skipping
mdadm: /dev/sdd1 is busy - skipping
 
Old 04-21-2016, 12:17 PM   #2
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 95

Rep: Reputation: 28
`mdadm --detail --scan` should give you a starting point for a working config file.

You only really need the UUID without any other conditions (remove metadata, host, level, ...). You might want to add your email address so mdadm can notify you of problems the moment they occur (provided you have a working sendmail).

Code:
DEVICE /dev/sd*
MAILADDR some@domain

ARRAY /dev/md0 UUID=d8b8b4e5:e47b2e45:2093cd36:f654020d
ARRAY /dev/md1 UUID=845b2454:42a319ef:6ec5238a:358c365b
ARRAY /dev/md2 UUID=23cf90d2:c05d720e:e72e178d:414a8128
Even without a config the array might still be assembled, but it might end up with a different number such as /dev/md127. Since mdadm told you the devices were busy, most likely it was assembled already. Check /proc/mdstat.

If you are using initrd you might have to update that as well after changing mdadm.conf
 
Old 04-22-2016, 07:06 AM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
You could also write a config file with the following:

Code:
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Degraded Raid 1, was md0 now md127.. need help jcmorse563 Linux - Server 5 03-25-2014 09:48 AM
RAID degraded, partition missing from md0 reano Linux - Hardware 68 12-10-2013 04:35 PM
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
RAID 5 corrupt /dev/md0 Bengt7jqb Debian 1 07-18-2008 10:08 AM
can not mount RAID 0 /dev/md0 dysenteryduke Linux - Software 3 09-15-2005 03:19 PM

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

All times are GMT -5. The time now is 02:40 PM.

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