<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/1 Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Fri, Nov 01, 2013 at 06:23:56PM +0800, Robin Dong wrote:<br>
> Hi all,<br>
><br>
> The size of vdi can only reach 4TB beacause the inode->data_vdi_id[] can only<br>
> support 1 million objects. But 4TB is too small for storage application<br>
> such as NAS and cloud-disk therefore we need to change the array of 'data_vdi_id' to<br>
> b-tree.<br>
><br>
> This patchset add B-tree structure into sd_inode. It support just two levels<br>
> (one root-node and many leaf-nodes) and after this the size of vdi could reach about<br>
> (4MB / sizeof(sd_extent_header) * (4MB / sizeof(sd_extent)) * 4MB which is about 680PB<br>
> in theory.<br>
><br>
> Currently the vdi size can raise to 16PB because the size of oid is just 32-bits, but<br>
> it is certainly enough for many storage requirement.<br>
><br>
> v3 --> v4 changes:<br>
> 1. let hyper volume work with object cache<br>
> 2. let hyper volume work with vdi_list vdi_check<br>
> 3. let all test case pass<br>
> 4. add new test case for hyper volume<br>
<br>
</div>I tried 'vdi check', and got<br>
<br>
yliu@ubuntu-precise:~/sheepdog$ dog/dog vdi check test<br>
100.0 % [===================================================================================================] 200 MB / 200 MB<br>
100.0 % [===================================================================================================] 200 MB / 200 MB<br>
198.0 % [===================================================================================================] 396 MB / 200 MB finish check&repair test<br>
<br>
I didn't expect this output because there is only 200MB data + inodes to check<br>
and we should only see output<br>
<br>
100.0 % [===================================================================================================] 200 MB / 200 MB<br>
<br>
The last '396MB / 200 MB' looks weird to me.<br>
<br>
Thanks<br>
<span class=""><font color="#888888">Yuan<br>
</font></span></blockquote></div><br>I have tried to create and check a vdi, but everything is ok:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><div class="gmail_extra">[root@core097012.sqa.cm4 ~]# dog vdi list</div>
<div class="gmail_extra"> Name Id Size Used Shared Creation time VDI id Copies Tag</div><div class="gmail_extra"> my 0 16 PB 0.0 MB 0.0 MB 2013-11-04 13:08 502113 3 </div>
<div class="gmail_extra"> ym 0 200 MB 24 MB 0.0 MB 2013-11-04 13:08 8a0fdb 3 </div><div class="gmail_extra">[root@core097012.sqa.cm4 ~]# dog vdi check ym</div><div class="gmail_extra">100.0 % [==========================================================================================================================================================] 200 MB / 200 MB </div>
<div class="gmail_extra">finish check&repair ym</div><div><br></div></div><div><br></div><div>Is there something special you did to the cluster ?</div><div><br></div>-- <br>--<br>Best Regard<br>Robin Dong
</div></div>