Backup & Recovery

 View Only
  • 1.  Corrupted Files after snapshot deletion - recovery

    Posted Aug 25, 2017 07:11 PM

    I was attempting to increase disk size on the primary disk of a VM. I followed instructions to delete all snapshots. After I noticed that the disk type went from Thin provisioned to Thick provisioned. After increasing the disk size in the VM properties I powered on the machine and received multiple errors:

    An error was received from the ESX host while powering on VM <NAME>.

    Failed to start the virtual machine.

    Cannot open the disk '/vmfs/volumes/NUMBER/NAME.vmdk' or one of the snapshot disks it depends on.

    The system cannot find the file specified

    VMware ESX cannot find the virtual disk "/vmfs/volumes/NUMBER/NAME-000003.vmdk". Verify the path is valid and try again.

    Module DiskEarly power on failed.

    Cannot open the disk '/vmfs/volumes/NUMBER/NAME_4-000004.vmdk' or one of the snapshot disks it depends on.

    The system cannot find the file specified

    VMware ESX cannot find the virtual disk "/vmfs/volumes/NUMBER/NAME.vmdk". Verify the path is valid and try again.

    I have attempted to follow the instructions to recreate the vmdk file, but have had no success. Is there any other option to get this machine back?



  • 2.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 25, 2017 07:23 PM

    Hi,

    1. please follow the steps create vmdk

    vSphere Advanced Technics: Recreating a missing virtual machine disk descriptor file

    2. If you have backup then you can restore

    3. create a clone of vm  , open vmx file  and make modification (vmdk file names as per vms configuration)  and try to power on



  • 3.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 25, 2017 07:46 PM

    First of all, it's important to get an overview of the current state.

    For this, please provide a complete list of files in the VM's folder on the datastore, i.e. run

    ls -lisa > filelist.txt

    from the command line in the VM's folder, then download the newly created filelist.txt, and attach it to a reply post. Also attach the VM's configuration (.vmx file).

    Other questions:

    Which ESXi version do you use?

    Which vSphere Client do you use? (in case of the Embedded Host Client, please provide its version and build - "Help" -> "About")

    André



  • 4.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 26, 2017 12:00 AM

    AFAIK you cannot increase space on the vmdk when you have snapshots. So am not clear on how you got the error which indicates delta files which are part of snapshots post increasing the size of the vmdk... Did you take another snapshot post increasing the disk space. How many snapshots are there currently..

    Did you find all the linking disk descriptor files when you take a ssh session on the esxi host?

    Thanks,

    MS



  • 5.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 26, 2017 03:35 PM

    > AFAIK you cannot increase space on the vmdk when you have snapshots.
    Wrong - of course you can do that. Many folks have done that before because they do not know how to find out if their VM has snapshots.
    The mistake is to trust Snapshotmanager.



  • 6.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 26, 2017 04:07 PM

    Though the snapshot manager identifies or not identifies, the snapshot database is having the information and will try to grab info from that.. Incase of failure of consolidation still. I don't believe u will be allowed to change the vmdk space.. It might happen when there is corruption with snapshots database which I have not seen in regular but it may happen..



  • 7.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 26, 2017 07:34 PM

    FYI the snapshot database is a very fragile textfile with the extension *.vmsd.
    With a little bit of practice you will realize that the vmsd gets corrupted quite often - especially if tools like Veeam are used.



  • 8.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 27, 2017 08:18 AM

    Hi,

    From the errors you could do the below things.

    1). Look for snapshot manager if there any snapshot present. If not, create a test sanpshot and delete it again (This is just a trick).

    2). If above steps fails, power down the VM and run offline consollication if online consollidation fails.

    3) If still does not solve your issue, then you will have to manually map the original disk to the VM.

    Remove the delta files from VM edit settings (vmname-00001, 0002 and so on) and look for original vmdk (i.e vmname.vmdk, vmname1.vmdk and so on).

    4). Power on the vm.

    Note: A small data loss would be there since the snapshot was corruped. If it is not so financial or trading server, no one gonna know what happened and you VM will start working perfectly.

    Thanks

    If it solves your query, please mark it resolved.

    My own blog is www.vmwarediary.com

    Visit and get more answeres,article, tips, trics, ebook and many more.



  • 9.  RE: Corrupted Files after snapshot deletion - recovery

    Posted Aug 28, 2017 07:50 PM

    Support case opened. I think this machine is not recoverable. A vmkfstools --fix check NAME.vmdk command run on the 120 GB disk file now results in a "The file specified is not a virtual disk. (15)."

    Multiple attempts were made to recreate the vmdk file using the referenced article.

    Snapshots were consolidated using the steps here: KB 1004047 (except for the backup ;-( )

    No other backups besides snapshots. Live and learn.

    I will no longer trust snapshots for any purpose. If the work, good. If they don't I will have some other more robust alternative.