[libvirt] lvm storage pool destroy problem

Umar Draz unix.co at gmail.com
Wed Dec 18 20:54:19 UTC 2013


Hi I am trying to stop the storage pool through php-libvirt api which is a
LVM volume group.

when I tried to stop it I got error

error: internal error Child process (/sbin/vgchange -aln mylvmgrp)
unexpected exit status 5:   Can't deactivate volume group "mylvmgrp" with 4
open logical volume(s)

Then I tried throggh virsh command but the result remain same.

*root at kvm02:~# virsh pool-destroy vms*
error: Failed to destroy pool vms
error: internal error Child process (/sbin/vgchange -aln mylvmgrp)
unexpected exit status 5:   Can't deactivate volume group "mylvmgrp" with 4
open logical volume(s)

The same error also occured if I use direct vgchange -aln on my kvm host,
but then I tried


*vgchange -aly mylvmgrp*

this time its worked

  14 logical volume(s) in volume group "mylvmgrp" now active

1) Now would you please help me? is this libvirt issue? or LVM?
2) Is this possible virsh pool-destroy pool also run the vgchange -aly
instead of -aln

Br.

Umar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131219/65fd748a/attachment-0001.htm>


More information about the libvir-list mailing list