Recovery | Vmfs [hot]

Create a new partition (assuming a standard 1MB offset):

First, unmount the datastore (force if necessary). recovery vmfs

partedUtil getptbl /vmfs/devices/disks/naa.6000c29c4c5a2b1c If the output is gibberish or empty, the partition table is zeroed out. You need to know the old partition size. Usually, a VMFS datastore uses the entire LUN (Partition starting at sector 2048). Create a new partition (assuming a standard 1MB

esxcfg-volume -l # Find the volume name esxcfg-volume -U [Volume_Name] Run the repair. You must unmount the volume first, or you will crash the host. Usually, a VMFS datastore uses the entire LUN

partedUtil setptbl /vmfs/devices/disks/naa.6000c29c4c5a2b1c gpt partedUtil add /vmfs/devices/disks/naa.6000c29c4c5a2b1c 1 2048 [End_Sector_Number] To find the end sector: partedUtil getUsableSectors /vmfs/devices/disks/naa.6000c29c4c5a2b1c

Have you ever recovered a "dead" VMFS datastore? What trick worked for you? Let me know in the comments below. Always ensure you have current, restorable backups before attempting filesystem repairs. The author assumes no liability for data loss resulting from the misuse of these commands.