'multipath -ll' command fails with exit status '0' even when 'multipath.conf' file is missing.
Issue
multipath -llcommand fails with exit status '0' even when/etc/multipath.conffile is missing. It is expected that whenmultipath -llfails 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.