Originally Posted by
rubylaser
You don't need to change your configuration, but you do need to ensure that it exists otherwise mdadm won't know how to assemble the array. Finally, there's no need for a partition on top of mdadm unless, you're using LVM to create smaller volumes on top of mdadm, but you haven't mentioned that, so that's not the case.
On 11.04 what's the output of these?
Code:
cat /etc/fstab | grep md0
mount:
Code:
root@storage:/# mount
/dev/sdf1 on / type ext4 (rw,noatime,discard,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,noatime,mode=1777)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/md0 on /home/shared type ext4 (rw)
fdisk -l:
Code:
root@storage:/dev/shm# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ab996
Device Boot Start End Blocks Id System
/dev/sdf1 * 1 4866 39081656 83 Linux
Disk /dev/md0: 3000.6 GB, 3000610848768 bytes
2 heads, 4 sectors/track, 732571008 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
cat /etc/fstab | grep md0:
Code:
/* nothing (I typed this) */
/etc/fstab:
Code:
# /etc/fstab: static file system information.
#
# Use 'vol_id --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> <fsck>
# proc
proc /proc proc defaults 0 0
# /tmp
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
# root
/dev/disk/by-label/linux-boot / auto defaults,noatime,discard,errors=remount-ro 0 1
# shared raid drive
/dev/disk/by-label/linux-raid /home/shared auto defaults 0 2
# swap
/home/shared/swapfile swap swap defaults 0 0
My fstab mounts stuff via volume label which is why the "grep /md0" failed.
Also note from fdisk -l that some drives are 512 byte and some are newer 4096 "advanced format" drives. Since the /dev/md0 device is formatted without a partition table, the drive starts at cylinder 0 which is "optimal" for both 512 and 4096 byte alignments.
Drive /dev/sdf is the 40gb SSD boot drive.
The "discard" option for the root drive activates "TRIM" for solid state drives (makes the drive internally zero out unused and relinquished sectors to speed writes).
Again... it all looks good to me. What do you think?
By the way, you said:
but you do need to ensure that it [mdadm config] exists otherwise mdadm won't know how to assemble the array.
If I boot 11.10 and manually ctrl-D past the error, then the "/dev/md0" device exists and can be mounted manually and it works. Also in 11.10, a "cat /proc/mdstat" shows no resync activity (i.e. the array is happy). And of course, /etc/mdadm/mdadm.conf DOES exist.
-- Roger
Bookmarks