My Oracle Support Banner

Oracle Linux 7 XFS File System Generates Error: Kernel: XFS (dm-3): Internal Error XFS_WANT_CORRUPTED_RETURN At Line 462 Of File Fs/xfs/libxfs/xfs_a (Doc ID 2624304.1)

Last updated on JANUARY 03, 2020

Applies to:

Linux OS - Version Oracle Linux 7.6 and later
Linux x86-64

Symptoms

A server running Oracle Linux 7.6 experienced regular XFS errors with the following error logged:

kernel: XFS (dm-3): Internal error XFS_WANT_CORRUPTED_RETURN at line 462 of file fs/xfs/libxfs/xfs_a

Although xfs repair was successful, the issue reoccurred regularly. The issue only occurred when the server was experiencing high resource utilization, and in particular memory utilization.
The following stack traces were observed in /var/log/messages:

Stack Trace 1:
Oct 24 20:56:43 <HOSTNAME> kernel: XFS (dm-3): Internal error XFS_WANT_CORRUPTED_RETURN at line 462 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x7a3/0xa50 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_error_report+0x3b/0x40 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] ? xfs_alloc_ag_vextent_near+0x7a3/0xa50 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_alloc_fixup_trees+0x2c4/0x370 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_alloc_ag_vextent_near+0x7a3/0xa50 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_alloc_ag_vextent+0x10d/0x150 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_alloc_vextent+0x3eb/0x510 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_bmap_btalloc+0x1ec/0x790 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_bmap_alloc+0xe/0x10 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_bmapi_write+0x459/0xab0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_iomap_write_allocate+0x188/0x3a0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_map_blocks+0x1a6/0x220 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_do_writepage+0x16c/0x510 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] ? xfs_aops_discard_page+0x150/0x150 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_vm_writepages+0x6b/0xa0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_file_fsync+0x66/0x1c0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] do_fsync+0x67/0xb0
Oct 24 20:56:43 <HOSTNAME> kernel: [] SyS_fdatasync+0x13/0x20
Oct 24 20:56:43 <HOSTNAME> kernel: [] system_call_fastpath+0x22/0x27
Oct 24 20:56:43 <HOSTNAME> kernel: XFS (dm-3): Internal error xfs_trans_cancel at line 984 of file fs/xfs/xfs_trans.c. Caller xfs_iomap_write_allocate+0x2eb/0x3a0 [xfs]

Stack Trace 2:
Oct 24 20:56:43 <HOSTNAME> kernel: CPU: 12 PID: 421832 Comm: ocafsd Kdump: loaded Not tainted 3.10.0-957.el7.x86_64 #1
Oct 24 20:56:43 <HOSTNAME> kernel: Hardware name: Dell Inc. PowerEdge R740/0YNX56, BIOS 2.2.11 06/13/2019
Oct 24 20:56:43 <HOSTNAME> kernel: Call Trace:
Oct 24 20:56:43 <HOSTNAME> kernel: [] dump_stack+0x19/0x1b
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_error_report+0x3b/0x40 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] ? xfs_iomap_write_allocate+0x2eb/0x3a0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_trans_cancel+0xbd/0xe0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_iomap_write_allocate+0x2eb/0x3a0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_map_blocks+0x1a6/0x220 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_do_writepage+0x16c/0x510 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] write_cache_pages+0x254/0x4e0
Oct 24 20:56:43 <HOSTNAME> kernel: [] ? xfs_aops_discard_page+0x150/0x150 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_vm_writepages+0x6b/0xa0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] do_writepages+0x21/0x50
Oct 24 20:56:43 <HOSTNAME> kernel: [] __filemap_fdatawrite_range+0x65/0x80
Oct 24 20:56:43 <HOSTNAME> kernel: [] filemap_write_and_wait_range+0x41/0x90
Oct 24 20:56:43 <HOSTNAME> kernel: [] xfs_file_fsync+0x66/0x1c0 [xfs]
Oct 24 20:56:43 <HOSTNAME> kernel: [] do_fsync+0x67/0xb0
Oct 24 20:56:43 <HOSTNAME> kernel: [] SyS_fdatasync+0x13/0x20
Oct 24 20:56:43 <HOSTNAME> kernel: [] system_call_fastpath+0x22/0x27
Oct 24 20:56:43 <HOSTNAME> kernel: XFS (dm-3): xfs_do_force_shutdown(0x8) called from line 985 of file fs/xfs/xfs_trans.c. Return address = 0xffffffffc0593796
Oct 24 20:56:43 <HOSTNAME> kernel: XFS (dm-3): Corruption of in-memory data detected. Shutting down filesystem
Oct 24 20:56:43 <HOSTNAME> kernel: XFS (dm-3): Please umount the filesystem and rectify the problem(s)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.