<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 8, 2013 at 1:23 PM, Dave Chinner <span dir="ltr"><<a href="mailto:david@fromorbit.com" target="_blank">david@fromorbit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Oct 07, 2013 at 01:09:09PM -0700, Viet Nguyen wrote:<br>
> Thanks. That seemed to fix that bug.<br>
><br>
> Now I'm getting a lot of this:<br>
> xfs_da_do_buf(2): XFS_CORRUPTION_ERROR<br>
<br>
</div>Right, that's blocks that are being detected as corrupt when they<br>
are read. You can ignore that for now.<br>
<div class="im"><br>
> fatal error -- can't read block 8388608 for directory inode 8628218<br>
<br>
</div>That's a corrupted block list of some kind - it should junk the<br>
inode.<br>
<br>
> Then xfs_repair exits.<br>
<br>
I'm not sure why that happens. Is it exiting cleanly or crashing?<br>
Can you take a metadump of the filesystem and provide it for someone<br>
to debug the problems it causes repair?<br></blockquote><div><br></div><div>It seems to be exiting cleanly with return code 1. I created a metadump, but it's 9.6GB. I suppose I can put up on a secure FTP or something like that, but it does seem a big large to shuffle around.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
> What I've been doing is what I saw in the FAQ where I would use xfs_db and<br>
> write core.mode 0 for these inodes. But there are just so many of them. And<br>
> is that even the right thing to do?<br>
<br>
</div>That marks the inode as "free" which effectively junks it and then<br>
xfs_repair will free all it's extents next time it is run. Basically<br>
you are removing the files from the filesystem and making them<br>
unrecoverable.<br></blockquote><div><br></div><div>In the case of directories, it blows away just directory but xfs_repair later on scans for orphan files, no? Or am I mistaken on how that works.</div><div> </div><div>Thanks,</div>
<div>Viet</div></div></div></div>