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:
- Open a terminal on your Ubuntu system.
- Query the service status:
sudo systemctl status multipathd.service - Review recent journal logs for unit failure details:
sudo journalctl -u multipathd.service -e --no-pager - 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:
- Create or edit the main multipath configuration file:
sudo nano /etc/multipath.conf - 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]" } - Save the file and exit the editor.
- Recheck configuration syntax:
sudo multipath -t - 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:
- Check if the module is active:
lsmod | grep dm_multipath - If absent, manually load the module:
sudo modprobe dm_multipath - 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:
- Stop the active service and socket units:
sudo systemctl stop multipathd.service sudo systemctl stop multipathd.socket - Disable and mask the units to prevent automatic reactivation:
sudo systemctl disable --now multipathd.service multipathd.socket sudo systemctl mask multipathd.service - Update your initramfs storage image:
sudo update-initramfs -u