<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>
<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 class="gmail_extra markdown-here-signature">-- <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>