backup di una VM non riuscito con errore "Unable to delete pre-existing snapshots: Another task is already in progress."

Summary: il backup delle VM ha esito negativo con il seguente errore: 2021-04-14T17:46:35Z ERROR: [@(#) Build number: 51] Failed to complete removal of snapshot "snapshot-347817": Another task is already in progress. 2021-04-14T17:46:35Z ERROR: [@(#) Build number: 51] Unable to delete pre-existing snapshots: Another task is already in progress. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Backup non riuscito per una VM.
Anche la creazione di una snapshot manuale per la VM ha esito negativo con il seguente errore: image005.png

Cause

L'attività obsoleta viene visualizzata sull'host ESXi per quella particolare VM.

Resolution

1) Accedere a vCenter e verificare se sono presenti snapshot obsolete collegate alla VM (in caso affermativo, eliminarle/consolidarle).
2) Verificare se sono presenti snapshot nel vproxy (in caso affermativo, eliminarle/consolidarle).

Se non vengono visualizzate snapshot meno recenti sulla VM o sul vproxy, completare i seguenti passaggi per verificare la presenza di attività della VM attive sull'host ESXI:

1) Accedere all'host ESX nella console o tramite SSH

2) Per generare un elenco delle attività associate a specifiche macchine virtuali, ottenere prima il VMID della macchina virtuale. Eseguire il comando:
vim-cmd vmsvc/getallvms
The output is similar to:
Vmid Name File Guest OS Version Annotation
112 VM-1 [Datastore] VM-3/VM-3.vmx winLonghornGuest vmx-04
128 VM-2 [Datastore] VM-3/VM-3.vmx winXPProGuest vmx-04
144 VM-3 [Datastore] VM-3/VM-3.vmx winNetStandardGuest vmx-04

3) Prendere nota dei valori riportati nella colonna VMID perché verranno utilizzati nei passaggi successivi.

4) Una volta ottenuto il VMID, generare l'elenco delle attività associate alla macchina virtuale desiderata. Eseguire il comando:
vim-cmd vmsvc/get.tasklist VMID
Where VMIDis the number identified in step 3.
L'output sarà simile a:
(ManagedObjectReference) [
'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887'
]

5) Prendere nota dell'ID dell'attività. Nell'esempio precedente, l'ID dell'attività è:
haTask-112-vim.VirtualMachine.createSnapshot-3887

6) Per ottenere informazioni sullo stato di una particolare attività, eseguire il comando:
vim-cmd vimsvc/task_info task_identifier
Dove task_identifier è la stringa registrata nel passaggio 5.
L'output sarà simile a:
(vim.TaskInfo) {
dynamicType = ,
key = "haTask-112-vim.VirtualMachine.createSnapshot-3887",
task = 'vim.Task:haTask-112-vim.VirtualMachine.createSnapshot-3887',
description = (vmodl. LocalizableMessage) null,name
= "vim.VirtualMachine.createSnapshot",
descriptionId = "VirtualMachine.createSnapshot",
entity = 'vim.VirtualMachine:112',
entityName = "deploy-test",
state = "running",
cancelled = false,cancelable
= false,error
= (vmodl. MethodFault) null,result
= ,
progress = 15,reason
= (vim.TaskReasonUser) {
dynamicType = ,
userName = "root",
},
queueTime = "2012-11-28T01:29:35.233835Z",startTime = "2012-28T01:29:35.233835Z",
startTime = "2012-11-28T01:29:35.234891Z",
completeTime = ,
eventChainId = 2936866,changeTag
= ,
parentTaskKey = ,
rootTaskKey = ,


La presenza di attività attive deve essere confermata nuovamente dal team VMware e il supporto VMware indicherà l'azione successiva da eseguire.
Article Properties
Article Number: 000185657
Article Type: Solution
Last Modified: 23 Aug 2022
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.