Raid 5 Issues
Matt Gordon
muntted at gmail.com
Tue Mar 4 02:27:02 UTC 2008
I created a raid 5 array using 3 500gb drives and then reformatted and
installed ubuntu on my main 750gb drive. However when I went to
reassemble the drive I have been getting a few errors. The most recent
is showing one of my drives does not have a raid partition on it. I
know the data is on there so im not sure what happened with that.
I can start the raid in a degraded mode but im still unable to mount
it. I really dont want to lose the data on this raid.
matt at Prometheus:~$ sudo mdadm --assemble --scan
mdadm: device 2 in /dev/md0 has wrong state in superblock, but
/dev/sdd1 seems ok
mdadm: failed to add 8:17 to /dev/md0: Device or resource busy
mdadm: /dev/md0 assembled from 2 drives - not enough to start the
array while not clean - consider --force.
matt at Prometheus:~$ sudo mdadm --stop /dev/md0
mdadm: stopped /dev/md0
matt at Prometheus:~$ sudo mdadm --assemble --force /dev/md0 /dev/sdb1
/dev/sdc1 /dev/sdd1
mdadm: no recogniseable superblock on /dev/sdb1
mdadm: /dev/sdb1 has no superblock - assembly aborted
matt at Prometheus:~$ sudo mdadm --assemble --force /dev/md0 /dev/sdc1
/dev/sdd1mdadm: /dev/md0 has been started with 2 drives (out of 3).
matt at Prometheus:~$ sudo mount /dev/md0 /media/raid/
mount: wrong fs type, bad option, bad superblock on /dev/md0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
matt at Prometheus:~$ dmesg | tail
[62562.376000] raid5: device sdc1 operational as raid disk 1
[62562.376000] raid5: device sdd1 operational as raid disk 2
[62562.376000] raid5: allocated 3163kB for md0
[62562.376000] raid5: raid level 5 set md0 active with 2 out of 3
devices, algorithm 2
[62562.376000] RAID5 conf printout:
[62562.376000] --- rd:3 wd:2
[62562.376000] disk 1, o:1, dev:sdc1
[62562.376000] disk 2, o:1, dev:sdd1
[62628.964000] JBD: no valid journal superblock found
[62628.964000] EXT3-fs: error loading journal.
matt at Prometheus:~$ sudo e2fsck -n /dev/sdb1
e2fsck 1.40.2 (12-Jul-2007)
e2fsck: Invalid argument while trying to open /dev/sdb1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
matt at Prometheus:~$ sudo e2fsck -n /dev/md0
e2fsck 1.40.2 (12-Jul-2007)
Superblock has an invalid ext3 journal (inode 8).
Clear? no
e2fsck: Illegal inode number while checking ext3 journal for /dev/md0
matt at Prometheus:~$ sudo sfdisk -l
Disk /dev/sda: 91201 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 31870 31871- 256003776 7 HPFS/NTFS
/dev/sda2 31871 44028 12158 97659135 83 Linux
/dev/sda3 44029 44636 608 4883760 82 Linux swap / Solaris
/dev/sda4 44637 91200 46564 374025330 83 Linux
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 60800 60801- 488384001 fd Linux raid autodetect
/dev/sdb2 0 - 0 0 0 Empty
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
Disk /dev/sdb1: 0 cylinders, 2 heads, 4 sectors/track
read: Invalid argument
sfdisk: read error on /dev/sdb1 - cannot read sector 0
/dev/sdb1: unrecognized partition table type
No partitions found
Disk /dev/sdc: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdc1 0+ 60800 60801- 488384001 fd Linux raid autodetect
/dev/sdc2 0 - 0 0 0 Empty
/dev/sdc3 0 - 0 0 0 Empty
/dev/sdc4 0 - 0 0 0 Empty
Disk /dev/sdd: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdd1 0+ 60800 60801- 488384001 fd Linux raid autodetect
/dev/sdd2 0 - 0 0 0 Empty
/dev/sdd3 0 - 0 0 0 Empty
/dev/sdd4 0 - 0 0 0 Empty
Disk /dev/md0: 244191968 cylinders, 2 heads, 4 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/md0: unrecognized partition table type
No partitions found
The results of a lshw can be found here: http://paste.ubuntu-nl.org/58311/
Any help would be immensely appreciated
More information about the ubuntu-users
mailing list