mpathconf command failed to create multipath.conf

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
    • device-mapper-multipath prior to 0.4.9-41.el6

Issue

  • mpathconf command failed to create multipath.conf
    < man mpathconf >mpathconf is a utility that creates or modifies /etc/multipath.conf. 
    ...
    If  /etc/multipath.conf  already exists, mpathconf will edit it.
    If it does not exist,mpathconf will use /usr/share/doc/device-mapper-
    multipath-0.4.9/multipath.conf as the starting file.
    This file has user_friendly_names set. If this file does not exist,
    mpathconf will create /etc/multipath.conf from scratch.
    < / man >
    

Resolution

  • Create the multipath.conf file manually with a text editor.

Root Cause

Diagnostic Steps

  • Create multipath.conf file from scratch by mpathconf command
    # mpathconf --enable multipath is enabled
    find_multipaths is disabled
    user_friendly_names is enabled
    dm_multipath module is loaded
    multipathd is chkconfiged on
    
    # less /etc/multipath/
    bindings             .multipath.conf.tmp  wwids
    
    # multipath -ll
    Sep 22 21:04:04 | /etc/multipath.conf does not exist, blacklisting all devices.
    Sep 22 21:04:04 | A sample multipath.conf file is located at
    Sep 22 21:04:04 | /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
    Sep 22 21:04:04 | You can run /sbin/mpathconf to create or modify /etc/multipath.conf
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.