XFS filesystem shutdown when deleting millions of files on RHEL

Solution Unverified - Updated -

Issue

  • XFS file system shut down when deleting 50 ~ 60 million small files (5 ~ 10 KB).

    kernel: XFS (dm-3): xlog_write: reservation summary:
    trans type  = INACTIVE (3)
    unit res    = 78564 bytes
    current res = -33148 bytes
    total reg   = 0 bytes (o/flow = 0 bytes)
    ophdrs      = 0 (ophdr space = 0 bytes)
    ophdr + reg = 0 bytes
    num regions = 0
    kernel: XFS : xlog_write: reservation ran out. Need to up reservation
    kernel: XFS : xfs_do_force_shutdown(0x2) called from line 2042 of file fs/xfs/xfs_log.c.  Return address = 0xffffffffa033edb8
    kernel: XFS : xfs_imap_to_bp: xfs_trans_read_buf() returned error 5.
    kernel: XFS : Log I/O Error Detected.  Shutting down filesystem
    kernel: XFS : Please umount the filesystem and rectify the problem(s)
    kernel: XFS : xfs_log_force: error 5 returned.
    

Environment

  • Red Hat Enterprise Linux 7

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