LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 11-03-2010, 03:15 AM   #1
geekmiki
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Rep: Reputation: 0
RAID impossible to mount through fstab


Hi,

After having solved my raid5 creation problems, I'm running into a new one: the RAID is just impossible to mount through fstab. I get a wonderful "The disk drive for /dev/md0 is not ready yet or not present.
Continue to wait or press S to skip mounting or M for mount recovery."

Once the system has booted, I can perfectly run a mount /dev/md0 /media/raid and mount it manually.
I've already tried mdadm.conf with UUIDs, with device names, tried several options in fstab, xfs and ext4 filesystems, nothing to do, it won't mount.

All this is running under Ubuntu 10.04 server, kernel: 2.6.32-25 server, mdadm 3.1.4 (from a Debian sid)

Here's my mdadm.conf:
Code:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid5  metadata=1.2 num-devices=3 devices=/dev/sda1,/dev/sdb1,/dev/sdd1

# This file was auto-generated on Tue, 02 Nov 2010 20:38:52 +0100
The entry in my fstab:
Code:
/dev/md0 /media/raid xfs defaults 0 0
and just for info, my /proc/mdstat:
Code:
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sda1[0] sdd1[3] sdb1[1]
      3907023872 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]

unused devices: <none>
Thanks for your help and patience!
 
Old 11-03-2010, 11:27 AM   #2
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
Just to clarify...when you say mounting through fstab, do you mean at boot-time, or manually 'mount /defined_mountpoint' after booting?

If this is at boot time, can you confirm the raid module is loaded?
(if not, load the module and make a new initrd so it will be included at boot-time in the future)
 
Old 11-03-2010, 12:12 PM   #3
geekmiki
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I meant during boot time, as I may have for other non-raid partitions.

I did it the dirty way now with a noauto parameter in fstab and a mount command in rc.local. But of course this is not optimal.

Last edited by geekmiki; 11-03-2010 at 12:23 PM.
 
Old 11-03-2010, 12:24 PM   #4
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
Sounds like the RAID module isn't loaded at boot time.

Did you setup your raid after you had already installed linux? Installers will usually include the RAID module in initrd if you used it during installation, otherwise not. You could extract your current initrd to confirm this...but it would most likely be easier to make a new initrd.

For the raid5 module it would be similar to:

Code:
mkinitrd --with=raid456 /boot/initrd-`uname -r`.img `uname -r`
(Ubuntu may not name it's initrd's in that fashion, check your /boot contents to see if that is the case and adjust)

Let us know if that solves your problem.

Last edited by module0000; 11-03-2010 at 12:27 PM.
 
Old 11-03-2010, 01:03 PM   #5
geekmiki
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Thanks for this.
The raid was built after the system was installed. By the way the raid is just a storage partition, it doesn't contain the system itself.
I'll try what you suggested!
 
Old 11-04-2010, 10:45 AM   #6
geekmiki
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Ok raid456 module seems to be included in initrd.img and problem still persists.
when I do a cat /proc/modules, raid456 is there:
Code:
$ cat /proc/modules
xfs 541938 1 - Live 0xffffffffa0389000
xt_multiport 2794 7 - Live 0xffffffffa0383000
raid456 54784 1 - Live 0xffffffffa036e000
This means that the right modules is there, right?
Is there anything else I can try?

Last edited by geekmiki; 11-04-2010 at 10:46 AM.
 
Old 11-04-2010, 10:49 AM   #7
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
If you are booted normally and you check /proc/modules, of course it is there :P

How did you check the initrd, did you extract it? The modules loaded during initrd are not the modules you see loaded after a successful boot. That's why you may see raid456 loaded in your test above, but at boot-time that module is not present in the initrd.

Did you try rebuilding your initrd with the command I posted above? That would ensure it was included.
 
Old 11-04-2010, 01:43 PM   #8
geekmiki
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Hi again,

First, thanks for following up...

I extracted my initrd and raid456.ko is there in /lib/modules/2.6.32-25-server/kernel/drivers/md

I guess that means that the module is indeed loaded at boot, right?
 
Old 11-04-2010, 02:20 PM   #9
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
It means that it is at least included in the initrd, whether or not it is loading is another matter =)

The last thing to check is within the initrd you extracted, you should have a file 'linuxrc'(unless Ubuntu names it differently?). This file should contain several shell commands, look for `insmod <somepath>/raid456.ko`, you should see all the modules that the initrd is loading there. If raid isn't listed, then although it is included in initrd's files...it is not being loaded.

It seems unlikely it would be included without being loaded, but this is the last thing I can think to advise you to check to confirm that.

EDIT: it looks like ubuntu 10.04's initrd keeps module preloading in [relative]/scripts/init-premount

Last edited by module0000; 11-04-2010 at 02:27 PM.
 
  


Reply

Tags
fstab, mount, raid


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID5: impossible to create raid properly on partitions geekmiki Linux - Hardware 10 11-02-2010 01:49 PM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
Conflict of RAID and Linux fstab mount zakidad Linux - Hardware 2 09-14-2006 10:16 PM
It is impossible to mount cdrom1 or 2 jjay02 Linux - Newbie 12 03-08-2003 11:43 AM


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

Main Menu
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