Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am constantly getting the below errors with XFS filesystem present on software raid-1 which was then converted to 3-disk raid-5. Errors happen exclusively after hibernate, normally either immediately or a few minutes past. dmesg tells (full dmesg output is here: http://bpaste.net/show/130895/):

[155389.814032] PM: restore of devices complete after 1700.425 msecs
[155389.814783] Restarting tasks ... done.
[155390.161993] r8168: enp2s0: link up
[155392.181215] r8168: enp2s0: link up
[155398.859967] sd 7:0:0:0: [sdh] No Caching mode page present
[155398.859972] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[155398.876927] sd 7:0:0:0: [sdh] No Caching mode page present
[155398.876932] sd 7:0:0:0: [sdh] Assuming drive cache: write through
[155398.877945]  sdh:
[155690.215471] XFS: Internal error XFS_WANT_CORRUPTED_RETURN at line 342 of file fs/xfs/xfs_alloc.c.  Caller 0xffffffff812049d1

[155690.215478] CPU: 5 PID: 17532 Comm: kworker/5:0 Tainted: P           O 3.10.7-gentoo #1
[155690.215481] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 0601 07/17/2012
[155690.215490] Workqueue: xfsalloc xfs_bmapi_allocate_worker
[155690.215493]  ffffffff81565b8a 0000000000000071 ffffffff81201c57 ffff880418328000
[155690.215498]  ffff880418328270 ffff8803124ee460 0000000081206839 0000000000000800
[155690.215502]  ffff8803990ffd18 ffff880418328000 0000000000000800 0000000000000800
[155690.215506] Call Trace:
[155690.215514]  [<ffffffff81565b8a>] ? dump_stack+0xd/0x17
[155690.215520]  [<ffffffff81201c57>] ? xfs_alloc_fixup_trees+0x1e7/0x370
[155690.215524]  [<ffffffff812049d1>] ? xfs_alloc_ag_vextent_near+0xa21/0xd90
[155690.215528]  [<ffffffff81204dfd>] ? xfs_alloc_ag_vextent+0xbd/0xf0
[155690.215532]  [<ffffffff81205aa8>] ? xfs_alloc_vextent+0x478/0x800
[155690.215536]  [<ffffffff812139d6>] ? xfs_bmap_btalloc_nullfb+0x316/0x350
[155690.215541]  [<ffffffff8121721a>] ? xfs_bmap_btalloc+0x31a/0x770
[155690.215546]  [<ffffffff810459f8>] ? internal_add_timer+0x18/0x50
[155690.215551]  [<ffffffff810459f8>] ? internal_add_timer+0x18/0x50
[155690.215556]  [<ffffffff81217c4d>] ? __xfs_bmapi_allocate+0xcd/0x2e0
[155690.215560]  [<ffffffff81217e9c>] ? xfs_bmapi_allocate_worker+0x3c/0x70
[155690.215566]  [<ffffffff810535d0>] ? process_one_work+0x150/0x480
[155690.215570]  [<ffffffff81053f3a>] ? manage_workers.isra.26+0x1aa/0x2b0
[155690.215575]  [<ffffffff81054154>] ? worker_thread+0x114/0x370
[155690.215579]  [<ffffffff81054040>] ? manage_workers.isra.26+0x2b0/0x2b0
[155690.215584]  [<ffffffff8105a163>] ? kthread+0xb3/0xc0
[155690.215588]  [<ffffffff81060000>] ? async_run_entry_fn+0xf0/0x120
[155690.215593]  [<ffffffff8105a0b0>] ? kthread_freezable_should_stop+0x60/0x60
[155690.215598]  [<ffffffff815708ec>] ? ret_from_fork+0x7c/0xb0
[155690.215603]  [<ffffffff8105a0b0>] ? kthread_freezable_should_stop+0x60/0x60
[155690.215619] XFS (md1): page discard on page ffffea000d1df580, inode 0x22057716, offset 8323072.
[155720.362810] XFS: Internal error XFS_WANT_CORRUPTED_RETURN at line 342 of file fs/xfs/xfs_alloc.c.  Caller 0xffffffff812049d1

<...> (a big bunch of similar errors skipped)

[156100.313075] CPU: 4 PID: 27035 Comm: kworker/4:2 Tainted: P           O 3.10.7-gentoo #1
[156100.313078] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 0601 07/17/2012
[156100.313099] Workqueue: xfsalloc xfs_bmapi_allocate_worker
[156100.313103]  ffffffff81565b8a 0000000000000071 ffffffff81201c57 ffff88041a811d00
[156100.313107]  ffff88041a811dd0 0000000000000001 000000007f95bfd8 0000000000000002
[156100.313111]  ffff88017f95bd18 ffff88041a811d00 0000000000000001 0000000000000001
[156100.313115] Call Trace:
[156100.313123]  [<ffffffff81565b8a>] ? dump_stack+0xd/0x17
[156100.313129]  [<ffffffff81201c57>] ? xfs_alloc_fixup_trees+0x1e7/0x370
[156100.313133]  [<ffffffff8120491a>] ? xfs_alloc_ag_vextent_near+0x96a/0xd90
[156100.313138]  [<ffffffff81204dfd>] ? xfs_alloc_ag_vextent+0xbd/0xf0
[156100.313141]  [<ffffffff81205aa8>] ? xfs_alloc_vextent+0x478/0x800
[156100.313146]  [<ffffffff812139d6>] ? xfs_bmap_btalloc_nullfb+0x316/0x350
[156100.313150]  [<ffffffff8121721a>] ? xfs_bmap_btalloc+0x31a/0x770
[156100.313156]  [<ffffffff810459f8>] ? internal_add_timer+0x18/0x50
[156100.313161]  [<ffffffff810459f8>] ? internal_add_timer+0x18/0x50
[156100.313165]  [<ffffffff81217c4d>] ? __xfs_bmapi_allocate+0xcd/0x2e0
[156100.313170]  [<ffffffff81217e9c>] ? xfs_bmapi_allocate_worker+0x3c/0x70
[156100.313176]  [<ffffffff810535d0>] ? process_one_work+0x150/0x480
[156100.313186]  [<ffffffff81054154>] ? worker_thread+0x114/0x370
[156100.313208]  [<ffffffff81054040>] ? manage_workers.isra.26+0x2b0/0x2b0
[156100.313214]  [<ffffffff8105a163>] ? kthread+0xb3/0xc0
[156100.313228]  [<ffffffff81060000>] ? async_run_entry_fn+0xf0/0x120
[156100.313239]  [<ffffffff8105a0b0>] ? kthread_freezable_should_stop+0x60/0x60
[156100.313249]  [<ffffffff815708ec>] ? ret_from_fork+0x7c/0xb0
[156100.313258]  [<ffffffff8105a0b0>] ? kthread_freezable_should_stop+0x60/0x60
[156100.313275] XFS (md1): page discard on page ffffea0008f25340, inode 0x22057716, offset 8499200.
[156155.266439] XFS: Internal error XFS_WANT_CORRUPTED_GOTO at line 1617 of file fs/xfs/xfs_alloc.c.  Caller 0xffffffff81205f1c

[156155.266443] CPU: 4 PID: 32209 Comm: QThread Tainted: P           O 3.10.7-gentoo #1
[156155.266444] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 0601 07/17/2012
[156155.266446]  ffffffff81565b8a 0000000000000070 ffffffff81202e8c ffff88041b3c3980
[156155.266448]  ffff88041821ee40 0000000000000000 0000000000000003 ffff88041b3c3980
[156155.266449]  ffff880417bf6800 0000000000000000 ffff8801eac77c5c 0000000800000000
[156155.266451] Call Trace:
[156155.266456]  [<ffffffff81565b8a>] ? dump_stack+0xd/0x17
[156155.266460]  [<ffffffff81202e8c>] ? xfs_free_ag_extent+0x53c/0x850
[156155.266461]  [<ffffffff81205f1c>] ? xfs_free_extent+0xec/0x130
[156155.266463]  [<ffffffff8120128e>] ? kmem_zone_alloc+0x5e/0xe0
[156155.266465]  [<ffffffff8121939a>] ? xfs_bmap_finish+0x16a/0x1b0
[156155.266467]  [<ffffffff812396b3>] ? xfs_itruncate_extents+0x103/0x320
[156155.266469]  [<ffffffff811ff4ce>] ? xfs_inactive+0x32e/0x450
[156155.266470]  [<ffffffff811fcb8b>] ? xfs_fs_evict_inode+0x4b/0x130
[156155.266473]  [<ffffffff8112ca87>] ? evict+0xa7/0x1b0
[156155.266476]  [<ffffffff8112143c>] ? do_unlinkat+0x19c/0x1f0
[156155.266477]  [<ffffffff81118f53>] ? SyS_newstat+0x23/0x30
[156155.266480]  [<ffffffff81570992>] ? system_call_fastpath+0x16/0x1b
[156155.266483] XFS (md1): xfs_do_force_shutdown(0x8) called from line 916 of file fs/xfs/xfs_bmap.c.  Return address = 0xffffffff812193d3
[156155.445552] XFS (md1): Corruption of in-memory data detected.  Shutting down filesystem
[156155.445557] XFS (md1): Please umount the filesystem and rectify the problem(s)
[156160.004902] XFS (md1): xfs_log_force: error 5 returned.
[156190.132832] XFS (md1): xfs_log_force: error 5 returned.
[156220.260719] XFS (md1): xfs_log_force: error 5 returned.
[156250.388550] XFS (md1): xfs_log_force: error 5 returned.
[156280.516400] XFS (md1): xfs_log_force: error 5 returned.
[156310.644246] XFS (md1): xfs_log_force: error 5 returned.
[156340.772019] XFS (md1): xfs_log_force: error 5 returned.
[156370.899941] XFS (md1): xfs_log_force: error 5 returned.
[156401.027736] XFS (md1): xfs_log_force: error 5 returned.
[156431.155576] XFS (md1): xfs_log_force: error 5 returned.
[156461.283434] XFS (md1): xfs_log_force: error 5 returned.
[156491.411366] XFS (md1): xfs_log_force: error 5 returned.
[156521.539215] XFS (md1): xfs_log_force: error 5 returned.
[156551.666963] XFS (md1): xfs_log_force: error 5 returned.
[156581.795447] XFS (md1): xfs_log_force: error 5 returned.
[156611.922687] XFS (md1): xfs_log_force: error 5 returned.
[156642.050630] XFS (md1): xfs_log_force: error 5 returned.
[156672.178470] XFS (md1): xfs_log_force: error 5 returned.
[156702.306332] XFS (md1): xfs_log_force: error 5 returned.
[156732.434176] XFS (md1): xfs_log_force: error 5 returned.
[156762.561988] XFS (md1): xfs_log_force: error 5 returned.

Kernel version is 3.10.7, saw the same error on 3.8.13. Note that md1 is not the only RAID device used for XFS filesystem: I also hold / on RAID1 (SSD+HDD).

share|improve this question
add comment

1 Answer

If you have a i915 card, try updating the kernel, there was several reports that KMS on those cards caused memory corruption on hibernation/resume

You can try to test with i915.modeset=0 to see if the problem disappears... if it does, its probably the same problem and should have been already fixed in more recent kernels

If you don't have a i915, it's unknown what might be the problem.. try playing with the BIOS/power settings, hibernate without X to test another graphic card related corruption, run memtest86 to check real memory problems, try recent or older kernels... and probably open a distro/kernel bug if the problem is reproducible.

share|improve this answer
    
I do not have i915. Playing with any settings will not work because it is not reproducible. I.e. I had not hit it at least in a month, but I have no idea whether it was because I updated the kernel and it fixed things or because necessary preconditions were not met. –  ZyX Nov 27 '13 at 14:59
    
If you upgrade the kernel and didn't see this since, it was probably a kernel bug that was later fixed. –  higuita Nov 28 '13 at 18:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.