[root@mytest-server:/root]
#virsh list
Id Name State
----------------------------------------------------
11 io_vm_219003 shut off
[root@mytest-server:/root]
#virsh start io_vm_219003
error: Domain is already active
ps aux | grep io_vm_2019003 可以看到实际上/usr/bin/qemu-kvm -name io_vm_219003 ...是运行状态
尝试关闭虚拟机发现有锁导致超时
#virsh destroy io_vm_219003
error: Failed to destroy domain io_vm_219003
error: Timed out during operation: cannot acquire state change lock
libvirtd日志显示:
2018-04-23 15:35:10.000+0000| 3571| warning | qemuDomainObjBeginJobInternalCore:1254 | Cannot start job (modify, none) for domain io_vm_219003; current job is (modify, none) owned by (3568, 0)
2018-04-23 15:35:10.000+0000| 3571| error | qemuDomainObjBeginJobInternalCore:1259 | Timed out during operation: cannot acquire state change lock
可以看到当前任务是 3568
blockjob Manage active block operations
domjobabort abort active domain job
domjobinfo domain job information