VMware vSphere

 View Only
  • 1.  VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 08, 2010 10:26 AM

    ESX 4.0U2

    SLES 10/11

    I was testing virtual machine snapshot backup method, sometimes the task to create virtual machine snapshot issued(stucked), the task has no progress bar .

    What's the matter, please give me some advice.

    Thanks.



  • 2.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 08, 2010 11:31 AM

    First, verify whether snapshot operation was failed or what :-

    • get VMID --> $vim-cmd vmsvc/getallvms

    • check stuck process -> $vim-cmd vmsvc/get.tasklist vmid

    • Verify snapshot is there -> $vim-cmd vmsvc/snapshot.get vmid



  • 3.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 12, 2010 04:04 AM

    yes, i checked it as your advise.

    vim-cmd vmsvc/get.tasklist vmid returns that a creatsnapshot task is processing.

    vim-cmd vmsvc/snapshot.get vmid command resturns that there is no snapshot be created.

    sometimes ,when there are more than one createsnapshot task be executed at the same time, the tasks will be stucked.

    if i create snapshot one by one, this situation will not appear.



  • 4.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 08, 2010 12:23 PM

    Was the snapshot created or failed? Are u taking the snapshot from vCenter or directly from the ESX?

    As for the progress bar in vCenter, it's quite normal for some tasks to appear as if it "hung" or "failed".






    ~~~~~ To Live Is To Die ~~~~~



  • 5.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 12, 2010 06:37 AM

    The create snapshot task is not failed,just stuck,no progress bar.

    I take snapshot directly from the ESX console.

    If i take snapshot for more than one VMs at same time using CLI command,all the task will stuck sometimes,if i take snapshot for VMs one by one, the task will not be stuck.

    It's strange,does esx CLI not support multiple simultaneous tasks processing.



  • 6.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 12, 2010 06:57 AM

    When create snapshot task stuck, the VMware.log will print message like this:

    Oct 11 19:57:22.336: mks| MKS switching absolute mouse on

    Oct 11 19:57:22.346: mks| HostOps hideCursor before defineCursor!

    Oct 11 20:05:29.348: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue for guestUserName=hostd-quiescedsnap

    Oct 11 20:05:29.349: vmx| VMAutomation: VMAutomation_ReadGuestOperationPolicies fails. hostPolicyString is NULL.

    Oct 11 20:05:29.349: vmx| VMAutomation: VixAutomation_IsGuestOperationAllowed fails. No policy for this operation.

    Oct 11 20:05:29.349: vmx| VMAutomation: VixAutomation_IsGuestOperationAllowed returns result=0

    Oct 11 20:05:29.350: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue checking global refcount

    Oct 11 20:05:29.350: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue featureRefCount=8.

    Oct

    11 20:05:29.351: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue

    loading dictionary

    /vmfs/volumes/4c9dbdc2-7bda77c2-c56a-001517e43a06/105_sles10_1/105_sles10_1.vmx

    Oct

    11 20:05:29.351: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue

    reading secret at guest.commands.sharedSecretLogin.hostd-quiescedsnap

    Oct

    11 20:05:29.352: vmx| VMAutomation: VMAutomation_CheckSharedSecretValue

    found shared secret value BpFmqaBY7HLoGLZud2/v3p7oZMGmaCwEF7BomVq98BM=

    Oct 12 10:18:11.422: mks| MKS: Base polling period is 10000us

    Oct 12 10:18:27.092: mks| VNCENCODE 3 encoding mode change: (1024x768x16depth,16bpp,2048bytes/line)

    Oct 12 10:18:27.503: mks| SOCKET 3 (30) recv error 104: Connection reset by peer

    Oct 12 10:18:27.514: mks| SOCKET 3 (30) destroying VNC backend on socket error: 1

    Oct 12 10:18:27.515: mks| MKS: Base polling period is 1000000us

    The create snapshot task begin at Oct 11 20:05, but up to Oct 12 10:18, the task has no progress bar yet.

    What does the message mean?



  • 7.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 12, 2010 07:10 AM

    ps -ef print like this:

    root 19122 18951 0 Oct11 ? 00:00:00 python /usr/bin/vmware-cmd /vmfs/volumes/4c9dbdc2-7bda77c2-c56a-001517e43a06/105_sles10_1/105_sles10_1.vmx createsnapshot EsxserverTempSnapshot18951 EsxserverTempSnapshot18951 1 0

    root 19124 18953 0 Oct11 ? 00:00:00 python /usr/bin/vmware-cmd /vmfs/volumes/4c9dbdd5-86859162-20d9-001517e43a06/105_sles10_2/105_sles10_2.vmx createsnapshot EsxserverTempSnapshot18953 EsxserverTempSnapshot18953 1 0



  • 8.  RE: VM Create Snapshot task stuck, have no progress bar.

    Posted Oct 13, 2010 01:15 AM

    It's so strange.