I don&#39;t think glusterfs can help you out, and I guess that the &quot;cp&quot; command will do a trucate before copy data. While you were trying to copy files from bricks to mountpoint, it was obvious that you were trying to copy a file to itself, the cp command would truncate the file first, then &quot;cp&quot; found there was no data to copy, that was why data became to lose. Now this problem turn out to be a problem of low layer filesystem, and I&#39;m not sure if a truncate syscall will reset the data of the block which will be allocaed.. Files that placed at new bricks must have contained valid data, so keep trying to use recover tools.<br>
<br><div class="gmail_quote">2012/10/10 renqiang <span dir="ltr">&lt;<a href="mailto:renqiang@360buy.com" target="_blank">renqiang@360buy.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<p><font face="Tahoma">Hi,all:</font></p>
<p><font face="tahoma"></font>&nbsp;</p>
<p><font face="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have a problem nowŁˇCan you help meŁˇ<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When I use replace-brick command to use some new machines to replace some old machines in my cluster.<br>
&nbsp;&nbsp; But it dosen&#39;t susscess! It only create some link files in the new machines,it dosen&#39;t copy the real&nbsp;data to the
</font></p>
<p><font face="Tahoma"><font face="tahoma">&nbsp;&nbsp; </font>new machines.So we have an ideaŁ¬we copy the data in the bricks of&nbsp; all the old machines to the volume of</font></p>
<p><font face="Tahoma"><font face="tahoma">&nbsp; </font>&nbsp;my cluster from the&nbsp;mount point of the volume.(There is only one volume in my cluster.) But we ingnor the</font></p>
<p><font face="Tahoma"><font face="tahoma">&nbsp; </font>&nbsp;link files in the bricks of the old methines.When we copy all the files in the bricks of the old methines to the&nbsp;<br>
&nbsp;&nbsp;&nbsp;volume , the link files overwrite&nbsp; all the real data files which are linked by the link files. So we&nbsp;&nbsp;lost much data.</font></p>
<p><font face="Tahoma">&nbsp;&nbsp;And when we read the files which are lost data, gluster will choose the file&#39;s real&nbsp;file in dead loop,So client
</font></p>
<p><font face="Tahoma"><font size="3"><font face="tahoma">&nbsp; </font>time out and there are too many socket links.<br>
&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; How can we find our data? We try to use some disk tools to recovery the lost dataˇŁ We analyse all&nbsp;<br>
&nbsp;&nbsp;&nbsp;copyed link files to find out which data wo lose.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can someone give me some suggestions,thank you!<br>
</font></font></p>

<div dir="ltr"><font color="#000000" face="Tahoma"></font>&nbsp;</div>
</div>

<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br>