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@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@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@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@srvl030:~# lvcreate -n rr03a.vda.lv -L1G storage Logical volume "rr03a.vda.lv" created. root@srvl030:~# virsh vol-delete --pool storage rr03a.vda.lv Vol rr03a.vda.lv deleted Should be easy to avoid. Regards Harri