<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
--><!--
P {margin-top:0;margin-bottom:0;}--></style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF516221"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Alaric Haag<br>
<b>Sent:</b> Tuesday, March 19, 2013 2:39 PM<br>
<b>To:</b> libvirt-users@redhat.com<br>
<b>Subject:</b> Storage pool created on the "wrong" vg<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hello all,<br>
<br>
(Hopefully, I am posing this question to the correct list!)<br>
<br>
I seem to have mis-clicked through the creation of an LVM-based storage pool in virt-manager and it is using a volume group containing LVs dedicated to the root/swap filesystems. As these are active LVs, there seems no way to remove this pool. Is that true?
<br>
<br>
My reading thus far suggests that, with LVM storage units, you can't delete them from the pool without REALLY deleting them from the VG.
<br>
<br>
I'm "new enough" to KVM to be missing something obvious, but I'd be pretty shocked if a "structure" like a storage pool can't be deconstructed.<br>
<br>
<div><br>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">Kind regards,<br>
<font size="2">Alar</font>ic<br>
<br>
<font size="2">------------------------</font><br>
<br>
<font size="2"><font size="2"><font size="2">Here's a bit more detail<font size="2"> in
<font size="2">the hope some<font size="2">one m<font size="2">ight help:<br>
<br>
<font size="2">I clicked through the creation o<font size="2">f a s<font size="2">torage pool, and accidentally used the
<font size="2">wrong volume<font size="2"> group, so<font size="2"> I have:</font><br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font>
<blockquote><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">virsh # vol-list vm_pool</font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">Name                 Path                                   
</font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">-----------------------------------------</font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">lv_root              /dev/vg_01/lv_root                     
</font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">lv_swap              /dev/vg_01/lv_swap                     
</font></font></font></font></font></font></font></font></font></font></font></font></font><br>
</blockquote>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">T<font size="2">hese two LVs, in group
<font size="2">vg_01<font size="2">,</font></font> are the / and swap partition of the host system. I meant for th<font size="2"><font size="2">e pool to reside on vg_vm, a<font size="2"> different<font size="2"><font size="2"> volume gr<font size="2">oup.</font></font></font></font></font><br>
<br>
<font size="2">C</font>an I safely run:</font><br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
<blockquote><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">virsh
 # vol-delete lv_root --pool=vm_pool</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">virsh
 # vol-delete lv_<font size="2">swap</font> --pool=vm_pool</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">virsh
 # pool-delete vm_pool</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></blockquote>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">or
 do<font size="2"> the first two steps actually des<font size="2">t<font size="2">roy the LVs in
<font size="2">vg_0<font size="2">1<font size="2"> thus bring<font size="2">ing my system crashing down?
<font size="2">Th<font size="2">e</font> link below</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">
 strongly suggests I canno<font size="2">t delete these logical<font size="2"> </font>
volume<font size="2">s from<font size="2"> the pool<font size="2">, but is a "draft" for OpenS<font size="2">USE<font size="2">. (I'm running libvirt 0.1<font size="2">0.2-18
</font>on RHEL6</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font>)<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
<blockquote><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">http://doc.opensuse.org/products/draft/SLES/SLES-kvm_sd_draft/cha.libvirt.storage.html</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></blockquote>
<font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><span style="font-size:10pt"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">If
 that's the case<font size="2">, <font size="2">is there</font></font></font> <font size="2">
ANY</font> way to undo my mistake and remove this pool?</font><br>
<br>
<font size="2">I am most gr<font size="2">ateful for any guidance!<br>
<br>
<font size="2">Alaric</font><br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>