'multipath -ll' command fails with exit status '0' even when 'multipath.conf' file is missing.

Solution Verified - Updated -

Issue

  • multipath -ll command fails with exit status '0' even when /etc/multipath.conf file is missing. It is expected that when multipath -ll fails in such scenario, it should return exit code other than zero.
# multipath -ll
Jun 16 12:07:14 | /etc/multipath.conf does not exist, blacklisting all devices.
Jun 16 12:07:14 | You can run "/sbin/mpathconf --enable" to create
Jun 16 12:07:14 | /etc/multipath.conf. See man mpathconf(8) for more details

# echo $?
0                             

Environment

  • Red Hat Enterprise Linux 7/8/9
    • DM-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