You are not logged in.

#1 2013-03-23 18:51:13

onny
Member
From: Europe
Registered: 2010-08-07
Posts: 46
Website

libvirt: Unable to define LVM storage pool

Hello,
I'm trying to define an LVM storage pool for my virtual machines using KVM/libvirt. The configuration looks like this:

<pool type="logical">
<name>vol0</name>
<source>
  <device path="/dev/md0"/>
</source>
<target>
  <path>/dev/vol0</path>
</target>
</pool>

The problem is, that this LVM group is already active (other vms running using volumes inside this group) and 'virsh pool-start vol0' wants me to disable it. Is there any way to start the pool without "deactivate" the volume group?

virsh pool-start vol0
error: internal error '/sbin/vgchange -an vol0' exited with non-zero status 5 and signal 0:   Can't deactivate volume group "vol0" with 14 open logical volume(s)

Further, I'm a bit curious that libvirt might recreate the volume group and therefore deletes all the content during the building process.

Would appreciate any advice smile

Regards,
Jonas

Offline

Board footer

Powered by FluxBB