Re: How to fix an incorrect storage pool?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It says that  Logical volume centos_hyv2/swap in use. Maybe centos_hyv2/swap is mounted. So I think you should umount or 
swapoff centos_hyv2/swap first, make sure it is not used by other process. Then try pool-destroy.

----- Original Message -----
From: "Phill Edwards" <philledwards@xxxxxxxxx>
To: libvirt-users@xxxxxxxxxx
Sent: Wednesday, November 11, 2015 8:59:22 PM
Subject:  How to fix an incorrect storage pool?

I've created my storage pool incorrectly. I'm using LVM and I have a volume group called vms-lvm. 
When I look at it in virt-manager I see that the volumes it contains are home, root and swap, so when I created the storage group in virt-manager I must have specified something incorrectly. 

Unfortunately I can't find a way to correct this. If I try to destroy (stop) the storage group I get an error: 

# virsh pool-destroy vms-lvm 
error: Failed to destroy pool vms-lvm 
error: internal error: Child process (/usr/sbin/vgchange -aln centos_hyv2) unexpected exit status 5: Logical volume centos_hyv2/swap in use. 
Can't deactivate volume group "centos_hyv2" with 3 open logical volume(s) 

Same if I try to undefine it: 
# virsh pool-undefine vms-lvm 
error: Failed to undefine pool vms-lvm 
error: Requested operation is not valid: storage pool 'vms-lvm' is still active 


Can anyone please advise how I get out of this mess? There must surely be a way of undefining this? 

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux