Hello,<div><br></div><div>After upgrading Ubuntu from 10.10 to 11.04 I started getting error messages in my syslog when accessing one of my xfs partitions. It is not the root partition.</div><div><br></div><div>The helpful team on IRC (#xfs on <a href="http://irc.freenode.net">irc.freenode.net</a>) says that what I want to do is figure out why I'm getting -EAGAIN from the block device.</div>
<div><br></div><div>The error message I get when accessing the filesystem (through nautilus, or in a terminal) is:</div><div><br></div><div><snip></div><div><div>Jun  7 18:08:14 picard kernel: [ 2602.542458] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c6dc18       ("xfs_trans_read_buf") error 11 buf count 4096</div>
<div>Jun  7 18:08:14 picard kernel: [ 2602.548673] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c23898       ("xfs_trans_read_buf") error 11 buf count 4096</div><div>Jun  7 18:08:14 picard kernel: [ 2602.553135] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c133a8       ("xfs_trans_read_buf") error 11 buf count 4096</div>
</div><div></snip></div><div>... and so on.</div><div><br></div><div>The helpful team on IRC supplied me with a patch to understand the error message alittle better.</div><div><br></div><div>Filename: hch_patch</div>
<div><snip></div><div><div>--- a/fs/xfs/linux-2.6/xfs_buf.c</div><div>+++ b/fs/xfs/linux-2.6/xfs_buf.c</div><div>@@ -1264,6 +1264,9 @@ xfs_buf_bio_end_io(</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>unsigned int            blocksize = bp->b_target->bt_bsize;</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>struct bio_vec          *bvec = bio->bi_io_vec + bio->bi_vcnt - 1;</div><div><br></div><div>+       if (error && error != -EIO && error != -EOPNOTSUPP)</div>
<div>+               printk("XFS: got error %d in %s\n", error, __func__);</div><div>+</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>xfs_buf_ioerror(bp, -error);</div><div><br></div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>if (!error && xfs_buf_is_vmapped(bp) && (bp->b_flags & XBF_READ))</div></div><div></snip></div><div><br></div><div>After fetching a new kernel source, unmounting my xfs partition, applying the patch (running: "patch -p1 < hch_patch" in /usr/src/linux-2.6.38) and making a new module (running: "make -C /lib/modules/`uname -r`/build M=`pwd`/fs/xfs" in /usr/src/linux-2.6.38), removing the old module (running: "rmmod xfs.ko") and then insmoding the new (running: "insmod xfs.ko") I get the following error message:</div>
<div><br></div><div><snip></div><div><div>Jun  7 20:25:21 picard kernel: [10821.778982] XFS: got error -11 in xfs_buf_bio_end_io</div><div>Jun  7 20:25:21 picard kernel: [10821.780263] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c6dc18       ("xfs_trans_read_buf") error 11 buf count 4096XFS: got error -11 in xfs_buf_bio_end_io</div>
<div>Jun  7 20:25:21 picard kernel: [10821.781403] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c23898       ("xfs_trans_read_buf") error 11 buf count 4096XFS: got error -11 in xfs_buf_bio_end_io</div>
<div>Jun  7 20:25:21 picard kernel: [10821.796254] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x41c133a8       ("xfs_trans_read_buf") error 11 buf count 4096XFS: got error -11 in xfs_buf_bio_end_io</div>
</div><div></snip></div><div>... and so on.</div><div><br></div><div>After a while when for example extracting a zip archive I get the following error messages:</div><div><br></div><div><snip></div><div><div>Jun  7 20:28:38 picard kernel: [11018.263647] XFS: got error -11 in xfs_buf_bio_end_io</div>
<div>Jun  7 20:28:38 picard kernel: [11018.263842] XFS: got error -11 in xfs_buf_bio_end_io</div><div>Jun  7 20:28:41 picard kernel: [11021.399311] XFS: got error -11 in xfs_buf_bio_end_io</div><div>Jun  7 20:28:41 picard kernel: [11021.435716] I/O error in filesystem ("dm-4") meta-data dev dm-4 block 0x3a53bbf0       ("xfs_trans_read_buf") error 11 buf count 4096</div>
<div>Jun  7 20:28:41 picard kernel: [11021.435724] xfs_force_shutdown(dm-4,0x1) called from line 3894 of file /usr/src/linux-2.6.38/fs/xfs/xfs_bmap.c.  Return address = 0xffffffffa0fa34a2</div><div>Jun  7 20:28:41 picard kernel: [11021.580677] Filesystem dm-4: I/O Error Detected.  Shutting down filesystem: dm-4</div>
<div>Jun  7 20:28:42 picard kernel: [11021.580683] Please umount the filesystem, and rectify the problem(s)</div><div>Jun  7 20:29:12 picard kernel: [11023.043494] Filesystem dm-4: xfs_log_force: error 5 returned.</div><div>
Jun  7 20:29:42 picard kernel: [11053.015272] Filesystem dm-4: xfs_log_force: error 5 returned.</div></div><div></snip></div><div>... and so on</div><div><br></div><div>Accessing the device is slower than before the upgrade to 11.04, and it is not without errors that I can access the device.</div>
<div><div><br></div><div>$ uname -r</div><div>Linux picard 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux</div></div><div><br></div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
HW specs:</div><div>The XFS partition is run on a HW Raid on 2 x 1TB WD Black Caviar. Motherboard is an ASUS Sabertooth P67 with Intel Sandy Bridge i5-2500K CPU @ 3.30GHz.</div></div><div><br></div><div><br></div><div>Do you guys know what might be wrong, how I or you or we can solve this?</div>
<div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Marko</div>