How to Fix Failed to Start multipathd.service in Ubuntu

The Device-Mapper Multipath daemon (multipathd) coordinates redundant I/O storage paths between Linux host systems and Storage Area Network (SAN) storage arrays via Fibre Channel, iSCSI, or SAS fabrics. On standard bare-metal servers, virtual machines, or cloud instances that utilize simple SATA or NVMe storage without multipath hardware, running systemctl start multipathd or booting Ubuntu frequently triggers the error: Job for multipathd.service failed because the control process exited with error code. This issue arises from unconfigured storage rules, missing kernel modules, or syntax faults in /etc/multipath.conf.

Inspect systemd Status and Multipath Daemon Logs

To determine why the daemon process exited or failed to initialize device maps, inspect the detailed systemd journal records:

  1. Open a terminal on your Ubuntu system.
  2. Query the service status:
    sudo systemctl status multipathd.service
  3. Review recent journal logs for unit failure details:
    sudo journalctl -u multipathd.service -e --no-pager
  4. Common failure causes include missing device-mapper kernel modules, locked socket files in /run/multipathd.sock, or syntax errors in configuration files.

Configure Proper Disk Blacklists in multipath.conf

By default, if multipathd discovers local NVMe or SATA drives that do not possess redundant paths, it may trigger initialization errors. Creating a valid configuration file with strict blacklisting resolves the fault:

  1. Create or edit the main multipath configuration file:
    sudo nano /etc/multipath.conf
  2. Add the following standard baseline configuration to enable path discovery while blacklisting non-multipath internal disks:
    defaults {
        user_friendly_names yes
        find_multipaths yes
    }
    
    blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^(hd|xvd|vd)[a-z]"
    }
  3. Save the file and exit the editor.
  4. Recheck configuration syntax:
    sudo multipath -t
  5. Restart the service:
    sudo systemctl restart multipathd.service

Ensure the dm-multipath Kernel Module Is Loaded

If the device-mapper kernel driver is missing from memory, multipathd cannot establish communication with the kernel:

  1. Check if the module is active:
    lsmod | grep dm_multipath
  2. If absent, manually load the module:
    sudo modprobe dm_multipath
  3. To guarantee automatic loading on system boot, append the module name to /etc/modules:
    echo "dm_multipath" | sudo tee -a /etc/modules

Disable or Mask multipathd on Non-SAN Single-Disk Systems

If your Ubuntu installation operates on a standalone desktop, standard cloud VPS (such as AWS EC2 or DigitalOcean), or simple virtual machine without Fibre Channel/iSCSI SAN storage, multipathd is completely unnecessary. Disabling it clears boot delays and systemd error flags permanently:

  1. Stop the active service and socket units:
    sudo systemctl stop multipathd.service
    sudo systemctl stop multipathd.socket
  2. Disable and mask the units to prevent automatic reactivation:
    sudo systemctl disable --now multipathd.service multipathd.socket
    sudo systemctl mask multipathd.service
  3. Update your initramfs storage image:
    sudo update-initramfs -u

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.