I have recently created a RAID 5 array under Ubuntu 11.04 and am having some trouble getting it to assemble correctly on system boot. So far after every boot the array assembles correctly but in read-only mode at /dev/md127. Stopping this array and running:
will correctly mount the array at /dev/md0. My mdadm.conf file:Code:mdadm --assemble --scan
detail of the array:Code:DEVICE partitions ARRAY /dev/md/0 metadata=1.2 name=nagelnas:0 UUID=e4665ceb:15f8e4b6:b186d497:7d365254
examine of one of the disks in the array:Code:sudo mdadm --detail /dev/md0 /dev/md0: Version : 1.2 Creation Time : Sun May 15 22:39:38 2011 Raid Level : raid5 Array Size : 5860544512 (5589.05 GiB 6001.20 GB) Used Dev Size : 1465136128 (1397.26 GiB 1500.30 GB) Raid Devices : 5 Total Devices : 5 Persistence : Superblock is persistent Update Time : Sun May 22 09:52:09 2011 State : clean Active Devices : 5 Working Devices : 5 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 512K Name : nagelnas:0 (local to host nagelnas) UUID : e4665ceb:15f8e4b6:b186d497:7d365254 Events : 18 Number Major Minor RaidDevice State 0 8 0 0 active sync /dev/sda 1 8 16 1 active sync /dev/sdb 2 8 32 2 active sync /dev/sdc 3 8 48 3 active sync /dev/sdd 5 8 64 4 active sync /dev/sde cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 sda[0] sde[5] sdd[3] sdc[2] sdb[1] 5860544512 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU] unused devices: <none>
Code:sudo mdadm --examine /dev/sda /dev/sda: Magic : a92b4efc Version : 1.2 Feature Map : 0x0 Array UUID : e4665ceb:15f8e4b6:b186d497:7d365254 Name : nagelnas:0 (local to host nagelnas) Creation Time : Sun May 15 22:39:38 2011 Raid Level : raid5 Raid Devices : 5 Avail Dev Size : 2930273007 (1397.26 GiB 1500.30 GB) Array Size : 11721089024 (5589.05 GiB 6001.20 GB) Used Dev Size : 2930272256 (1397.26 GiB 1500.30 GB) Data Offset : 2048 sectors Super Offset : 8 sectors State : clean Device UUID : 922f3fc5:b9078b42:86230bc3:b8abfc7e Update Time : Sun May 22 09:51:29 2011 Checksum : 5274f4ec - correct Events : 18 Layout : left-symmetric Chunk Size : 512K Device Role : Active device 0 Array State : AAAAA ('A' == active, '.' == missing)
Any idea what I am doing wrong here? Not the biggest deal in the world to assemble the array by hand but still something I want to have happen automatically.
Thanks,
Andrew



Adv Reply


Bookmarks