troubleshooting Question

vmware partition table lost while upgrading hdd, please help!

Avatar of aa-777
aa-777 asked on
5 Comments1 Solution1733 ViewsLast Modified:
I have ibm x3550 M3 server that was running vmware 4.0. I had 2x140GB SAS disks in RAID1 and 2x300GB SAS disks in RAID1 as well. vmware esxi 4 was installe on 2x140gb sas raid.

i was upgrading from 2x140GB SAS to 2x600GB SAS. before upgrade i did a backup only of 2x140gb datastore.

when i removed 2x140gb disks and inserted 2x600gb and created additional virtual drive in ibm bios, i think ibm controller deleted a partition table on my 2x300gb disks

so without knowing that i installed esxi 5.0 latest version on 2x600gb and booted up. sadly my old datastore was not here and format type for volume was unknown

To have some backup i removed from raid 1x300gb and then replaced back 2x600gb with 2x140gb, the same issue.

when doing fdisk in console, it said lost partition table

following i created a simple partition table but still i can not mount or see any data

Create the partition:
Press n and press Enter to create a new partition.
Press p and press Enter to select that this is a primary partition.
Press 1 and press Enter to make the first partition.
Press 128 and Enter to  align the partition to sector 128.
Press Enter again to retain the default value.
Change the partition to type fb (VMFS):
Press t and press Enter. Partition 1 is automatically selected.
Enter fb and press Enter.

Press w and press Enter to save.
Run vmkfstools -V and press Enter to discover the VMFS.  

here is current result of fdisk -l

~ # fdisk -l

Disk /dev/disks/naa.600605b00256c49015375a961c4573d4: 298.9 GB, 298999349248 bytes
255 heads, 63 sectors/track, 36351 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                           Device Boot      Start         End      Blocks  Id System
/dev/disks/naa.600605b00256c49015375a961c4573d4p1             1     36352 291991488   fb  VMFS
Found valid GPT with protective MBR; using GPT

fdisk: Sorry, can't handle GPT partitions, use partedUtil

/dev/disks # esxcfg-scsidevs -c
Device UID                            Device Type      Console Device                                            Size      Multipath PluginDisplay Name
mpx.vmhba0:C0:T0:L0                   CD-ROM           /vmfs/devices/cdrom/mpx.vmhba0:C0:T0:L0                   0MB       NMP     Local MATSHITA CD-ROM (mpx.vmhba0:C0:T0:L0)
naa.600605b00256c49015375a961c4573d4  Direct-Access    /vmfs/devices/disks/naa.600605b00256c49015375a961c4573d4  285148MB  NMP     Local IBM Disk (naa.600605b00256c49015375a961c4573d4)
naa.600605b00256c490178e00721568b47a  Direct-Access    /vmfs/devices/disks/naa.600605b00256c490178e00721568b47a  571250MB  NMP     Local IBM Disk (naa.600605b00256c490178e00721568b47a)

/dev/disks # partedUtil get /vmfs/devices/disks/naa.600605b00256c49015375a961c4573d4
36351 255 63 583983104
1 128 583983103 251 0

i still have the second 300GB hdd from raid if necessary. Previously on disk I had only 1 partition taking the whole disk
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros