XFS filesystem goes read-only when copying large files with Red Hat Enterprise Linux 5.4 and md-raid5

Solution Unverified - Updated -

Issue

  • Cannot write to an XFS filesystem mounted on md-raid5 storage during large copy.
  • Copying large files to a XFS filesystem fails with backtrace in messages file. XFS filesystem detects inode btree corruption and shuts itself down.
  • Messages are visible in /var/log/messages file :

    kernel: Filesystem "md0": XFS internal error xfs_btree_check_sblock at line 307 of file fs/xfs/xfs_btree.c.  Caller 0xffffffff8859b82f
    kernel: Call Trace:
    kernel:  [<ffffffff8858bbe6>] :xfs:xfs_btree_check_sblock+0xaf/0xbe
    kernel:  [<ffffffff8859b82f>] :xfs:xfs_inobt_lshift+0xa7/0x306
    kernel:  [<ffffffff8859cdcc>] :xfs:xfs_inobt_insrec+0x128/0x378
    kernel:  [<ffffffff885b1ed2>] :xfs:xfs_trans_read_buf+0x262/0x2af
    kernel:  [<ffffffff8858bb88>] :xfs:xfs_btree_check_sblock+0x51/0xbe
    kernel:  [<ffffffff8859d084>] :xfs:xfs_inobt_insert+0x68/0xe8
    kernel:  [<ffffffff88599d0e>] :xfs:xfs_ialloc_ag_alloc+0x592/0x60c
    kernel:  [<ffffffff8859a539>] :xfs:xfs_dialloc+0xf1/0x80c
    kernel:  [<ffffffff8858cbf2>] :xfs:xfs_da_buf_make+0x1f/0x102
    kernel:  [<ffffffff885a0aed>] :xfs:xfs_ialloc+0x5f/0x57f
    kernel:  [<ffffffff885b2b0f>] :xfs:xfs_dir_ialloc+0x86/0x2b7
    kernel:  [<ffffffff885a74b0>] :xfs:xlog_grant_log_space+0x204/0x25c
    kernel:  [<ffffffff885b55e4>] :xfs:xfs_create+0x237/0x45c
    kernel:  [<ffffffff8857ad47>] :xfs:xfs_attr_get+0x8e/0x9f
    kernel:  [<ffffffff885bee50>] :xfs:xfs_vn_mknod+0x144/0x215
    kernel:  [<ffffffff8003a5d2>] vfs_create+0xe6/0x158
    kernel:  [<ffffffff8001aed2>] open_namei+0x19d/0x6d5
    kernel:  [<ffffffff80027317>] do_filp_open+0x1c/0x38
    kernel:  [<ffffffff80019ce7>] do_sys_open+0x44/0xbe
    kernel:  [<ffffffff8005d28d>] tracesys+0xd5/0xe0
    

Environment

  • Red Hat Enterprise Linux 5.4-GA and all Red Hat Enterprise Linux 5.4.z releases.
  • xfsprogs-2.10.2-7.el5-x86_64
  • XFS filesystem on SW RAID 5 (md raid driver)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content