<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="MSHTML 9.00.8112.16450">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font size="2" face="tahoma"> <font size="3"> “I'm not sure if a truncate syscall will reset the data of the block which will be allocaed.. ” </font></font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma"><font size="3"><font face="tahoma"> </font>We<font face="tahoma"> use ext</font><font face="tahoma">4 file</font><font face="tahoma"> system,
</font><font face="tahoma">dose it</font><font face="tahoma"> will</font><font face="tahoma"> reset</font><font face="tahoma"> the data</font><font face="tahoma"> of</font><font face="tahoma"> the</font><font face="tahoma"> block which</font><font face="tahoma">
will</font><font face="tahoma"> be</font><font face="tahoma"> allocated</font><font face="tahoma"> when</font><font face="tahoma">
</font></font></font><font face="tahoma">it do a truncate syscall.</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div style="DIRECTION: ltr" id="divRpF856962">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>发件人:</b> Tao Lin [linbaiye@gmail.com]<br>
<b>发送时间:</b> 2012年10月11日 11:04<br>
<b>收件人:</b> renqiang<br>
<b>抄送:</b> gluster-users@gluster.org<br>
<b>主题:</b> Re: [Gluster-users] lost data, help!<br>
</font><br>
</div>
<div></div>
<div>I don't think glusterfs can help you out, and I guess that the "cp" 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 "cp" 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'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"><<a href="mailto:renqiang@360buy.com">renqiang@360buy.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<p><font face="Tahoma">Hi,all:</font></p>
<p><font face="tahoma"></font> </p>
<p><font face="Tahoma"> I have a problem now!Can you help me!<br>
<br>
When I use replace-brick command to use some new machines to replace some old machines in my cluster.<br>
But it dosen't susscess! It only create some link files in the new machines,it dosen't copy the real data to the
</font></p>
<p><font face="Tahoma"><font face="tahoma"> </font>new machines.So we have an idea,we copy the data in the bricks of all the old machines to the volume of</font></p>
<p><font face="Tahoma"><font face="tahoma"> </font> my cluster from the 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"> </font> link files in the bricks of the old methines.When we copy all the files in the bricks of the old methines to the <br>
volume , the link files overwrite all the real data files which are linked by the link files. So we lost much data.</font></p>
<p><font face="Tahoma"> And when we read the files which are lost data, gluster will choose the file's real file in dead loop,So client
</font></p>
<p><font face="Tahoma"><font size="3"><font face="tahoma"> </font>time out and there are too many socket links.<br>
<br>
How can we find our data? We try to use some disk tools to recovery the lost data。 We analyse all <br>
copyed link files to find out which data wo lose.<br>
<br>
Can someone give me some suggestions,thank you!<br>
</font></font></p>
<div dir="ltr"><font color="#000000" face="Tahoma"></font> </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>
</div>
</body>
</html>