Mdadm array fails to assemble on boot.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mdadm
On boot I receive a message stating 'the disk for/mnt/md0 is not ready yet or not present. Continue to wait; or Press S to skip mount or M for manual recovery'. If i press M and try 'mount -a' it states that 'special device /dev/md0 does not exist'. If I try 'mdadm --assemble --scan' it states 'no devices found for /dev/md0'. If I skip the mounting of the array, and start the array then mount it through palimpsest everything mounts as should be (devices in array and mount location).
Output of 'mdadm -D /dev/md0'
/dev/md0:
Version : 01.02
Creation Time : Mon Nov 16 12:30:36 2009
Raid Level : raid5
Array Size : 1465151424 (1397.28 GiB 1500.32 GB)
Used Dev Size : 976767616 (931.52 GiB 1000.21 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun May 2 15:58:29 2010
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K
Name : :raid5
UUID : 02bcfe3b:
Events : 55496
Number Major Minor RaidDevice State
0 8 49 0 active sync /dev/sdd1
1 8 33 1 active sync /dev/sdc1
2 8 17 2 active sync /dev/sdb1
4 8 1 3 active sync /dev/sda1
Contents of /etc/mdadm/
# 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 server
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid5 metadata=1.2 num-devices=4 UUID=02bcfe3b:
# This file was auto-generated on Sat, 01 May 2010 18:15:04 +1000
# by mkconf $Id$
Contents of /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=906694f9-
# swap was on /dev/sda5 during installation
UUID=01cb5d34-
#mdadm array
/dev/md0 /mnt/md0 auto defaults 0 0
I spotted this error while installing lucid lynx and mdadm on another machine:
Setting up mdadm (2.6.7.1-1ubuntu15) ... dpkg/info/ mdadm.postinst: 170: /dev/MAKEDEV: not found d/mdadm- raid ...
Generating array device nodes... /var/lib/
failed.
Generating mdadm.conf... done.
Removing any system startup links for /etc/init.
Could this have something to do with the array not starting?
Here is the complete transcript of the install:
The following NEW packages will be installed: archive. ubuntu. com/ubuntu/ lucid/main mdadm 2.6.7.1-1ubuntu15 [239kB] archive. ubuntu. com/ubuntu/ lucid/main postfix 2.7.0-1 [1,403kB] 2.6.7.1- 1ubuntu15_ amd64.deb) ... 2.7.0-1_ amd64.deb) ... dpkg/info/ mdadm.postinst: 170: /dev/MAKEDEV: not found d/mdadm- raid ...
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,642kB of archives.
After this operation, 4,248kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Fetched 1,642kB in 8s (200kB/s)
Preconfiguring packages ...
Selecting previously deselected package mdadm.
(Reading database ... 149165 files and directories currently installed.)
Unpacking mdadm (from .../mdadm_
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_
Processing triggers for ureadahead ...
Processing triggers for doc-base ...
Processing 26 changed 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Processing triggers for ufw ...
Setting up mdadm (2.6.7.1-1ubuntu15) ...
Generating array device nodes... /var/lib/
failed.
Generating mdadm.conf... done.
Removing any system startup links for /etc/init.
update-initramfs is disabled since running on read-only media
update-rc.d: warning: mdadm start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (S)
update-rc.d: warning: mdadm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6)
* Starting MD monitoring service mdadm --monitor [ OK ]
Setting up postfix (2.7.0-1) ... postfix' . dynamicmaps. cf dynamicmaps. cf localdomain, , localhost 127.0.0. 0]/104 [::1]/128 delimiter: +
Adding group `postfix' (GID 123) ...
Done.
Adding system user `postfix' (UID 115) ...
Adding new user `postfix' (UID 115) with group `postfix' ...
Not creating home directory `/var/spool/
Creating /etc/postfix/
Adding tcp map entry to /etc/postfix/
Adding group `postdrop' (GID 124) ...
Done.
setting myhostname: ubuntu
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: ubuntu, localhost.
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:
setting mailbox_size_limit: 0
setting recipient_
setting inet_interfaces: all
/etc/aliases does not exist, creating it.
WARNING: /etc/aliases exists, but does not have a root alias.
Postfix is now set up with a default configuration. If you need to make main.cf (and others) as needed. To view Postfix configuration
changes, edit
/etc/postfix/
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init. d/postfix reload'.
...