mkfs.xfs: pwrite64 failed: Input/output error including 'blk_cloned_rq_check_limits'

Solution Verified - Updated -

Issue

  • When trying to create a xfs filesystem getting below error:

    # mkfs.xfs  /dev/mapper/lvname
    meta-data=/dev/mapper/lvname isize=512    agcount=32, agsize=8388604 blks
             =                       sectsz=512   attr=2, projid32bit=1
             =                       crc=1        finobt=0, sparse=0
    data     =                       bsize=4096   blocks=268435328, imaxpct=25
             =                       sunit=4      swidth=4096 blks
    naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
    log      =internal log           bsize=4096   blocks=131072, version=2
             =                       sectsz=512   sunit=4 blks, lazy-count=1
    realtime =none                   extsz=4096   blocks=0, rtextents=0
    **mkfs.xfs: pwrite64 failed: Input/output error**
    
  • In /var/log/messages we could see below errors

     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
     kernel: blk_cloned_rq_check_limits: over max size limit.
    
     kernel: device-mapper: multipath: Failing path 8:176.
     kernel: device-mapper: multipath: Failing path 8:128.
     kernel: device-mapper: multipath: Failing path 8:132
     kernel: device-mapper: multipath: Failing path 8:112
    
     multipathd: sdi: mark as failed
     multipathd: remaining active paths: 3
     multipathd: sdl: mark as failed
     multipathd:  remaining active paths: 2
     multipathd: sdh: mark as failed
     multipathd:  remaining active paths: 1
     multipathd: sdc: mark as failed
     multipathd: remaining active paths: 0
     kernel: Buffer I/O error on dev dm-7, logical block 268435440, async page read
     multipathd:  sdi - directio checker reports path is up
     multipathd: 8:128: reinstated
     multipathd: remaining active paths: 1
     kernel: device-mapper: multipath: Reinstating path 8:128.
     kernel: device-mapper: multipath: Reinstating path 8:176.
     kernel: device-mapper: multipath: Reinstating path 8:112.
     kernel: device-mapper: multipath: Reinstating path 8:32.
     multipathd:  sdl - directio checker reports path is up
     multipathd: 8:176: reinstated
     multipathd:  remaining active paths: 2
     multipathd: 8:112: reinstated
     multipathd:remaining active paths: 3
     multipathd:  sdc - directio checker reports path is up
     multipathd: 8:32: reinstated
     multipathd: remaining active paths: 4
    [...]
    
  • But while creating a filesystem with ext4 it is not giving any errors.

Environment

  • Red Hat Enterprise Linux (RHEL) 7.3
  • XFS filesystem

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