#1 2019-10-14 13:46:32

bullet_flame
Member
Registered: 2019-02-17
Posts: 8

Backup VM with snapshots: unable to delete snapshots

Hello !

Currently I'm testing trial version of xsi-dc and discovered very strange issue in case of VM with snapshots.

During backup procedure xsi-dc reported that it's impossible to delete temporary snapshot with name like xsi7834010995546.
Also it's impossible to delete manually the single snapshot afterwards or all snapshots.

Failed - A general system error occurred: vim.fault.GenericVmConfigFault

And it's impossible to delete this VM:

Failed - Unable to access file since it is locked

Announced feature All pre-existing snapshots are preserved doesn't work.

Of course it's great solution, but some features need to be fixed. Or maybe I'm doing something wrong.

Last edited by bullet_flame (2019-10-14 14:51:41)

Offline

#2 2019-10-14 19:23:24

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: Backup VM with snapshots: unable to delete snapshots

You are describing a general issue. First of all delete any lock files .lck in the VM folder. Then make sure your VM is working O.K., take a snapshot, then another one on top of it, three our four piled snapshots should not harm, then delete them one by one. If you can't, then you will need to find out what's wrong and fix it before actually using (c)XSIBackup-DC

Offline

#3 2019-10-15 09:16:31

bullet_flame
Member
Registered: 2019-02-17
Posts: 8

Re: Backup VM with snapshots: unable to delete snapshots

Thanks a lot for feedback !

So I deployed another VM from scratch and no issues during backup process were detected.
Possibly it was something wrong with my first VM.

After that I deleted all the existing snapshots and tried to restore.
When restoration finished I checked that snapshots don't appeared and tried to re-register VM.
After re-registration 2 snapshots made by me became in place and additional temporary xsi snapshot.
This xsi snapshot can't be deleted.

I checked that no lock files are presented inside VM folder.

Last edited by bullet_flame (2019-10-15 09:35:06)

Offline

#4 2019-10-15 13:37:37

bullet_flame
Member
Registered: 2019-02-17
Posts: 8

Re: Backup VM with snapshots: unable to delete snapshots

It seems I found workaround:

I tried to make disk consolidation and got the same error :

Consolidate VMDisks	VM-Deb-x64-02
root	10/15/2019 16:26:22	10/15/2019 16:26:22	Failed - Unable to access file since it is locked

The same error when tried to revert snapshot:

 Revert To Snapshot	VM-Deb-x64-02
root	10/15/2019 16:27:15	10/15/2019 16:27:15	Failed - Unable to access file since it is locked 

After that tried to consolidate disks again and it was successful :

 Consolidate VMDisks	
VM-Deb-x64-02
root	10/15/2019 16:27:28	10/15/2019 16:27:28	Completed successfully

So twice consolidation helped in my case.
All operations with the snapshots became successful.

Last edited by bullet_flame (2019-10-15 13:39:54)

Offline

#5 2019-10-16 15:38:40

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: Backup VM with snapshots: unable to delete snapshots

Mmm, whatch your disks, don't wait till they wear out.

Offline

#6 2019-10-21 14:47:36

bullet_flame
Member
Registered: 2019-02-17
Posts: 8

Re: Backup VM with snapshots: unable to delete snapshots

Disks are OK, it's not the reason.

I upgraded Xsibackup-DC to version 1.0.0.2 and it restored VM with snapshots without any issues.

So I suppose it was a bug of version 1.0.0.1 used by me previously.

PS:
When I deleted all the snapshots and recovered VM from backup - I was needed to remove VM from inventory and register again to see all the snapshots.
Also it's possible to reload vmx file without unregister/register action:

vim-cmd vmsvc/reload Vmid

Maybe it's will be good to add automatic reload of vmx file configuration after restore.
And also to add key to delete all existing snapshots before backup.

Last edited by bullet_flame (2019-10-21 15:41:05)

Offline

#7 2019-11-23 08:46:14

stanw
Member
Registered: 2019-09-10
Posts: 4

Re: Backup VM with snapshots: unable to delete snapshots

I am also getting a disk locked error.

Vsphere reports the following: virtual machine disk consolidation failed
If I manually try to consolidate (through the menus) it reports: An error occurred while consolidating disks: msg.fileio.lock.
Consolidation failed for disk node 'scsi0:0': msg.fileio.lock.

I've reviewed posts on this issue but am not clear how to progress.

Offline

#8 2019-11-25 12:36:56

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: Backup VM with snapshots: unable to delete snapshots

The errors you are describing in this post related to snapshot deletion and disk consolidation are typical when you move a VM from VMFS5 to VMFS6. (c)XSIBackup-DC is an extremely flexible tool, it will allow you to copy virtually anything to anywhere, but you have to keep the basic set of rules in mind when doing so: don't mix VMFS versions, don't try to run VMs with higher HW versions than supported by the ESXi host, etc...

Delete any .lck files in the VM directory. (c)XSIBackup-DC deletes them after cloning, backing up or doing any task, but if you kill some job you might leave some leftover.

Offline

Board footer