VMware Cloud Community
Hojjat
Contributor
Contributor

Datastore not show in the Storage list

Hi Everyone.

We have an ESXi 5.1 server with non-Raided two hard disks and some VMs inside in (Datastore 1 & Datastore 2). After a power failure, some of VMs renamed to "Unknown (inaccessible)" which are in the specified hard disk and now we cannot use them. After some tests, I see that Datastore 1 not show in the Storage list. I tried to add storage and recreate that datastore but this error was occurred :

"Either the selected disk already has a VMFS datastore or the host cannot perform a partition table conversion. Select another disk."

How can i recover my VMs without any data lost ?

Any suggestion will be appreciated.

Regards,

0 Kudos
29 Replies
a_p_
Leadership
Leadership

Please take a look at the "Command Line" section in https://kb.vmware.com/s/article/1011387​ to see whether this helps.

André

0 Kudos
RajeevVCP4
Expert
Expert

If there is power outage then you required reboot all hosts ,

All VM will be online or you required power on 1 by 1

Rajeev Chauhan
VCIX-DCV6.5/VSAN/VXRAIL
Please mark help full or correct if my answer is use full for you
0 Kudos
nileshm
Enthusiast
Enthusiast

Reboot your host once.

0 Kudos
continuum
Immortal
Immortal

Please check if the datastore still has a partitiontable with partedUtil.
If you want me to check the VMFS-volume please read
Create a VMFS-Header-dump using an ESXi-Host in production | VM-Sickbay
and provide a downloadlink.
Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
Hojjat
Contributor
Contributor

Thanks for replying,

Reboot did not help me also i cant power on my VMs because power options are grayed.

0 Kudos
MikeStoica
Expert
Expert

Your datastore still not available?

Can you take a screenshot of your datastore and VM?

0 Kudos
Hojjat
Contributor
Contributor

Yes, My datastore was disappeared as shown in the screenshot ("datastore-1" is not available - capacity 1.8 TB)

0 Kudos
Hojjat
Contributor
Contributor

ScreenShot

0 Kudos
Hojjat
Contributor
Contributor

Sorry

Correct Screenshot

VMs&Datastores.JPG

0 Kudos
MikeStoica
Expert
Expert

1

List all volumes that have been detected as snapshots.

esxcli <conn_options> storage filesystem list

2

Run esxcli storage filesystem mount with the volume label or volume UUID.

By default, the volume is mounted persistently, use --no-persist to mount persistently.

esxcli <conn_options> storage filesystem volume mount --volume-label=<label>|--volume-uuid=<VMFS-UUID>

0 Kudos
Hojjat
Contributor
Contributor

Thanks,

After run esxcli storage filesystem mount, this error was appeared (screenshot) :

Mount Error.png

0 Kudos
MikeStoica
Expert
Expert

Run the command like this:

esxli storage filesystem volume mount --volume-uuid=(your UID)

0 Kudos
Hojjat
Contributor
Contributor

The error was appeared again :

Error.JPG

0 Kudos
MikeStoica
Expert
Expert

I see that it shows as mounted.

If you do a storage rescan does it show up?

0 Kudos
Hojjat
Contributor
Contributor

I've done this already but it does not show up.

The size of volume and free space is equal in the last screenshot, this means that all data have been deleted ???!!!

0 Kudos
a_p_
Leadership
Leadership

The size of volume and free space is equal in the last screenshot, this means that all data have been deleted ???!!!

With the huge size it shows, it's more likely an issue with the partition table, and/or the file VMFS system.

I'd suggest you follow continuum​'s post. He's an expert when it comes to data recovery.


André

0 Kudos
Hojjat
Contributor
Contributor

Hi continuum

I have tried to create dump file and download it via WinSCP and attach here for you. Let me know if i have any mistake.

Create Dump.png

0 Kudos
Hojjat
Contributor
Contributor

Sorry, when i want attach file in forum the upload percentage was not show.

Here is download link :   https://ufile.io/hk4f2

0 Kudos
continuum
Immortal
Immortal

Hello
I dont think that you created the dump for the correct partition.
The dd command finished after just 3 MBs - so you selected the boot partition.
Please create a new dump file for the correct partition.


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos