<div>Eric, </div><div>I have one more qustion for  you.</div><div> </div><div>You told me like this &quot;then I would suspect a misconfiguration (maybe mounting -o nobarrier with write caches enabled on the drives?) &quot; </div>
<div> </div><div>How can I check this misconfiguration? such as &quot;-o nobarrier&quot; is I couldn&#39;t find this option with mount in my busybox and what do you mean the sentence this &quot; write caches enabled on the drives?&quot;</div>
<div> </div><div>Thanks,</div><div><br><br> </div><div class="gmail_quote">On Sat, Mar 3, 2012 at 12:48 AM, Ryan Lee <span dir="ltr">&lt;<a href="mailto:ryanlee.lahk@gmail.com">ryanlee.lahk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><br>Hi, all.</div><div> </div><div>Thanks a lot of your kindness for me.</div>
<div>I really realy appreciate it.</div><div> </div><div>I am going to tell you what I have done so far porting  XFS in our system.</div><div>
 </div><div>First of all, the resources of our system.</div><div> </div><div>CPU : MIPS</div><div>KERNEL : 2.6.37-2.6</div><div>XFSPROGS : 3.1.7</div><div> </div><div>Second, I did this step.</div><div> </div><div>1. mounting an xfs filesystem after an unclean shutdown on a machine.</div>

<div>As a result i saw this error below.</div><div>------------------------------------------------------------------------</div><div>XFS: xlog_recover_process_data: bad clientid<br>XFS: log mount/recovery failed: 
error 5<br>XFS: log mount failed</div><div>------------------------------------------------------------------------</div><div> </div><div>2. I patched for this error 1 from internet.</div><div><a href="http://comments.gmane.org/gmane.comp.file-systems.xfs.general/35446" target="_blank">http://comments.gmane.org/gmane.comp.file-systems.xfs.general/35446</a></div>

<div> </div><div>I did aging test by my self. </div><div>As a result, after one day overnight, the XFS Filesystem crashed.</div><div> </div><div>3, I look for another solution for 1 problem. eventually I found using xfs_repair to remove dirty log and recover.</div>

<div>But as i mentioned it, it takes time a lot.</div><div> </div><div>You guys told me to use  the &quot;fsck.xfs&quot;. but i think it couldn&#39;t solve the problem 1 above.</div><div> </div><div>Onething more, I already know about the problem with &quot;xfs_repair&quot;, but I cound&#39;t find any other good solution to fix it until now.</div>

<div> </div><div>How can I fix it?</div><div>Please help me.</div><div> </div><div>Thanks, Ryan.</div><div class="HOEnZb"><div class="h5"><div> </div><div> </div><div><br> </div><div class="gmail_quote">On Sat, Mar 3, 2012 at 12:07 AM, Eric Sandeen <span dir="ltr">&lt;<a href="mailto:sandeen@sandeen.net" target="_blank">sandeen@sandeen.net</a>&gt;</span> wrote:<br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div>On 3/2/12 8:26 AM, Ryan wrote:<br>
&gt;<br>
&gt; How about the dirty log. I use the xfs_repair because the dirty log must be removed when i mount HDD.<br>
&gt;<br>
&gt; As you know xfs filesystem doen&#39;t repair the dirty log so i couldn&#39;t mount the HDD after when i do cold reset during writing the HDD. How i can solve this problem?<br>
<br>
</div>If mount fails to replay the dirty log after a power loss, then I would suspect a misconfiguration (maybe mounting -o nobarrier with write caches enabled on the drives?) or a bug in your version of xfs, possibly unique to architecture (what architecture is it, what kernel is it, what xfs &quot;porting&quot; did you do?)<br>


<span><font color="#888888"><br>
-Eric<br>
</font></span><div><br>
&gt; Sent from my iPhone.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mar 2, 2012, at 11:01 PM, Brian Candler &lt;<a href="mailto:B.Candler@pobox.com" target="_blank">B.Candler@pobox.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On Fri, Mar 02, 2012 at 10:09:56PM +0900, Ryan Lee wrote:<br>
&gt;&gt;&gt;   The problem is the taking time with xfs_repair like this &quot;]# xfs_repair<br>
&gt;&gt;&gt;   -P -L /dev/sda2&quot; is to long to wait in our embedded system and for me,<br>
&gt;&gt;&gt;   so the booing time is increasing around 2 minutes totally.<br>
&gt;&gt;<br>
&gt;&gt; Why do you feel you need to run xfs_repair on every boot? Regular Linux<br>
&gt;&gt; systems do not attempt this, the same as they don&#39;t force a full &quot;e2fsck -f&quot;<br>
&gt;&gt; on every boot.<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://linux.die.net/man/8/fsck.xfs" target="_blank">http://linux.die.net/man/8/fsck.xfs</a><br>
&gt;<br>
</div><div><div>&gt; _______________________________________________<br>
&gt; xfs mailing list<br>
&gt; <a href="mailto:xfs@oss.sgi.com" target="_blank">xfs@oss.sgi.com</a><br>
&gt; <a href="http://oss.sgi.com/mailman/listinfo/xfs" target="_blank">http://oss.sgi.com/mailman/listinfo/xfs</a><br>
&gt;<br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>