Vmfs Partition Table Recovery !!better!! Official
esxcfg-info -s | grep -i vmfs Better yet, use the hidden voma tool (VMFS Offline Metadata Analyzer) in read-only mode:
The Ultimate Guide to VMFS Partition Table Recovery: When Your Datastore Goes Dark vmfs partition table recovery
partedUtil get /vmfs/devices/disks/naa.6001234567890 If it shows a table but complains about checksum, you may repair the primary from the backup (see recovery section). Method A: Restore partition table from a known backup (Best case) If you have a backup of your ESXi host configuration (e.g., from vicfg-cfgbackup ), you might have saved the partition layouts. Or if you have another identical datastore, compare. esxcfg-info -s | grep -i vmfs Better yet,
partedUtil restore /vmfs/devices/disks/naa.6001234567890 This command looks for the secondary GPT at the end of the disk and restores the primary. after a disk was mistakenly partitioned with a different tool. Method C: Using vgfs (Linux-based recovery) – For advanced users If ESXi tools fail, boot a Linux live CD (Ubuntu, SystemRescue) and install vmfs-tools : partedUtil restore /vmfs/devices/disks/naa
dd if=/vmfs/devices/disks/naa.6001234567890 bs=512 count=1 skip=END_SECTOR_NUMBER | hexdump -C | grep "EFI PART" But skip math is error-prone. Instead, use partedUtil :