<div dir="ltr"><div><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 - "don't create partitions on the disk"...<br>
Instead the whole disk '/dev/vdX' should be formatted as a PV, then you can<br>
grow it from the engine and then 'pvresize' followed by 'lvresize'.</blockquote><br>I didn'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'll change it.<br><br>[1] <a href="http://unix.stackexchange.com/questions/76588/what-is-the-best-practice-for-adding-disks-in-lvm">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">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">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="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 11:02 AM, Barak Korren <span dir="ltr"><<a href="mailto:bkorren@redhat.com" target="_blank">bkorren@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> able to do "live" storage incrase by adding a new volume to the LVM group in<br>
> the following procedure:<br>
><br>
> created new virtio volume in the VM from phx-engine<br>
> fdisk /dev/vdd then: n -> p -> 1 -> enter -> enter -> t -> 8e -> w<br>
> vgextend jenkins_lvm /dev/vdd1<br>
> lvextend /dev/mapper/jenkins_lvm-data -L28G<br>
> xfs_growfs /dev/mapper/jenkins_lvm-data<br>
><br>
> I was unable to increase the volume size from the engine, and then increase<br>
> the partition size(only create a new partition on the same volume with the<br>
> new increased space in the volume), not sure if that is possible.<br>
><br>
</span>You forgot the 1st thing we told you - "don't create partitions on the disk"...<br>
Instead the whole disk '/dev/vdX' should be formatted as a PV, then you can<br>
grow it from the engine and then 'pvresize' followed by 'lvresize'.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Barak Korren<br>
<a href="mailto:bkorren@redhat.com">bkorren@redhat.com</a><br>
RHEV-CI Team<br>
</font></span></blockquote></div><br></div>