[ovirt-users] How to recreate lease file for hosted engine

Ling Ho ling at aliko.com
Fri Apr 13 16:18:34 UTC 2018


Hello,

I upgraded ovirt-engine to 4.2.2 yesterday, and tried moving hosted 
engine disk to a different domain. I thought the move was sucessful and 
went and shut down my old domain NFS server. After that my hosted engine 
stopped.

Now all NFS is back up, I find that my hosted engine storage is on the 
new domain, but the metadata and lockspace are still on the old domain. 
I am trying to either move the metadata and lockspace to the new domain 
or copy the vm disk back to the old. When the vm disk is in the old, and 
I try starting hosted vm, it complains about incorrect lease name. I 
figure it must be with the .lease file in the vm volume.

libvirtError: resource busy: Failed to acquire lock: Lease lockspace 
name is incorrect
2018-04-13 09:16:28,601-0700 INFO  (vm/20b4ca22) [virt.vm] 
(vmId='20b4ca22-0bd1-46ef-9f9b-31637a93e32f') Changed state to Down: 
resource busy: Failed to acquire lock: Lease lockspace name is incorrect 
(code=1) (vm:1677)

Doing a stings on the lease file:
# strings 1006c1f3-5e59-49b4-b960-3ed369a2d94e.lease
8baf4007-426b-4910-88fe-94ea32f11f55
1006c1f3-5e59-49b4-b960-3ed369a2d94e

The first UUID (8baf4007-426b-4910-88fe-94ea32f11f55) is the UUID of the 
new domain. How do I go about recreating this lease file so it contains 
the UUID of the old domain?

Thanks,

...
ling


More information about the Users mailing list