Link to home
Start Free TrialLog in
Avatar of corsytec
corsytecFlag for Switzerland

asked on

Esx cannot remove create snapshot, clone VM , error The operation is not allowed in the current state

Dear, We have an ESX 4 and one of our VM cannot be cloned or create / remove snapshot. my issue is that I have an snapshot that cannot be remove that is comming from Veeam B&R. This Snapshot 'VEEAM BACKUP TEMPORARY SNAPSHOT' seems tho be corripted. The VM is working fine. but the Veeam Backup cannot be done du this old one.

How can I remove this snapshot ? or remove manually snapshot ?
or
How can I resolve this issue

Thanks for your Hints
Heinz
Avatar of corsytec
corsytec
Flag of Switzerland image

ASKER

I also have an error message:

"The operation is not allowed in the current state"

 from vmware
firstly try to restart the management services on the host. Failing this i tend to find that this ends up in the only resolution being a HOST restart.
Avatar of Ramkumar Jayachandran
All you have to do is create a new snapshot.  after that completes, go back into snapshot manager and select delete all snapshots and it will get rid of the consolidate helper and the new snapshot.If your snapshot is rather large, the removing of the snap shot will error out at 95% (this is normal as there is a predefined time out to get a finished response) even though it errors out it is still merging the files in the background.

or try this


This issue occurs if the vCenter management agents have stopped causing the snapshot attempt to move in to the ON_SHUTTING_DOWN state.
 
To resolve this issue restart the VMware agents:

Ensure that the Virtual machine startup / shutdown with host feature is disabled before this step. See  Restarting hostd (mgmt-vmware) on ESX hosts restarts hosted virtual machines where virtual machine Startup/Shutdown is enabled (1003312)

Restart the management agents on the host. For more information, see Restarting the Management agents on an ESX or ESXi Server (1003490).

On vCenter Server, restart the vCenter and Management Web services. For more information, see Stopping, starting, or restarting vCenter services (1003895).

Attempt the snapshot again. The operation succeeds and the corresponding log entry for the snapshot attempt reflects a transition from ON to CREATE SNAPSHOT instead of ON_SHUTTING_DOWN.
This issue is only on 1 VM on the ESX, all other hosts VM can create snapshots, clone, Vmotion.

I Cannot create a new snapshot on this VM  :

error "The operation is not allowed in the current state"

I also see that in the datastore,  that the snapshot files are never change Ex: Host_Snapshotxxx.vmsn, or host-000001.vmdk, hostname-0000001-ctk.vmdk

Thanks for your hints
the error you are receiving is because a task is in progress, which has likely hung.

1. Restart Management Agents on the Host Server.
2. If using vCenter Server, also restart the vCenter Service.

then follow my EE Article to check if you have a Snapshot, and then we can proceed to removing it.

HOW TO: VMware Snapshots :- Be Patient
I am aware that you say it only affects the ONE VM but the above is the solution in most cases. Failing that, as I say, sometimes a full reboot of the host has been the only resolution I can ever get to work, even after restarting management agants and vcenter service.

Of course easier to do a host reboot if you have a cluster with other hosts to migrate other VM's to.
I restarted

service mgmt-vmware restart

service vmware-vpxa restart

and also the Vcenter and I can know remove the snapshot, great.

It was the Veeam process that Hung and blocked the VM

Thanks for your hints
check for remaining snapshots, and Veeam Backup in the future.
ASKER CERTIFIED SOLUTION
Avatar of Neil Russell
Neil Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial