* XFS file system corruption(Return Bad Transaction) kernel - 2.6.34
@ 2010-12-01 7:14 Amit Sahrawat
2010-12-01 14:55 ` Eric Sandeen
2010-12-02 2:16 ` Dave Chinner
0 siblings, 2 replies; 10+ messages in thread
From: Amit Sahrawat @ 2010-12-01 7:14 UTC (permalink / raw)
To: Eric Sandeen, xfs, sandeen-xfs
[-- Attachment #1.1: Type: text/plain, Size: 32769 bytes --]
Dear Member,
I am getting following corruption on XFS formatted disk during a simple copy
operation:
sd 9:0:0:0: Attached scsi removable disk sdc
sd 9:0:0:0: Attached scsi generic sg2 type 0
XFS mounting filesystem sdc2
Starting XFS recovery on filesystem: sdc2 (logdev: internal)
XFS: xlog_recover_process_data: bad transaction
XFS: log mount/recovery failed: error 5
XFS: log mount failed
[root@localhost TEGRA]#
[root@localhost TEGRA]# mount /dev/sdc2 /mnt/
mount: /dev/sdc2: can't read superblock
[root@localhost TEGRA]# xfs_logprint -t /dev/sdc2
xfs_logprint:
data device: 0x822
log device: 0x822 daddr: 6809632 length: 20480
log tail: 284 head: 412 state: <DIRTY>
LOG REC AT LSN cycle 1 block 284 (0x1, 0x11c)
============================================================================
TRANS: tid:0x863c5000 type:CREATE #items:5 trans:0x0 q:0x80b5c08
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x2 len:1 bmap size:1 flags:0x0
AGI Buffer: (XAGI)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x18 len:8 bmap size:2 flags:0x0
BUF DATA
INO: cnt:2 total:2 a:0x80adaa8 len:56 a:0x80adb20 len:96
INODE: #regs:2 ino:0x85 flags:0x1 dsize:0
CORE inode:
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80b5c48 len:96 a:0x80b5cb0 len:68
INODE: #regs:3 ino:0x80 flags:0x3 dsize:68
CORE inode:
DATA FORK LOCAL inode data:
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5d18
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c48 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c68
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5d18 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5cf8
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80adbe8 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80adbc8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80adae8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c08 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c68 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
============================================================================
TRANS: tid:0x863c5000 type:STRAT_WRITE #items:5 trans:0x0 q:0x80b5c48
INO: cnt:3 total:3 a:0x80adb88 len:56 a:0x80adb20 len:96 a:0x80b5c88 len:16
INODE: #regs:3 ino:0x85 flags:0x5 dsize:16
CORE inode:
DATA FORK EXTENTS inode data:
BUF: cnt:2 total:2 a:0x80ad6f8 len:24 a:0x80ad730 len:128
BUF: #regs:2 start blkno:0x1 len:1 bmap size:1 flags:0x0
AGF Buffer: (XAGF)
BUF: cnt:2 total:2 a:0x80ad7b8 len:28 a:0x80ada20 len:128
BUF: #regs:2 start blkno:0x10 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5c28 len:28 a:0x80b5d38 len:128
BUF: #regs:2 start blkno:0x8 len:8 bmap size:2 flags:0x0
BUF DATA
BUF: cnt:2 total:2 a:0x80b5cf8 len:24 a:0x80b5dc0 len:128
BUF: #regs:2 start blkno:0x0 len:1 bmap size:1 flags:0x0
SUPER Block Buffer:
LOG REC AT LSN cycle 1 block 348 (0x1, 0x15c)
XFS: xlog_recover_process_data: bad transaction
xfs_logprint: failed in xfs_do_recovery_pass, error: 5
[-- Attachment #1.2: Type: text/html, Size: 34981 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-01 7:14 XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 Amit Sahrawat @ 2010-12-01 14:55 ` Eric Sandeen 2010-12-02 3:40 ` Amit Sahrawat 2010-12-02 2:16 ` Dave Chinner 1 sibling, 1 reply; 10+ messages in thread From: Eric Sandeen @ 2010-12-01 14:55 UTC (permalink / raw) To: Amit Sahrawat; +Cc: sandeen-xfs, xfs On 12/1/10 1:14 AM, Amit Sahrawat wrote: > Dear Member, > > I am getting following corruption on XFS formatted disk during a simple copy operation: > sd 9:0:0:0: Attached scsi removable disk sdc > sd 9:0:0:0: Attached scsi generic sg2 type 0 > XFS mounting filesystem sdc2 > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > XFS: xlog_recover_process_data: bad transaction > XFS: log mount/recovery failed: error 5 > XFS: log mount failed hm, that's not a simple copy operation, that is a mount failing; your log appears to be corrupted. offhand I'm going to blame it on having a write cache enabled on your drive, and having barriers either off, or not working properly. -Eric _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-01 14:55 ` Eric Sandeen @ 2010-12-02 3:40 ` Amit Sahrawat 2010-12-02 3:56 ` Eric Sandeen 2010-12-02 4:13 ` Dave Chinner 0 siblings, 2 replies; 10+ messages in thread From: Amit Sahrawat @ 2010-12-02 3:40 UTC (permalink / raw) To: Eric Sandeen; +Cc: sandeen-xfs, xfs [-- Attachment #1.1: Type: text/plain, Size: 1439 bytes --] While the copy operation is in progress, simply unplug the usb device and then replug. The issue can be seen from XFS (2.6.31) onwards, I am trying to figure out the changes between 2.6.30.9 and 2.6.31. One thing I noticed is - there is difference in speed for 2 versions - in case of 2.6.30.9 if I remove the USB within '5' seconds - I can see the file being created at the destination and some data written, while in case of 2.6.31(onwards), it takes around 20 seconds to get some data to disk. I am using MIPS at the moment with VIPT(fixes included) Please let me know if this information is useful. Thanks, Amit Sahrawat On Wed, Dec 1, 2010 at 8:25 PM, Eric Sandeen <sandeen@sandeen.net> wrote: > On 12/1/10 1:14 AM, Amit Sahrawat wrote: > > Dear Member, > > > > I am getting following corruption on XFS formatted disk during a simple > copy operation: > > sd 9:0:0:0: Attached scsi removable disk sdc > > sd 9:0:0:0: Attached scsi generic sg2 type 0 > > XFS mounting filesystem sdc2 > > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > > XFS: xlog_recover_process_data: bad transaction > > XFS: log mount/recovery failed: error 5 > > XFS: log mount failed > > hm, that's not a simple copy operation, that is a mount failing; > your log appears to be corrupted. > > offhand I'm going to blame it on having a write cache enabled > on your drive, and having barriers either off, or not working > properly. > > -Eric > > [-- Attachment #1.2: Type: text/html, Size: 1909 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 3:40 ` Amit Sahrawat @ 2010-12-02 3:56 ` Eric Sandeen 2010-12-02 4:09 ` Amit Sahrawat 2010-12-02 4:13 ` Dave Chinner 1 sibling, 1 reply; 10+ messages in thread From: Eric Sandeen @ 2010-12-02 3:56 UTC (permalink / raw) To: Amit Sahrawat; +Cc: sandeen-xfs, xfs On 12/1/10 9:40 PM, Amit Sahrawat wrote: > While the copy operation is in progress, simply unplug the usb device and then replug. that's not a simple copy operation either ;) > The issue can be seen from XFS (2.6.31) onwards, I am trying to figure out the changes between 2.6.30.9 and 2.6.31. If you have a regression, perhaps you can do: # git bisect start v2.6.31 v2.6.30 fs/xfs and methodically test the changes in between. -Eric > One thing I noticed is - there is difference in speed for 2 versions - in case of 2.6.30.9 if I remove the USB within '5' seconds - I can see the file being created at the destination and some data written, while in case of 2.6.31(onwards), it takes around 20 seconds to get some data to disk. > I am using MIPS at the moment with VIPT(fixes included) > > Please let me know if this information is useful. > > Thanks, > Amit Sahrawat > On Wed, Dec 1, 2010 at 8:25 PM, Eric Sandeen <sandeen@sandeen.net <mailto:sandeen@sandeen.net>> wrote: > > On 12/1/10 1:14 AM, Amit Sahrawat wrote: > > Dear Member, > > > > I am getting following corruption on XFS formatted disk during a simple copy operation: > > sd 9:0:0:0: Attached scsi removable disk sdc > > sd 9:0:0:0: Attached scsi generic sg2 type 0 > > XFS mounting filesystem sdc2 > > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > > XFS: xlog_recover_process_data: bad transaction > > XFS: log mount/recovery failed: error 5 > > XFS: log mount failed > > hm, that's not a simple copy operation, that is a mount failing; > your log appears to be corrupted. > > offhand I'm going to blame it on having a write cache enabled > on your drive, and having barriers either off, or not working > properly. > > -Eric > > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 3:56 ` Eric Sandeen @ 2010-12-02 4:09 ` Amit Sahrawat 0 siblings, 0 replies; 10+ messages in thread From: Amit Sahrawat @ 2010-12-02 4:09 UTC (permalink / raw) To: Eric Sandeen; +Cc: sandeen-xfs, xfs [-- Attachment #1.1: Type: text/plain, Size: 2123 bytes --] yes, thats the only approach at the moment which can help. I am doubting the changes related with the disk commit, but I am not sure. Thanks, Amit Sahrawat On Thu, Dec 2, 2010 at 9:26 AM, Eric Sandeen <sandeen@sandeen.net> wrote: > On 12/1/10 9:40 PM, Amit Sahrawat wrote: > > While the copy operation is in progress, simply unplug the usb device and > then replug. > > that's not a simple copy operation either ;) > > > The issue can be seen from XFS (2.6.31) onwards, I am trying to figure > out the changes between 2.6.30.9 and 2.6.31. > > If you have a regression, perhaps you can do: > > # git bisect start v2.6.31 v2.6.30 fs/xfs > > and methodically test the changes in between. > > -Eric > > > One thing I noticed is - there is difference in speed for 2 versions - in > case of 2.6.30.9 if I remove the USB within '5' seconds - I can see the file > being created at the destination and some data written, while in case of > 2.6.31(onwards), it takes around 20 seconds to get some data to disk. > > I am using MIPS at the moment with VIPT(fixes included) > > > > Please let me know if this information is useful. > > > > Thanks, > > Amit Sahrawat > > On Wed, Dec 1, 2010 at 8:25 PM, Eric Sandeen <sandeen@sandeen.net<mailto: > sandeen@sandeen.net>> wrote: > > > > On 12/1/10 1:14 AM, Amit Sahrawat wrote: > > > Dear Member, > > > > > > I am getting following corruption on XFS formatted disk during a > simple copy operation: > > > sd 9:0:0:0: Attached scsi removable disk sdc > > > sd 9:0:0:0: Attached scsi generic sg2 type 0 > > > XFS mounting filesystem sdc2 > > > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > > > XFS: xlog_recover_process_data: bad transaction > > > XFS: log mount/recovery failed: error 5 > > > XFS: log mount failed > > > > hm, that's not a simple copy operation, that is a mount failing; > > your log appears to be corrupted. > > > > offhand I'm going to blame it on having a write cache enabled > > on your drive, and having barriers either off, or not working > > properly. > > > > -Eric > > > > > > [-- Attachment #1.2: Type: text/html, Size: 2863 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 3:40 ` Amit Sahrawat 2010-12-02 3:56 ` Eric Sandeen @ 2010-12-02 4:13 ` Dave Chinner 2010-12-02 4:38 ` Amit Sahrawat 1 sibling, 1 reply; 10+ messages in thread From: Dave Chinner @ 2010-12-02 4:13 UTC (permalink / raw) To: Amit Sahrawat; +Cc: sandeen-xfs, Eric Sandeen, xfs On Thu, Dec 02, 2010 at 09:10:08AM +0530, Amit Sahrawat wrote: > While the copy operation is in progress, simply unplug the usb device and > then replug. That's pretty much a guaranteed recipe for data and filesystem corruption regardless of the filesystem you are using. Even if you are lucky enough that there was is no IO being issued while the device is unplugged, what guarantee is there that the device even comes back with the same device name? Further, if the device is usb powered, there is no guarantee that the drive caches were flushed correctly before the unplug so random log and metadata corruptions are definitely possible. Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 4:13 ` Dave Chinner @ 2010-12-02 4:38 ` Amit Sahrawat 2010-12-02 12:23 ` Amit Sahrawat 0 siblings, 1 reply; 10+ messages in thread From: Amit Sahrawat @ 2010-12-02 4:38 UTC (permalink / raw) To: Dave Chinner; +Cc: sandeen-xfs, Eric Sandeen, xfs [-- Attachment #1.1: Type: text/plain, Size: 1139 bytes --] I am not able to reproduce the same behaviour on 2.6.30.9, had it been on all versions - this can safely be termed as behaviour. But from 2.6.31 onwards this is very much reproducable, especially the change in behaviour of writing to disk. I will try more things and update if I can find anything new in this. Thanks, Amit Sahrawat On Thu, Dec 2, 2010 at 9:43 AM, Dave Chinner <david@fromorbit.com> wrote: > On Thu, Dec 02, 2010 at 09:10:08AM +0530, Amit Sahrawat wrote: > > While the copy operation is in progress, simply unplug the usb device and > > then replug. > > That's pretty much a guaranteed recipe for data and filesystem > corruption regardless of the filesystem you are using. Even if you > are lucky enough that there was is no IO being issued while the > device is unplugged, what guarantee is there that the device even > comes back with the same device name? Further, if the device is usb > powered, there is no guarantee that the drive caches were > flushed correctly before the unplug so random log and metadata > corruptions are definitely possible. > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com > [-- Attachment #1.2: Type: text/html, Size: 1596 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 4:38 ` Amit Sahrawat @ 2010-12-02 12:23 ` Amit Sahrawat 0 siblings, 0 replies; 10+ messages in thread From: Amit Sahrawat @ 2010-12-02 12:23 UTC (permalink / raw) To: Dave Chinner; +Cc: sandeen-xfs, Eric Sandeen, xfs [-- Attachment #1.1: Type: text/plain, Size: 1907 bytes --] By tracing back to find the cause of the issue: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.31.y.git;a=commitdiff;h=f95022161d23ee661a48af8f280472209f513a67 This patch results in generating different behaviour for write. - it makes dependency on xfssyncd(for which default time out value is 3000centisecs - cat /proc/sys/fs/xfs/xfssyncd_centisecs) - 30secs is too large for committing to disc. So, either this value can be lowered or this patch can be reverted so that pdflush takes care of all this. Removing the changes from this patch seems viable solution at this moment. What do you suggest? Thanks, Amit Sahrawat On Thu, Dec 2, 2010 at 10:08 AM, Amit Sahrawat <amit.sahrawat83@gmail.com>wrote: > I am not able to reproduce the same behaviour on 2.6.30.9, had it been on > all versions - this can safely be termed as behaviour. But from 2.6.31 > onwards this is very much reproducable, especially the change in behaviour > of writing to disk. > I will try more things and update if I can find anything new in this. > > Thanks, > Amit Sahrawat > > On Thu, Dec 2, 2010 at 9:43 AM, Dave Chinner <david@fromorbit.com>wrote: > >> On Thu, Dec 02, 2010 at 09:10:08AM +0530, Amit Sahrawat wrote: >> > While the copy operation is in progress, simply unplug the usb device >> and >> > then replug. >> >> That's pretty much a guaranteed recipe for data and filesystem >> corruption regardless of the filesystem you are using. Even if you >> are lucky enough that there was is no IO being issued while the >> device is unplugged, what guarantee is there that the device even >> comes back with the same device name? Further, if the device is usb >> powered, there is no guarantee that the drive caches were >> flushed correctly before the unplug so random log and metadata >> corruptions are definitely possible. >> >> Cheers, >> >> Dave. >> -- >> Dave Chinner >> david@fromorbit.com >> > > [-- Attachment #1.2: Type: text/html, Size: 2934 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-01 7:14 XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 Amit Sahrawat 2010-12-01 14:55 ` Eric Sandeen @ 2010-12-02 2:16 ` Dave Chinner 2010-12-02 3:41 ` Amit Sahrawat 1 sibling, 1 reply; 10+ messages in thread From: Dave Chinner @ 2010-12-02 2:16 UTC (permalink / raw) To: Amit Sahrawat; +Cc: sandeen-xfs, Eric Sandeen, xfs On Wed, Dec 01, 2010 at 12:44:58PM +0530, Amit Sahrawat wrote: > Dear Member, > > I am getting following corruption on XFS formatted disk during a simple copy > operation: > sd 9:0:0:0: Attached scsi removable disk sdc > sd 9:0:0:0: Attached scsi generic sg2 type 0 > XFS mounting filesystem sdc2 > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > XFS: xlog_recover_process_data: bad transaction > XFS: log mount/recovery failed: error 5 > XFS: log mount failed > [root@localhost TEGRA]# "TEGRA" - You're running on an ARM device? If so, what kernel are you running? i.e. does it have the VIVT cache aliasing fixes in it? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 2010-12-02 2:16 ` Dave Chinner @ 2010-12-02 3:41 ` Amit Sahrawat 0 siblings, 0 replies; 10+ messages in thread From: Amit Sahrawat @ 2010-12-02 3:41 UTC (permalink / raw) To: Dave Chinner; +Cc: sandeen-xfs, Eric Sandeen, xfs [-- Attachment #1.1: Type: text/plain, Size: 995 bytes --] "TEGRA" by mistake happended to be the name of directory where I maintained logs :) I am using MIPS with VIPT cache(fixes included - regarding bad client id). Thanks, Amit Sahrawat On Thu, Dec 2, 2010 at 7:46 AM, Dave Chinner <david@fromorbit.com> wrote: > On Wed, Dec 01, 2010 at 12:44:58PM +0530, Amit Sahrawat wrote: > > Dear Member, > > > > I am getting following corruption on XFS formatted disk during a simple > copy > > operation: > > sd 9:0:0:0: Attached scsi removable disk sdc > > sd 9:0:0:0: Attached scsi generic sg2 type 0 > > XFS mounting filesystem sdc2 > > Starting XFS recovery on filesystem: sdc2 (logdev: internal) > > XFS: xlog_recover_process_data: bad transaction > > XFS: log mount/recovery failed: error 5 > > XFS: log mount failed > > [root@localhost TEGRA]# > > "TEGRA" - You're running on an ARM device? If so, what kernel are > you running? i.e. does it have the VIVT cache aliasing fixes in it? > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com > [-- Attachment #1.2: Type: text/html, Size: 1496 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-12-02 12:21 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-12-01 7:14 XFS file system corruption(Return Bad Transaction) kernel - 2.6.34 Amit Sahrawat 2010-12-01 14:55 ` Eric Sandeen 2010-12-02 3:40 ` Amit Sahrawat 2010-12-02 3:56 ` Eric Sandeen 2010-12-02 4:09 ` Amit Sahrawat 2010-12-02 4:13 ` Dave Chinner 2010-12-02 4:38 ` Amit Sahrawat 2010-12-02 12:23 ` Amit Sahrawat 2010-12-02 2:16 ` Dave Chinner 2010-12-02 3:41 ` Amit Sahrawat
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox