Hi all,
I have a snapshot remove that is hanged and made the VM unresponsive.
Tried to stop it but no luck.
Here the task it is hanging the VM:
[root@rsthost5:~] vim-cmd vimsvc/task_info haTask-32-vim.vm.Snapshot.remove-2154353051
(vim.TaskInfo) {
key = "haTask-32-vim.vm.Snapshot.remove-2154353051",
task = 'vim.Task:haTask-32-vim.vm.Snapshot.remove-2154353051',
description = (vmodl.LocalizableMessage) null,
name = "vim.vm.Snapshot.remove",
descriptionId = "vm.Snapshot.remove",
entity = 'vim.VirtualMachine:32',
entityName = "asteroid",
locked = <unset>,
state = "running",
cancelled = true,
cancelable = true,
error = (vmodl.MethodFault) null,
result = <unset>,
progress = <unset>,
reason = (vim.TaskReasonUser) {
userName = "root"
},
queueTime = "2020-02-08T01:24:10.963167Z",
startTime = "2020-02-08T01:24:10.963267Z",
completeTime = <unset>,
eventChainId = -2140614245,
changeTag = <unset>,
parentTaskKey = <unset>,
rootTaskKey = <unset>,
activationId = <unset>
}
I did tried these:
[root@rsthost5:~] vim-cmd vmsvc/power.off 32
Powering off VM:
Power off failed
[root@rsthost5:~] vim-cmd vmsvc/power.shutdown 32
(vim.fault.TaskInProgress) {
faultCause = (vmodl.MethodFault) null,
faultMessage = <unset>,
task = 'vim.Task:haTask-32-vim.vm.Snapshot.remove-2154353051'
msg = "Received SOAP response fault from [<cs p:000000d4cae14a20, TCP:localhost:8307>]: shutdownGuest
Another task is already in progress."
}
[root@rsthost5:~] vim-cmd vmsvc/get.tasklist 32
(ManagedObjectReference) [
'vim.Task:haTask-32-vim.vm.Snapshot.remove-2154353051'
]
[root@rsthost5:~] vim-cmd vimsvc/task_cancel haTask-32-vim.vm.Snapshot.remove-2154353051
Any hint very appreciated.
Update:
I did a hostd restart, task seems not running anymore but cannot start the VM.
I did shutdown all other VM and asked host to reboot, but the shutdown were hang at "stopping periodic scsi".
I had to brute force turn off power of the host.
After restart the VM had to consolidate disks, after consolidation I started it and seems fine.