<div dir="ltr"><div><div>Hello All.<br><br></div>Why do we need LVM at all there? It is good when you cannot resize the underlying disk and have to combine it from several hardware ones into one virtual. But here we have &quot;cloud&quot; and disks are already resizeable.<br><br></div>Anton.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 10:20 AM, Nadav Goldin <span dir="ltr">&lt;<a href="mailto:ngoldin@redhat.com" target="_blank">ngoldin@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">You forgot the 1st thing we told you - &quot;don&#39;t create partitions on the disk&quot;...<br>
Instead the whole disk &#39;/dev/vdX&#39; should be formatted as a PV, then you can<br>
grow it from the engine and then &#39;pvresize&#39; followed by &#39;lvresize&#39;.</blockquote><br></span>I didn&#39;t forget, I came across [1] which quotes [2] and [3] saying best-practice is to create a partition on the PV:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><p><strong>Not Recommended</strong></p>
  
  <p>Using the whole disk as a PV (as opposed to a partition spanning the whole disk)
  is not recommended because of the management issues it can create. Any other OS
  that looks at the disk will not recognize the LVM metadata and display the disk
  as being free, so it is likely it will be overwritten. LVM itself will work fine
  with whole disk PVs.</p></blockquote>although I am no expert in lvm so if we agree its ok, no problem, I&#39;ll change it.<br><br>[1] <a href="http://unix.stackexchange.com/questions/76588/what-is-the-best-practice-for-adding-disks-in-lvm" target="_blank">http://unix.stackexchange.com/questions/76588/what-is-the-best-practice-for-adding-disks-in-lvm</a><br>[2] <a href="http://tldp.org/HOWTO/LVM-HOWTO/initdisks.html" target="_blank">http://tldp.org/HOWTO/LVM-HOWTO/initdisks.html</a><br>[3] <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/LVM_components.html#multiple_partitions" target="_blank">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Logical_Volume_Manager_Administration/LVM_components.html#multiple_partitions</a><br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 11:02 AM, Barak Korren <span dir="ltr">&lt;<a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>&gt; able to do &quot;live&quot; storage incrase by adding a new volume to the LVM group in<br>
&gt; the following procedure:<br>
&gt;<br>
&gt;  created new virtio volume in the VM from phx-engine<br>
&gt;  fdisk /dev/vdd then: n -&gt; p -&gt; 1 -&gt; enter -&gt; enter -&gt; t -&gt; 8e -&gt; w<br>
&gt;  vgextend jenkins_lvm /dev/vdd1<br>
&gt;  lvextend /dev/mapper/jenkins_lvm-data -L28G<br>
&gt;  xfs_growfs /dev/mapper/jenkins_lvm-data<br>
&gt;<br>
&gt; I was unable to increase the volume size from the engine, and then increase<br>
&gt; the partition size(only create a new partition on the same volume with the<br>
&gt; new increased space in the volume), not sure if that is possible.<br>
&gt;<br>
</span>You forgot the 1st thing we told you - &quot;don&#39;t create partitions on the disk&quot;...<br>
Instead the whole disk &#39;/dev/vdX&#39; should be formatted as a PV, then you can<br>
grow it from the engine and then &#39;pvresize&#39; followed by &#39;lvresize&#39;.<br>
<span><font color="#888888"><br>
<br>
--<br>
Barak Korren<br>
<a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a><br>
RHEV-CI Team<br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Infra mailing list<br>
<a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/infra</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><font color="#888888"><div>Anton Marchukov<br>Senior Software Engineer - <span><span><font color="#888888"><span><span><font color="#888888"><span><span><font color="#888888">RHEV CI - </font></span></span></font></span></span>Red Hat</font></span></span><br><br></div></font></span></div></div></div></div>
</div>