How to set custom 'max_sectors_kb' option for devices under multipathd control?

Solution Verified - Updated -

Issue

  • How to set custom max_sectors_kb option for multipath devices and its sub paths without causing any disruption to ongoing IO operations?

  • While changing the max_sectors_kb option for multipath devices and its sub paths with following command, the IO operations started to fail with below errors:

    $ echo '256' > /sys/block/<device>/queue/max_sectors_kb 
    
    $ tail -f /var/log/messages
    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 70:61.
    kernel: device-mapper: multipath: Failing path 71:81.
    multipathd: 70:61: mark as failed
    multipathd: crs_01: remaining active paths: 1
    multipathd: 71:81: mark as failed
    [...]
    
    • The same issue was not observed with kernel versions older than 2.6.32-642.el6 and 3.10.0-327.el7.

Environment

  • Red Hat Enterprise Linux (RHEL) 6.8, 7.3
    • kernel-2.6.32-642.el6 or later
    • kernel-3.10.0-327.el7 or later
    • device-mapper-multipath

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