All of lore.kernel.org
 help / color / mirror / Atom feed
* permanent XFS volume corruption
@ 2017-05-11 14:39 Jan Beulich
  2017-05-11 14:58 ` Eric Sandeen
  2017-05-11 16:39 ` Eric Sandeen
  0 siblings, 2 replies; 18+ messages in thread
From: Jan Beulich @ 2017-05-11 14:39 UTC (permalink / raw)
  To: linux-xfs

[-- Attachment #1: Type: text/plain, Size: 3546 bytes --]

Hello,

It is now on two systems that I'm getting

XFS (sda1): corrupt dinode 576254627, has realtime flag set.
ffff88042ea63300: 49 4e 81 a4 02 02 00 00 00 00 03 e8 00 00 00 64  IN.............d
ffff88042ea63310: 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00  ................
ffff88042ea63320: 59 14 0e 9f 0f a7 7c 2f 59 14 0e 9f 18 f3 db 2f  Y.....|/Y....../
ffff88042ea63330: 59 14 0e 9f 18 f3 db 2f 00 00 00 00 00 00 80 80  Y....../........
XFS (sda1): Internal error xfs_iformat(realtime) at line 133 of file .../fs/xfs/xfs_inode_fork.c.  Caller xfs_iread+0xea/0x2e0 [xfs]
CPU: 10 PID: 4418 Comm: smbd Not tainted 3.12.73-sp1-2017-04-26-jb #2
Hardware name: AMD Dinar/Dinar, BIOS RDN1506A 08/31/2014
 0000000000000001 ffffffff81354083 ffffffffa03ea40a ffffffffa03a0952
 0000000000000000 0000000000000075 ffff88042ea63300 ffff88042f508000
 ffff88022efe7000 ffff88042f508028 0000000000000000 ffffffffa03e9b06
Call Trace:
 [<ffffffff81004e3b>] dump_trace+0x7b/0x310
 [<ffffffff81004ad6>] show_stack_log_lvl+0xe6/0x150
 [<ffffffff81005ddc>] show_stack+0x1c/0x50
 [<ffffffff81354083>] dump_stack+0x6f/0x84
 [<ffffffffa03a0952>] xfs_corruption_error+0x62/0xa0 [xfs]
 [<ffffffffa03e9b06>] xfs_iformat_fork+0x3b6/0x530 [xfs]
 [<ffffffffa03ea40a>] xfs_iread+0xea/0x2e0 [xfs]
 [<ffffffffa03a6538>] xfs_iget_cache_miss+0x58/0x1d0 [xfs]
 [<ffffffffa03a67c3>] xfs_iget+0x113/0x190 [xfs]
 [<ffffffffa03e5be8>] xfs_lookup+0xb8/0xd0 [xfs]
 [<ffffffffa03aaddd>] xfs_vn_lookup+0x4d/0x90 [xfs]
 [<ffffffff8110539d>] lookup_real+0x1d/0x60
 [<ffffffff811064d2>] __lookup_hash+0x32/0x50
 [<ffffffff8110a2a4>] path_lookupat+0x7f4/0x8b0
 [<ffffffff8110a38e>] filename_lookup+0x2e/0x90
 [<ffffffff8110abef>] user_path_at_empty+0x9f/0xd0
 [<ffffffff81100678>] vfs_fstatat+0x48/0xa0
 [<ffffffff8110081f>] SyS_newstat+0x1f/0x50
 [<ffffffff81358d42>] system_call_fastpath+0x16/0x1b
 [<00007f141f4f0d35>] 0x7f141f4f0d34
XFS (sda1): Corruption detected. Unmount and run xfs_repair

after a crash with a 4.11-based kernel. I didn't try xfs_repair-ing
the volume in this second instance, as the result from doing so in
the first instance was only permanent re-occurrence (and
apparently spreading) of the problem. It may be interesting that
xfs_check finds only this one corrupted inode, while the kernel
also finds at least one more:

XFS (sda1): corrupt dinode 104812066, has realtime flag set.
ffff88042e88f200: 49 4e 41 ed 02 01 00 00 00 00 03 e8 00 00 00 64  INA............d
ffff88042e88f210: 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00  ................
ffff88042e88f220: 59 01 c7 96 00 16 1e 50 59 14 0e a2 15 60 54 2f  Y......PY....`T/
ffff88042e88f230: 59 14 0e a2 15 60 54 2f 00 00 00 00 00 00 00 8e  Y....`T/........
XFS (sda1): Internal error xfs_iformat(realtime) at line 133 of file .../fs/xfs/xfs_inode_fork.c.  Caller xfs_iread+0xea/0x2e0 [xfs]

The kernel used after the crash doesn't appear to matter, all report
the same issues, but I've experienced similar crashes in the past
without ever having seen such corruption before.

In any event I think there are two problems: The corruption itself
(possibly an issue with recent enough upstream kernels only) and
the fact that running xfs_repair doesn't help in these cases. I'm
attaching xfs_check and xfs_metadump warning output for both
affected volumes in this second instance. The full files
xfs_metadump -agow produced can be provided upon request
(500Mb and 80Mb uncompressed respectively).

Thanks for any advice / fix,
Jan


[-- Attachment #2: sda1.chk --]
[-- Type: application/octet-stream, Size: 478 bytes --]

inode 576254627 bad rt block number 36019429, offset 0
bad nblocks 9 for inode 576254627, counted 0
block 2/2464997 type unknown not expected
block 2/2464998 type unknown not expected
block 2/2464999 type unknown not expected
block 2/2465000 type unknown not expected
block 2/2465001 type unknown not expected
block 2/2465002 type unknown not expected
block 2/2465003 type unknown not expected
block 2/2465004 type unknown not expected
block 2/2465005 type unknown not expected

[-- Attachment #3: sda1.warn --]
[-- Type: application/octet-stream, Size: 93 bytes --]


xfs_metadump: invalid dqblk inode number (-1)
xfs_metadump: invalid dqblk inode number (-1)

[-- Attachment #4: sdb8.chk --]
[-- Type: application/octet-stream, Size: 679 bytes --]

inode 764 bad rt block number 683, offset 0
bad nblocks 12 for inode 764, counted 0
inode 268448674 bad rt block number 16779005, offset 0
bad nblocks 1 for inode 268448674, counted 0
block 0/683 type unknown not expected
block 0/684 type unknown not expected
block 0/685 type unknown not expected
block 0/686 type unknown not expected
block 0/687 type unknown not expected
block 0/688 type unknown not expected
block 0/689 type unknown not expected
block 0/690 type unknown not expected
block 0/691 type unknown not expected
block 0/692 type unknown not expected
block 0/693 type unknown not expected
block 0/694 type unknown not expected
block 1/1789 type unknown not expected

[-- Attachment #5: sdb8.warn --]
[-- Type: application/octet-stream, Size: 93 bytes --]


xfs_metadump: invalid dqblk inode number (-1)
xfs_metadump: invalid dqblk inode number (-1)

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2017-05-17  5:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 14:39 permanent XFS volume corruption Jan Beulich
2017-05-11 14:58 ` Eric Sandeen
2017-05-11 15:12   ` Jan Beulich
2017-05-11 15:16     ` Eric Sandeen
2017-05-11 15:40       ` Jan Beulich
2017-05-11 16:39 ` Eric Sandeen
2017-05-12  6:26   ` Jan Beulich
2017-05-12 13:56     ` Eric Sandeen
2017-05-12 14:09       ` Jan Beulich
2017-05-12 15:04         ` Eric Sandeen
2017-05-12 15:11           ` Eric Sandeen
2017-05-15  9:22             ` Jan Beulich
2017-05-15 16:52               ` Eric Sandeen
2017-05-16 10:06                 ` Jan Beulich
2017-05-16 17:38                   ` Eric Sandeen
2017-05-17  5:27                     ` Jan Beulich
2017-05-12 15:19           ` Jan Beulich
2017-05-12 16:23             ` Hans-Peter Jansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.