Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: lost partition table
PostPosted: Sun Apr 25, 2010 9:09 pm 
Offline
Senior Member

Joined: Mon Jul 30, 2007 9:55 pm
Posts: 80
Off topic post as this has nothing to do with Linode, but so many smart folks lurking here I'll throw this out to see what comes back.

Have an old Dell 1850 with a PowerVault 220S storage array attached to it. The array is configured with 2 logical disks, both hardware raid-5 - /dev/sdb and /dev/sdc. OS was Gentoo.

Over the weekend I decided to replace Gentoo, so powered everything down, detached the PowerVault from the server, took out the original boot drive and popped in a new one. From there I installed Enterprise Linux and plugged the PowerVault back in. The 2 logical disks are there an visible, but their partition tables are gone!

Ugh.

I ran gpart, but nothing was found except "possible swap" which is just plain wrong. Since this box was set up years ago and I have no good notes I am just guessing they each had just one big partition of type Linux RAID Autodetect. I was using mdadm to concatenate the drives. I decided to go ahead an create the partitions I thought were there, but mdadm still gives me no joy.

Popping my original boot disk in doesn't change anything - mdadm can't rebuild the array.

I'm completely baffled. No clue how the partiotn tables disappeared. (I'm fairly certain I was not using raw devices in the array, but did try mdadm sans the partiton tables and had no luck.)

The PowerVault wasn't even attached to the server or powered on during all the OS work, so tis whole thing makes no sense. Must be hardware failure of some kind?

Anyway, if anyone has any ideas for how I might get mdadm to recognize the devices and repair md0 I'd love to hear them. I know the data must still be on the disks.

Code:
[root@ogre etc]# fdisk -l

Disk /dev/sda: 73.4 GB, 73407868928 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

             Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        8663    69585516   83  Linux
/dev/sda2            8664        8924     2096482+  82  Linux swap / Solaris

Disk /dev/sdb: 2199.0 GB, 2199014866944 bytes
255 heads, 63 sectors/track, 267348 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

             Device Boot      Start         End      Blocks   Id  System

Disk /dev/sdc: 1400.7 GB, 1400704598016 bytes
255 heads, 63 sectors/track, 170292 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

             Device Boot      Start         End      Blocks   Id  System
[root@ogre etc]# lsmod |grep raid0
[root@ogre etc]# modprobe raid0
[root@ogre etc]# modprobe dm-mod
[root@ogre etc]# mdadm --assemble --scan
mdadm: No devices listed in conf file were found.
[root@ogre etc]# cat /proc/mdstat
Personalities : [raid0]
unused devices:<none>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group