Avatar of aa-777
 asked on

vmware partition table lost while upgrading hdd, please help!

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 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002281 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

Avatar of undefined
Last Comment

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

So is the question, how to recover your Virtual Machines?

yes, the question is how to get back virtual machines
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

I will try that software and will update about results
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy

thank you, that software was able to recover .vmdk files