VMware vSphere

 View Only
Expand all | Collapse all

Datastore not show in the Storage list

nileshm

nileshmSep 19, 2018 12:06 PM

Hojjat

HojjatSep 20, 2018 01:44 PM

  • 1.  Datastore not show in the Storage list

    Posted Sep 18, 2018 03:31 PM

    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,



  • 2.  RE: Datastore not show in the Storage list

    Posted Sep 18, 2018 09:13 PM

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

    André



  • 3.  RE: Datastore not show in the Storage list

    Posted Sep 19, 2018 07:13 AM

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

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



  • 4.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 06:50 AM

    Thanks for replying,

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



  • 5.  RE: Datastore not show in the Storage list

    Posted Sep 19, 2018 12:06 PM

    Reboot your host once.



  • 6.  RE: Datastore not show in the Storage list

    Posted Sep 19, 2018 01:44 PM

    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



  • 7.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 02:46 PM

    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.



  • 8.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 03:03 PM

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

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



  • 9.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 05:17 PM

    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.



  • 10.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 08:11 PM

    Thanks for replying,

    Which one is the correct partition in screenshot?

    My disk capacity : 2 TB



  • 11.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 08:16 PM

    It should be partition 3



  • 12.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 08:30 PM

    This error was appeared when Partition 3 was selected :



  • 13.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 08:57 PM

    This means that there is no way to fix the volume so that it can be mounted again.
    But it may be possible to still extract some or all of the VMs.
    If the VMs are important enough we can use a Linux VM to create the dump.
    Please download my Linux LiveCD from here
    https://sanbarrow.com/livecds/moa64-nogui/MOA64-nogui-incl-src-111014-efi.iso
    Install Anydesk and call me via skype tomorrow.
    Ulli



  • 14.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 09:33 PM

    Thanks a lot.

    What time can i call you tomorrow ?

    Best Regards,



  • 15.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 09:46 PM

    You can call after 11:00 in the morning (Berlin Time)



  • 16.  RE: Datastore not show in the Storage list

    Posted Sep 21, 2018 01:17 PM

    Update:
    we are extracting the VMs now.
    A first VM is already back in production.
    The others will follow later ... copying 1.7 TB of data takes its time when both read and write has to be done from Linux via sshfs.
    Ulli



  • 17.  RE: Datastore not show in the Storage list

    Posted Mar 04, 2019 07:03 PM

    Hi all,  @continuum

    I have read your comments regarding this issue with datastore.

    I believe i have similar case, but unsure because are showing partitions as naa.

    I cannot make just yet the dump file but as per you can see on the screenshots, there is anyway to extract the VMs? These are important production VMs, unfortunately no raid or backups were scheduled.

    Thanks in advance

    Moisés



  • 18.  RE: Datastore not show in the Storage list

    Posted Mar 05, 2019 11:27 AM

    Hi again,

    If anyone else beside continuum please can help me out, i summarize the issue this the datastore:

    I am in critical situation with old vSphere 5.5 unfortunately support by VMWare ended septembre 2018.

    In my company we have 11 VM on single local hard disk (no backup) under ESXI 5.5.0 build 1131820

    8 of those 11 VM were up and running but there was power outage. So the esxi was not shutdown properly.

    First i had issues to access vSphere via vcenter (i restarted the agent management services via ssh) but the behaviour of the exsi was not normal, i got on logs randomly hosd non responsive messages every 5 min aprox.

    Then after new reboot i got access again via vcenter (not url as this version is not compatible as you know) but datastore was lost, no persistent message datastore under storage tab.

    See attached errors and current host partitions.

    I am in the point that i added new local disk and created new datastore named datastorerescue and the VMFS-Header-dump

    Thanks in advance!

    Mosés



  • 19.  RE: Datastore not show in the Storage list

    Posted Mar 05, 2019 01:14 PM

    looking into it now
    Ulli



  • 20.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 06:57 AM

    Your datastore still not available?

    Can you take a screenshot of your datastore and VM?



  • 21.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 12:16 PM

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



  • 22.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 12:25 PM

    ScreenShot



  • 23.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 12:29 PM

    Sorry

    Correct Screenshot



  • 24.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 12:48 PM

    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>



  • 25.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 01:17 PM

    Thanks,

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



  • 26.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 01:32 PM

    Run the command like this:

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



  • 27.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 01:44 PM

    The error was appeared again :



  • 28.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 01:59 PM

    I see that it shows as mounted.

    If you do a storage rescan does it show up?



  • 29.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 02:05 PM

    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 ???!!!



  • 30.  RE: Datastore not show in the Storage list

    Posted Sep 20, 2018 02:09 PM

    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é