<div>Hi Yueyu,</div><div>Thanks for posting answers yourself. Let me give a little bit of background about this.</div><div><br></div>It will get error message as if disk is full. If you simply copy the file to a different name and rename it back, it will get rescheduled to a different node.<div>
<br></div><div>Most disks are in TBs. It doesn&#39;t make sense to optimize at that level. Block layer striping is often not scalable and requires complicated backend disk structure.</div><div><br></div><div>If you set a limit of minimum free disk space, then GlusterFS will stop scheduling new files to any bricks exceeding this limit. You can use this remaining free space to grow existing files. You can also use volume rebalance to physically move files across and balance capacity utilization. </div>
<div><br></div><div>Think of choosing a 128k block size and wasting disk space for 4k files. Not even disk filesystems optimize capacity utilization to fill every remaining sector. With GlusterFS, it has to cope up with the same problem at a much larger scale. Thats where the trade off is.</div>
<div><br></div><div>BTW, It will be great if you could post this question on <a href="http://community.gluster.org">http://community.gluster.org</a> as well. It will  become a part of gluster knowledge base.</div><div><br>
</div><div>-AB</div><div><br><div><br><div class="gmail_quote">On Tue, May 3, 2011 at 2:39 PM, Yueyu Lin <span dir="ltr">&lt;<a href="mailto:yueyu.lin@me.com">yueyu.lin@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just made the experiment. The answer is no. Distributed-Replicate mode won&#39;t split images for application. Application has to split the huge file manually.<br>
<div><div></div><div class="h5">On May 3, 2011, at 4:48 PM, Yueyu Lin wrote:<br>
<br>
&gt; Hi, all<br>
&gt;    I have a question about the capacity problem in GlusterFS cluster system.<br>
&gt;    Supposedly, we have a cluster configuration like this:<br>
&gt;<br>
&gt;    Type: Distributed-Replicate<br>
&gt;    Number of Bricks: 2 x 1 = 2<br>
&gt;    Brick1: 192.168.1.150:/home/export<br>
&gt;    Brick2: 192.168.1.151:/home/export<br>
&gt;<br>
&gt;    If there are only 15 Giga bytes available in these two servers, and I need to copy a file of 20GB to the the mounted directory. Obviously the space is not enough.<br>
&gt;    Then I add two bricks of 15GB to the cluster. The structure became to:<br>
&gt;<br>
&gt;    Type: Distributed-Replicate<br>
&gt;    Number of Bricks: 2 x 2 = 4<br>
&gt;    Bricks:<br>
&gt;    Brick1: 192.168.1.152:/home/export/dfsStore<br>
&gt;    Brick2: 192.168.1.153:/home/export/dfsStore<br>
&gt;    Brick3: 192.168.1.150:/home/export/dfsStore<br>
&gt;    Brick4: 192.168.1.151:/home/export/dfsStore<br>
&gt;<br>
&gt;    Now I will copy the file again to the mounted directory. In client, it shows it has more than 20GB space available. But what will happen when I copy the huge file to it since every single brick doesn&#39;t have enough space to hold it.<br>

&gt;<br>
&gt;    Thanks a lot.<br>
&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
&gt; <a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anand Babu Periasamy<br>Blog [<a href="http://www.unlocksmith.org/" target="_blank">http://www.unlocksmith.org</a>]<br><br>Imagination is more important than knowledge --Albert Einstein<br>

</div></div>