LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 06-18-2006, 07:06 PM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
mdadm: no devices found for /dev/md0


I've got a raid5 array on four disks, but when I try to reconstruct the array it fails as follows:
Code:
mdadm -A /dev/md0
mdadm: no devices found for /dev/md0
However, if I do
Code:
mdadm -A /dev/md0 /dev/hd[abef]1
then it reconstructs the array properly and you can see the results:
Code:
mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=4 UUID=feebae85:4c152e6d:e63ff723:9401b138
   devices=/dev/hda1,/dev/hdb1,/dev/hde1,/dev/hdf1
Code:
mdadm --detail /dev/md0
/dev/md0:
        Version : 00.90.00
  Creation Time : Mon May 22 22:37:50 2006
     Raid Level : raid5
     Array Size : 468864768 (447.14 GiB 480.12 GB)
    Device Size : 156288256 (149.05 GiB 160.04 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sun Jun 18 23:51:01 2006
          State : active
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 64K

           UUID : feebae85:4c152e6d:e63ff723:9401b138
         Events : 0.13

    Number   Major   Minor   RaidDevice State
       0       3        1        0      active sync   /dev/hda1
       1       3       65        1      active sync   /dev/hdb1
       2      33        1        2      active sync   /dev/hde1
       3      33       65        3      active sync   /dev/hdf1
The proper details for /dev/md0 are in /etc/mdadm/mdadm.conf and I've tried to remake this file from the working array by doing
Code:
mdadm -A /dev/md0 /dev/hd[abef]1
mdadm --detail --scan > /etc/mdadm/mdadm.conf
But then trying to reassemble the array the easy way still fails
Code:
mdadm -A /dev/md0
mdadm: no devices found for /dev/md0
???

I don't understand why this doesn't work, it used to...

Last edited by humbletech99; 06-18-2006 at 07:09 PM.
 
Old 06-19-2006, 03:07 AM   #2
nhydra
Member
 
Registered: May 2006
Distribution: Fedora Core, FreeSpire, PC-BSD, NetBSD
Posts: 96

Rep: Reputation: 15
I am almost sure for that if you open /etc/mdadm.conf you will not see the line for this raid array.
You have to add it to this config file and then have to enjoy.
I don't know why but mdadm doesn't write the configuration to the /etc/mdadm.conf. I had the same situation like you.
Just added the config lines to the file and then restart or just restart rc.d script.
In the /etc/mdadm.conf you have to add something like that:
ARRAY /dev/md0 level=raid0 UUID=ghjhg34:23423DFds:23423sdfa:234234fsSDF

Something like that. The UUID you will take with this command : mdadm --detail /dev/raid-device.

At last you have to enjoy your new raid array.
 
Old 06-19-2006, 05:28 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
well, actually, that line for ARRAY is done by mdadm --detail --scan. What I forgot was the DEVICE /dev/hda1 /dev/hdb1... line before that. It works now.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
RAID5 using mdadm, how to mount /dev/md0? ggduff Linux - Software 4 11-14-2007 02:59 AM
>raid5 : not enough operational devices for md0 (2/3 failed) targi Linux - Newbie 3 04-08-2006 01:03 AM
Suse 10 setup error: no sources found at 'cd:///devices=/dev/hdb' Felpipe Linux - General 2 03-12-2006 07:22 PM
Crash while resyncing /dev/md0 HelaWann Linux - Enterprise 1 12-06-2005 09:52 AM


All times are GMT -5. The time now is 10:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration