Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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)
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.