partedUtil set /vmfs/devices/disks/naa.xxxxxxxxxxxx 1 2048 976773167 AA31E02A-400F-11DB-9590-000C2911D1B8 0 Then rescan:
ls /vmfs/devices/disks/ Look for the affected LUN. It will look something like: naa.600601605a281b00c1d5b86c5a3be011
esxcfg-storage -r vim-cmd hostsvc/datastore/reload Check mounted datastores:
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:
Check partition information:
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 :
partedUtil get /vmfs/devices/disks/naa.xxxxxxxxxxxx Example output: 60801 255 63 976773168
Total sectors = last number.