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@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
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to