I think the extend the size the volume is reasonable and easy implementable. But the shrink of the LV is very dangerous. So add the feature of extends the Volume size for the Cinder is OK.  <div><br></div><div>Could you guys agree with me?</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 12:56 PM, John Griffith <span dir="ltr"><<a href="mailto:john.griffith@solidfire.com" target="_blank">john.griffith@solidfire.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 7:19 PM, Matt Joyce <span dir="ltr"><<a href="mailto:matt.joyce@cloudscaling.com" target="_blank">matt.joyce@cloudscaling.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

other hazard to mention.<br><br>live fs resizes tend to be sketchy.  the growing of a live filesystem is possible and tends to work.  but shrinking for obvious reasons is very dangerous and can be wrought with peril.  also cannot be done live as far as I know for any ext filesystem.<span><font color="#888888"><br>




<br>-matt<br><br></font></span><div class="gmail_quote"><div><div>On Tue, Nov 27, 2012 at 6:13 PM, Lei Zhang <span dir="ltr"><<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div style="line-height:1.2;color:rgb(34,34,34);font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;border:none">
<p style="margin:1em 0px">Got it. 

</p>
<p style="margin:1em 0px">Could Cinder can check the created volume? I can not find any command like <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">cinder update</code>. I try to extends the volume by <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline">lvextend</code>, but data in the cinder db doesn't update. So when I delete the changed volume, it raise error.  

</p><div>
<p style="margin:1em 0px">On Tue, Nov 27, 2012 at 12:34 PM, Dean Troyer <<a href="mailto:dtroyer@gmail.com" style="color:rgb(51,51,238);text-decoration:initial" target="_blank">dtroyer@gmail.com</a>> wrote:

</p>
<p style="margin:1em 0px"></p><div><p></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Mon, Nov 26, 2012 at 8:04 PM, Lei Zhang <<a href="mailto:zhang.lei.fly@gmail.com" target="_blank">zhang.lei.fly@gmail.com</a>> wrote:<br>
> Another question. If the vm treat the vol-0 as a normal block device, is it<br>
> necessary to partition? If not, the fdisk will show Disk /dev/vdb doesn't<br>
> contain a valid partition table. If yes, how can I extend the volume on the<br>
> vm? It seems that treat the volume as a normal block device is not a good<br>
> idea.<br>
<br>
</div>It is not necessary to partition the device (vdb) inside com-0.  If<br>
you use it as an LVM physical device (PV) inside com-0 then pvresize<br>
will update the metadata o recognize the new size inside com-0 after<br>
you lvextend the vol-0 in the host.<br>
<br>
If you do partition /dev/vdb and don't use LVM in com-0 it is still<br>
possible to grow a partition, but you'll have to delete and re-create<br>
the last partition to get com-0 to recognize the additional space.<br>
And you'd also need to do the filesystem resize too.<br>
<br>
Nested LVM can be tricky but if you are careful to keep the layers<br>
separated it can work.<br>
<div><div><br>
dt<br>
<br>
--<br>
<br>
Dean Troyer<br>
<a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a><br>
</div></div></blockquote><p></p></div><p style="margin:1em 0px"></p>
</div></div><div><div><div class="gmail_extra">-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>








</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div><br>
</div>
</div></div><br></div></div><div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div><div>There is no functionality to re-size a Cinder Volume.  </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>John</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Lei Zhang</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>

</span></div><div><font face="arial, sans-serif">Blog: <a href="http://jeffrey4l.github.com" target="_blank">http://jeffrey4l.github.com</a></font></div><div>twitter/weibo: @jeffrey4l</div><br>
</div>