[Pkg-libvirt-maintainers] Bug#1029334: virsh vol-delete stumbles over lost logical volume
Harald Dunkel
harri at afaics.de
Sat Jan 21 12:08:07 GMT 2023
Package: libvirt-clients
Version: 7.0.0-3
If a logical volume has been deleted or renamed without the help
of virsh, then virsh vol-delete dies with an internal error later.
Sample:
root at srvl030:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
export storage -wi-ao---- 2.39t
rancher01c.vda.lv storage owi-a-s--- 128.00g
rancher01c.vda.lv.snapshot storage swi-a-s--- 64.00g rancher01c.vda.lv 1.42
rr03.vda.lv storage -wi-ao---- 16.00g
rr03.vda.lv.bak storage -wi-a----- 16.00g
rr03.vdb.lv storage -wi-ao---- 128.00g
rr03.vdb.lv.bak storage -wi-a----- 128.00g
root at srvl030:~# virsh vol-list --pool storage
Name Path
-------------------------------------------------
export /dev/storage/export
rr03.vda.lv /dev/storage/rr03.vda.lv
rr03.vda.lv.bak /dev/storage/rr03.vda.lv.bak
rr03.vdb.lv /dev/storage/rr03.vdb.lv
rr03.vdb.lv.bak /dev/storage/rr03.vdb.lv.bak
rr03a.vda.lv /dev/storage/rr03a.vda.lv
root at srvl030:~# virsh vol-delete --pool storage rr03a.vda.lv
error: Failed to delete vol rr03a.vda.lv
error: internal error: Child process (/sbin/lvchange -aln /dev/storage/rr03a.vda.lv)
unexpected exit status 5: Failed to find logical volume "storage/rr03a.vda.lv"
root at srvl030:~# lvcreate -n rr03a.vda.lv -L1G storage
Logical volume "rr03a.vda.lv" created.
root at srvl030:~# virsh vol-delete --pool storage rr03a.vda.lv
Vol rr03a.vda.lv deleted
Should be easy to avoid. Regards
Harri
More information about the Pkg-libvirt-maintainers
mailing list