7 Replies Latest reply on May 18, 2018 2:32 PM by justin2li

    Datastore disappeared, still see device with VMFS partition (and others) on it. Can I recover or recreate the datastore?

    justin2li Lurker

      All-

       

      This is my first post, so hopefully this is in the right place. If I need to move to another forum, please let me know. Any assistance is greatly appreciated.

      ESXi 6.5

      Host: Dell R810

      Local Disks: Three 2tb WD Reds, , PERC H700, RAID 5

       

       

      When I logged in today, I quickly realized that all of my VM's were down:

       

      When I looked at my Datastores, they were gone:

      My devices appear there, though:

      When I click into the PERC H700 Device, the VMFS partition (where all of my VM's reside) is there:

       

      I tried following the guide here, using the partedUtil command, but it's not working. Perhaps I'm getting the start and end blocks wrong, but everything I try gives me an error like below:

      2018-05-15T22:12:17.301Z cpu4:70361)WARNING: Partition: 1732: naa.6782bcb025e14800228de60d0f4bd976: in-use partition 2 modification is not supported

      2018-05-15T22:12:17.301Z cpu4:70361)BC: 2466: Failed to write (uncached) object 'naa.6782bcb025e14800228de60d0f4bd976': Read only

       

       

      Below is the output from a few commands that might be helpful.

       

      [root@localhost:/var/log] partedUtil getptbl /vmfs/devices/disks/naa.6782bcb025e14800228de60d0f4bd976

      gpt

      486267 255 63 7811891200

      1 64 8191 C12A7328F81F11D2BA4B00A0C93EC93B systemPartition 128

      5 8224 520191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

      6 520224 1032191 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

      7 1032224 1257471 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0

      8 1257504 1843199 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

      9 1843200 7086079 9D27538040AD11DBBF97000C2911D1B8 vmkDiagnostic 0

      2 7086080 15472639 EBD0A0A2B9E5443387C068B6B72699C7 linuxNative 0

      3 15472640 7811891166 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

       

      [root@localhost:/var/log] partedUtil getUsableSectors /vmfs/devices/disks/naa.6782bcb025e14800228de60d0f4bd976

      34 7811891166

       

      [root@localhost:/var/log] fdisk -l

       

      ***

      *** The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil

      ***

       

      fdisk: device has more than 2^32 sectors, can't use all of them

      Found valid GPT with protective MBR; using GPT

       

      Disk /dev/disks/naa.6782bcb025e14800228de60d0f4bd976: 4294967295 sectors, 4095M

      Logical sector size: 512

      Disk identifier (GUID): 1c9d6251-63fd-40b9-bd1b-db12ce2d0383

      Partition table holds up to 128 entries

      First usable sector is 34, last usable sector is 7811891166

       

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

         1              64            8191       4064K   0700

         2         7086080        15472639       4095M   0700

         3        15472640      7811891166       3717G   0700

         5            8224          520191        249M   0700

         6          520224         1032191        249M   0700

         7         1032224         1257471        109M   0700

         8         1257504         1843199        285M   0700

         9         1843200         7086079       2560M   0700

       

       

       

      I'm really at a loss as to what to do. Any advice is greatly appreciated. If there is any other information that I can provide, I'd be happy to get it.

      Thanks,

      Justin