VMware Cloud Community
byroniin
Contributor
Contributor

Recover VMFS datastore to ESXi 5.1 host

I have a single ESXi host connected to a Nexsan 18 SAN via ISCSI and recently had to reboot the ESXi host.  Upon the reboot, one of my volumes will not show up as a datastore.  The LUN is still showing up as a device, but when I go to add it, it does not give me a resignature option (as noted in some posts/kbs) and I only have the option to format.  These were created fresh as vmfs-5 volumes

I've looked and it may be that the partition table has been lost and that I should be using the partedUtil command to create a new one?  If I understand correctly, this will not format the volume?

I ran this:

partedUtil get /vmfs/devices/disks/naa.6000402002d84a6b7b8fe6a100000000

and got:


243556 255 63 3912729600
1 2048 3912728575 0 0

I also ran 'fdisk -l' for this info:

Disk /dev/disks/naa.6000402002d84a6b7bd658df00000000: 1953126400 sectors, 1862M

Logical sector size: 512

Disk identifier (GUID): f2d7a834-2555-401a-b571-26123829d982

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1953126366


Number  Start (sector)    End (sector)  Size       Code  Name

   1            2048      1953126366       1862M   0700

Do I need to run:
partedUtil setptbl "/vmfs/devices/disks/naa.6000402002d84a6b7b8fe6a100000000" gpt "1 2048 1953126366 AA31E02A400F11DB9590000C2911D1B8 128"
???
0 Kudos
0 Replies