我们在 XenServer 6.2 的客户机上遇到了文件系统损坏的问题
这只发生在 Linux 机器上。文件系统随机重新挂载为只读,然后根文件系统开始损坏。
以下是来自 dmesg 的一些信息:
[894425.330993] end_request: I/O error, dev xvda, sector 768272
[894425.331019] Buffer I/O error on device dm-0, logical block 33058
[894425.331035] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 2999 (offset 0 size 4096 starting block 33058)
[894425.331057] end_request: I/O error, dev xvda, sector 777616
[894425.331067] Buffer I/O error on device dm-0, logical block 34226
[894425.331079] EXT4-fs warning (device dm-0): ext4_end_bio:250: I/O error writing to inode 3010 (offset 0 size 4096 starting block 34226)
[894425.331093] end_request: I/O error, dev xvda, sector 5048224
[894425.331134] JBD2: Detected IO errors while flushing file data on dm-0-8
[894425.331162] Aborting journal on device dm-0-8.
[894425.331221] EXT4-fs error (device dm-0) in ext4_free_blocks:4766: Journal has aborted
[894457.732827] EXT4-fs (dm-0): Remounting filesystem read-only
[894457.732853] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4499: Journal has aborted
[894457.774125] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4499: Journal has aborted
[894457.840951] EXT4-fs error (device dm-0) in ext4_ext_remove_space:2742: Journal has aborted
[894457.841677] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4499: Journal has aborted
[894457.847755] EXT4-fs error (device dm-0) in ext4_orphan_del:2110: Journal has aborted
[894457.857108] EXT4-fs error (device dm-0) in ext4_reserve_inode_write:4499: Journal has aborted
[894457.858184] EXT4-fs error (device dm-0): ext4_journal_start_sb:327: Detected aborted journal
[980980.704070] EXT4-fs (dm-0): error count: 8
[980980.704087] EXT4-fs (dm-0): initial error at 1394156871: ext4_free_blocks:4766
[980980.704097] EXT4-fs (dm-0): last error at 1394156904: ext4_reserve_inode_write:4499
[994860.307102] adclient[2625]: segfault at 7fbfbb454660 ip 00007fbfb969b07d sp 00007fbfb63cc640 error 4 in libc-2.13.so[7fbfb9624000+182000]
[1067488.224066] EXT4-fs (dm-0): error count: 8
[1067488.224083] EXT4-fs (dm-0): initial error at 1394156871: ext4_free_blocks:4766
[1067488.224093] EXT4-fs (dm-0): last error at 1394156904: ext4_reserve_inode_write:4499
在互联网上搜索到一些关于 Debian 和 Ubuntu 中此问题的信息,在我们的例子中我们使用 Debian Wheezy,但是在 /etc/fstab 中的 ext4 选项中设置 barrier=0 的解决方法没有效果。
请问如何调试该问题?