<div dir="ltr"><div><span style="font-size:14px">I agree with you </span><span style="font-size:14px">extend might be one way to solve the problem.</span></div><div><br></div><div><span style="font-size:14px">By the way, How about another way that we could import volume</span></div><div><span style="font-size:14px">size with float value? such as: 2.5G, 3.4G?</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Did community consider about it in the begin?</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-07 20:16 GMT+08:00 Duncan Thomas <span dir="ltr"><<a href="mailto:duncan.thomas@gmail.com" target="_blank">duncan.thomas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cinder will store the volume as 1G in the database (and quota) even if<br>
the volume is only 500M. It will stay as 500M when it is attached<br>
though. It's a side effect of importing volumes, but that's usually a<br>
pretty uncommon thing to do, so shouldn't affect many people or cause<br>
a huge amount of trouble.<br>
<br>
There are also backends that allocate in units greater than 1G, and so<br>
sometimes give you slightly bigger volumes than you asked for. Cinder<br>
doesn't not go out if its way to support this; again the database and<br>
quota will reflect what you asked for, the attached volume will be a<br>
slightly different size.<br>
<br>
In your case, extend might be one way to solve the problem, if you<br>
backend supports it. I'm not certain what will happen if you ask<br>
cinder to extend to 1G a volume it already thinks is 1G... if it<br>
doesn't work, please file a bug.<br>
<div><div class="h5"><br>
On 7 April 2017 at 09:01, jun zhong <<a href="mailto:jun.zhongjun2@gmail.com">jun.zhongjun2@gmail.com</a>> wrote:<br>
> Hi guys,<br>
><br>
> We know the share's size unit is in gigabiyte in manila, and volume's size<br>
> unit is also in gigabiyte in cinder, But there is a question that the size<br>
> is not exactly after we migrate tradition enviroment to OpenStack.<br>
> For example:<br>
> 1.There is original volume(vol_1) with 500MB size in tradition enviroment<br>
> 2.We want to use openstack to manage this volume(vol_1)<br>
> 3.We can only use 1GB volume to manage the original volume(vol_1), because<br>
> the cinder volume size can not support 500MB.<br>
> How to deal with this? Could we set the volume or share's unit to float or<br>
> something else? or add new unit MB? or just extend the original volume size?<br>
><br>
><br>
> Thanks<br>
> jun<br>
><br>
</div></div>> ______________________________<wbr>______________________________<wbr>______________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Duncan Thomas<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</font></span></blockquote></div><br></div>