"virt-resize --expand" fails with "vgchange -an: Invalid units specification"
Issue
When trying to create an image that is based on another image, virt-resize --expand
fails with the error: virt-resize: error: libguestfs error: lvm_set_filter: vgchange -an:
Invalid units specification
[root@blp1ut01 images]# qemu-img create -f qcow2 rhel_73_undercloud.qcow2 100G
Formatting 'rhel_73_undercloud.qcow2', fmt=qcow2 size=107374182400 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
[root@blp1ut01 images]# virt-resize --expand /dev/sda1 rhel-guest-image-7.3-35.x86_64.qcow2 rhel_73_undercloud.qcow2
[ 0.0] Examining rhel-guest-image-7.3-35.x86_64.qcow2
◓ 25% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒═══════════════════════════════════════════════════════════════════════════
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
virt-resize: error: libguestfs error: lvm_set_filter: vgchange -an:
Invalid units specification
If reporting bugs, run virt-resize with debugging enabled and include the
complete output:
virt-resize -v -x [...]
[root@blp1ut01 images]#
Environment
- Red Hat Enterprise Linux 7
- virsh
- virtlib
- Red Hat OpenStack Platform 10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.