<div dir="ltr"><div>Hi I am trying to stop the storage pool through php-libvirt api which is a LVM volume group.<br></div><div><br></div><div>when I tried to stop it I got error</div><div><br></div><div>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)<br>
</div><div><br></div><div>Then I tried throggh virsh command but the result remain same.</div><div><br></div><div><b>root@kvm02:~# virsh pool-destroy vms</b></div><div>error: Failed to destroy pool vms</div><div>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)</div>
<div><br></div><div>The same error also occured if I use direct vgchange -aln on my kvm host, but then I tried </div><div><br></div><div><b>vgchange -aly mylvmgrp<br></b></div><div><br></div><div>this time its worked</div>
<div><br></div><div><div>  14 logical volume(s) in volume group "mylvmgrp" now active</div></div><div><br></div><div>1) Now would you please help me? is this libvirt issue? or LVM?</div><div>2) Is this possible virsh pool-destroy pool also run the vgchange -aly instead of -aln</div>
<div><br></div><div>Br.</div><div><br></div><div>Umar</div></div>