Restore Hardware RAID Partition Table after power failure
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Restore Hardware RAID Partition Table after power failure
Hi all,
I have a Dell PowerEdge 2950 connected to a PowerVault MD1000. Last night there was a power failure and when we tried to start it up this morning, fsck failed with the unhelpful "cannot continue, aborting."
After trying various things, I booted from a LiveCD and commented out all the RAID entries in /etc/fstab, and it started up okay. The problem is when I run an fdisk -l, here's the output:
Disk /dev/sda: 72.7 GB, 72746008576 bytes
255 heads, 63 sectors/track, 8844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 8844 70935007+ 8e Linux LVM
Disk /dev/sdb: 3892.7 GB, 3892716765184 bytes
255 heads, 63 sectors/track, 473262 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
/dev/sda is the internal drive, which functions fine. /dev/sdb is the hardware RAID in the PowerVault. sfdisk gives similar info:
Disk /dev/sdb: 473262 cylinders, 255 heads, 63 sectors/track
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition table type
No partitions found
Notice the three commented-out mounts; when I mount them manually they work fine and the data is intact. I'm just wary to pronounce the thing fixed and tell employees they can start using it again when the partition table isn't valid.
The OS is CentOS 5.2, and the kernel is 2.6.18-92.1.13.el5. For what it's worth, I ran testdisk twice; once with a partition table type of "None" and the 2nd time with the type "Intel," which is what it should be. The first time it found the partition but couldn't write it because the type was "None," and the second time it seemed to write it okay but it didn't fix it.
Also, for what it's worth, here's the relevant output from dmesg:
sdb : very big device. try to use READ CAPACITY(16).
SCSI device sdb: 7602962432 512-byte hdwr sectors (3892717 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
sdb : very big device. try to use READ CAPACITY(16).
SCSI device sdb: 7602962432 512-byte hdwr sectors (3892717 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
sdb: unknown partition table
sd 1:2:0:0: Attached scsi disk sdb
I'm a relative beginner when it comes to hardware raid, so any help is greatly appreciated, natch.
If you have paid support, now is surely the time to use it.
Barring that and given the severity of your error and the fact that you can still access the data (for the moment) you might want to start making backups while there's still data to backup.
If someone can give him some real help, please do so. I don't have much else to contribute.
Haha paid support, I wish! I'm actually doing this on a consulting basis, so I don't know what all they have going on with any vendors, but I'm sure there's no paid support.
Thankfully we do have backups from last night, I just would rather not have to re-set up the entire RAID array from scratch.
Do they have a spare raid controller card, so you could at least swap that out to make sure it's not that simple? You might also bring the raid down and look through the utilities to see if there's anything promising. Is the Powervault MD1000 a separate device? If so, was it booted properly before you brought up the server connected to it?
It turned out not to be a problem in this case; the RAID had and has no partition table, and that's the way it was set up, and I mistakenly assumed it was a problem. If you are having trouble starting up I would suggest booting from a Live CD and running fsck to try and fix any filesystem errors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.