ESXi

 View Only
Expand all | Collapse all

snapshot failing - Operation not allowed in current state

  • 1.  snapshot failing - Operation not allowed in current state

    Posted Jan 17, 2023 01:38 PM

    Hi,
    SInce upgrading my esxi host to 7
    My snapshots are failing with the error message
    Operation not allowed in current state
    I've restarted the host and vms

     

    Client version:

    2.1.1

    Client build number:

    20188605

    ESXi version:

    7.0.3

    ESXi build number:

    20842708



  • 2.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 17, 2023 02:08 PM

    Hi

    Could you check if you have another snapshot ?

    Have you try to move the vm to another datastore ?

    Rgds



  • 3.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 17, 2023 08:12 PM

    Try to follow the steps in the following KB to see if there are any hanging tasks for the VM(s).  https://kb.vmware.com/s/article/1004340



  • 4.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 17, 2023 08:19 PM

    I deleted all snapshots - there were none

    Moving this VM is long as it is 3TB - if it's the only way.

    There must be more information or logs other than this message - I'm hoping.

    I'll move the VM and try again but it seems like not getting to the root cause of this error.



  • 5.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 18, 2023 09:24 AM

    have you got enough space disk into the VM and into the datastore or into your SAN/NAS ?



  • 6.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 18, 2023 06:20 PM

    yes there is plenty of free space

    thank you



  • 7.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 18, 2023 10:09 AM

    Is it happening on one particular VM or all the VMs in the host after upgrading the node to 7.x ?

    Can you share the vmware.log file and hostd.log file from the ESXi node with VM name and time stamp. I can have a look at the logs to see what is causing this issue.



  • 8.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 18, 2023 08:03 PM

    The failing snapshot is most likely occurring due to some virtual hardware attached to the VM, specifically PCI devices. (For example, if you have a PCI device delivering GPU passthrough.) You can either remove the PCI device, or try shutting the VM down completely and perform an offline snapshot while the VM is powered off. 

    If this is occurring on all VMs residing on a particular host, SSH to that host and run the following commands to restart the management services. Then reboot the VM and try another snapshot. 

    /etc/init.d/hostd restart
    /etc/init.d/vpxa restart

    You could also restart the vCenter to ensure that all the management services are running correctly. 

    Hopefully this helps! 



  • 9.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 19, 2023 06:22 PM

    the snapshot works with the vm off

    the problem vm is windows 2019 server on vmware host 1

    3TB hard disk

    I do have other another vmware host with another vm with windows 2019 server with 1.5TB hard disk on another server and it backs up perfectly.

    I can't figure out what the difference is

    No special PCI cards are in either host.

     

     



  • 10.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 19, 2023 08:28 PM

    Great to hear that it worked with the powered off VM! Note that the PCI device is not located within the host, but rather in the VM settings. 

    If the other VM snapshot works on another host, it's possible that the host may have some faulted services. You can test by vMotioning each VMs to the opposite host and see if it works there. 

    Please also note that snapshots should not be used as long-term backups and should be deleted within 72 hours to avoid performance issues, especially with the large storage size of the VMs. For backups that need to remain more than 72 hours, a proper backup solution should be used, such as Rubrik, Veeam etc. 

    https://kb.vmware.com/s/article/1025279 



  • 11.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 19, 2023 11:56 PM

    I have chosen to schedule 2 tasks to shutdown the vm during the back each day and start it up again after the backup is finished.

    It's not the solution I had hoped for but I need regular backups.



  • 12.  RE: snapshot failing - Operation not allowed in current state

    Posted Jan 23, 2023 11:13 AM

    Hi,

    Could you take a capture of the disks configuration ?

     

    Rgds