Recover Vmfs Partition Table - Exclusive
fdisk -l /vmfs/devices/disks/naa.xxxxxxxxxxxx ESXi has a built-in recovery tool that can restore a VMFS partition table if the VMFS superblock is intact. Method A: Using partedUtil restore First, check if a VMFS volume is detectable:
partedUtil set /vmfs/devices/disks/naa.xxxxxxxxxxxx 1 2048 976773167 AA31E02A-400F-11DB-9590-000C2911D1B8 0 Then rescan: recover vmfs partition table
vim-cmd hostsvc/datastore/info If automatic restore fails, you may need to manually recover the partition starting sector. Find the VMFS superblock offset VMFS superblock is typically located at sector 128 (1MB offset, 512-byte sectors). Use dd and hexdump : fdisk -l /vmfs/devices/disks/naa
Check partition information:
ls /vmfs/devices/disks/ Look for the affected LUN. It will look something like: naa.600601605a281b00c1d5b86c5a3be011 recover vmfs partition table
Total sectors = last number.