Atanvarno
March 5th, 2009, 03:32 PM
I have a linux raid-5 array (partitions: sda2, sdb2, sdc2, sdd2) which has been working for months. Using Ubuntu 8.04 server (fully updated).
I think the server then got turned off at the wall without a shutdown. After it booted again mdadm reported sdc as having failed. mdstat then spend ~3 hours recovering it (it did this automatically). Now the array is heathly (no errors from sdc), however when I try to mount it I'm informed the ext3 file system is corrupted.
~$ sudo mount /dev/md0 /mnt/raid
[ 1411.906999] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 1411.954495] EXT3-f: group descriptors corrupted!
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
~$ dmsg | tail
[...]
[ 98.681506] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 98.790470] EXT3-fs: group descriptors corrupted!
[ 1411.906999] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 1411.954495] EXT3-f: group descriptors corrupted!
I used dumpe2fs to get a list of my backup superbocks.
~$ sudo dumpe2fs /dev/md0 | grep superblock
Primary superblock at 0, Group descriptors at 1-87
Backup superblock at 32768, Group descriptors at 32769-32855
Backup superblock at 98304, Group descriptors at 98305-98319
[etc...]
However, I can't fix it with fsck (I think this is because it's a raid device, not a real disk).
~$ sudo fsck -b 32768 /dev/md0
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
fsck.ext3: Device or resource busy while trying to open /dev/md0
File system mounted or opened exclusively by another program?
Don't know where to go from here.
Am I right in thinking my data is still recoverable? (Raid 5 has those parity stripes, so even if something is corrupted it should be rebuildable?)
I think the server then got turned off at the wall without a shutdown. After it booted again mdadm reported sdc as having failed. mdstat then spend ~3 hours recovering it (it did this automatically). Now the array is heathly (no errors from sdc), however when I try to mount it I'm informed the ext3 file system is corrupted.
~$ sudo mount /dev/md0 /mnt/raid
[ 1411.906999] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 1411.954495] EXT3-f: group descriptors corrupted!
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
~$ dmsg | tail
[...]
[ 98.681506] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 98.790470] EXT3-fs: group descriptors corrupted!
[ 1411.906999] EXT3-fs error (device md0): ext3_check_descriptors: Block bitmap
for group 0 not in group (block 62914560)!
[ 1411.954495] EXT3-f: group descriptors corrupted!
I used dumpe2fs to get a list of my backup superbocks.
~$ sudo dumpe2fs /dev/md0 | grep superblock
Primary superblock at 0, Group descriptors at 1-87
Backup superblock at 32768, Group descriptors at 32769-32855
Backup superblock at 98304, Group descriptors at 98305-98319
[etc...]
However, I can't fix it with fsck (I think this is because it's a raid device, not a real disk).
~$ sudo fsck -b 32768 /dev/md0
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
fsck.ext3: Device or resource busy while trying to open /dev/md0
File system mounted or opened exclusively by another program?
Don't know where to go from here.
Am I right in thinking my data is still recoverable? (Raid 5 has those parity stripes, so even if something is corrupted it should be rebuildable?)