LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2007, 01:07 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
mdadm: no devices ... were found after RAID0 install


Hi,

I used the minimal server CD to install Feisty Fawn and create a software RAID0.

I was having problems with it actually creating and deleting the RAIDS like I wanted it to, so I manually created them by dropping to a shell.

I used the shell to configure my disks and create the raids and then dropped back to the Ubuntu console setup and it recognized my RAIDs and disks.

Heres what it looked like:
Code:
RAID0 device 0
   525.3MB   f   swap        swap
RAID0 device 1
   318GB      f   reiserfs    /
SCSI7 (0,0,0)
    #1 primary   139.8MB  B   f   ext2    /boot
    #2 primary   263.2MB       K  raid
    #3 primary   159GB          K  raid
SCSI7 (0,1,0)
    #1 primary   139.8MB  B   f
    #2 primary   263.2MB       K  raid
    #3 primary   159GB          K  raid
So I had a swap, a root, and a boot since a boot is needed to bootstrap the RAID.

The rest of the installation went great, I had no errors, nothing. Grub installed, it was fine.

So then I remove the CD and reboot, it gets past grub and begins to boot (which means my /boot worked, I guess) and I get:

Code:
Starting up ...
Loading, please wait...
mdadm: No devices listed in conf file were found.
and then it pauses for about 2 minutes, and drops me to BusyBox (initramfs)

I'm totally clueless here. I don't even know where it keeps the mdadm configuration ... should it be kept on boot? How else does it know what my RAID setup is? Does it auto detect it somehow? I managed to run a RAID0 in Gentoo successfully using these same disks and setup.... I'm just not sure where the config is to maybe look at it or even where to begin debugging this.

I'd greatly appreciate any help...

Thanks!
George
 
Old 06-28-2007, 02:43 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The default is /etc/mdadm.conf. If that doesn't exist, it tries /etc/mdadm/mdadm.conf. However, since /etc is on the array it won't be able to find it. What should happen is that the array is assembled by the kernel from the superblock information.

You could try "mdadm --examine --scan". It may start with the devices from /proc/partitions, assume they are raid elements as a starting point and examine them. The output could be redirected to /boot/mdadm.conf which could then be used as the config file, to get you started and be able to access your root partition.
An example in man mdadm gives:
Code:
echo 'DEVICE /dev/hd[a-z] /dev/sd*[a-z]' > mdadm.conf
mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
I wouldn't recommend using raid0 however. While it can speed access, if one of the drives goes bad, the array goes bad.
 
Old 06-28-2007, 07:32 AM   #3
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Original Poster
Rep: Reputation: 30
thanks for the response!

I am going to try and boot a live cd and get the mdadm.conf by doing an --examine --scan

if i put it on /boot, will it actually read it though?
 
Old 06-28-2007, 10:38 AM   #4
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Original Poster
Rep: Reputation: 30
is there any way to get it to dump me some more output so I can figure out whats going on? is it possible that its mounting root properly and just not finding an mdadm config?
 
Old 06-28-2007, 01:38 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you include the option, to the mdadm command, where you indicate where the config file is. I was suggesting a way to get started.

I'm not home now. I had done something crazy on my laptop. I created three files for partitions, used losetup to map them to loop devices, and then assembled a raid-5 array. I wanted to use the mdadm command a bit before responding. The output of
mdadm --examine --scan
was shorter than I expected.

There is also something in /proc where the kernel tracks md devices.
I think your game plan should be to see if the kernel sees the raid devices and get mdadm in use that information when assembling the devices, since it can't read /etc/mdadm.conf yet. That should be happening automatically by the kernel using the persistant superblocks, but a little research may be needed. Does raid0 even use them, I don't know.

Last edited by jschiwal; 06-28-2007 at 05:22 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm: no device found for /dev/md0 doorito Linux - Server 1 04-09-2007 09:21 PM
LE 2005 on Laptop - Can't install, no devices found... lonecrow Linux - Laptop and Netbook 1 10-01-2006 07:28 PM
mdadm: no devices found for /dev/md0 humbletech99 Linux - General 2 06-19-2006 04:28 AM
No module raid0 found for kernel 2.6.9 mcalizo Red Hat 3 12-23-2004 11:33 AM
Sata,no devices found,cant install any distro period! dfitzner Linux - Newbie 0 12-16-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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