4

My virsh version

0.9.12.3

I created a Volume Group Pool via virsh.

virsh pool-define-as vg1 logical --source-name vg --target /dev/vg

Bad thing is, that /dev/vg does not exist, I made a typo.

I tried to delete the pool by

virsh pool-delete vg

which resulted in

error: Failed to delete pool vg1
error: internal error Child process (/sbin/vgremove -f vg) unexpected exit status 5:   Volume group "vg" not found

so how do I remove this misconfigured pool?

3

One can delete a pool without VolumeGroup like this:

The files are stored in

/etc/libvirt/storage

as XML files. Just delete them.

  • 1
    If the pool was created in a user-session, the pool might be located in $HOME/.config/libvirt/storage instead. – timss Jul 31 '16 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.