✓ Solved

multipath doesn't work. modprobe is looking for missing modules in (kernel?) directories with "linode" in their names

Hi.

Ubuntu 20.04. Installed from Linode. No do-release-upgrade before.

Current, full output from apt-get update && apt-get upgrade (as root):

Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up multipath-tools (0.8.3-1ubuntu2.1) ...
Job for multipathd.service failed because the control process exited with error code.
See "systemctl status multipathd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript multipath-tools, action "start" failed.
● multipathd.service - Device-Mapper Multipath Device Controller
     Loaded: loaded (/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-02-11 18:55:45 UTC; 15ms ago
TriggeredBy: ● multipathd.socket
    Process: 2284 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath (code=exited, status=1/FAILURE)
    Process: 2285 ExecStart=/sbin/multipathd -d -s (code=exited, status=1/FAILURE)
   Main PID: 2285 (code=exited, status=1/FAILURE)
     Status: "configure"

Feb 11 18:55:45 li1795-97 modprobe[2284]: modprobe: WARNING: Module scsi_dh_emc not found in directory /lib/modules/6.0.10-x86_64-linode158
Feb 11 18:55:45 li1795-97 modprobe[2284]: modprobe: WARNING: Module scsi_dh_rdac not found in directory /lib/modules/6.0.10-x86_64-linode158
Feb 11 18:55:45 li1795-97 modprobe[2284]: modprobe: WARNING: Module dm-multipath not found in directory /lib/modules/6.0.10-x86_64-linode158
Feb 11 18:55:45 li1795-97 multipathd[2285]: --------start up--------
Feb 11 18:55:45 li1795-97 multipathd[2285]: read /etc/multipath.conf
Feb 11 18:55:45 li1795-97 multipathd[2285]: DM multipath kernel driver not loaded
Feb 11 18:55:45 li1795-97 multipathd[2285]: DM multipath kernel driver not loaded
Feb 11 18:55:45 li1795-97 systemd[1]: multipathd.service: Main process exited, code=exited, status=1/FAILURE
Feb 11 18:55:45 li1795-97 systemd[1]: multipathd.service: Failed with result 'exit-code'.
Feb 11 18:55:45 li1795-97 systemd[1]: Failed to start Device-Mapper Multipath Device Controller.
dpkg: error processing package multipath-tools (--configure):
 installed multipath-tools package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 multipath-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@li42:~#

I tried running "depmod". No change. Manual modprobe test against one of them:

root@li42:~# modprobe dm-multipath
modprobe: FATAL: Module dm-multipath not found in directory /lib/modules/6.0.10-x86_64-linode158

How do I correct this?

Links on the way here (for future reference if someone ends up reading this):
https://askubuntu.com/questions/1242731/ubuntu-20-04-multipath-configuration
https://askubuntu.com/questions/1251581/apt-get-getting-error-e-internal-error-no-file-name-for-open-vm-toolsamd64
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/dm_multipath/mpath_devices
https://docs.oracle.com/cd/E19122-01/j4500.array/820-3163/bcghjife.html
https://manpages.debian.org/unstable/multipath-tools/multipath.conf.5.en.html
https://stackoverflow.com/questions/34800731/module-not-found-when-i-do-a-modprobe
https://www.linode.com/community/questions/23535/strange-new-error-failed-to-start-device-mapper-multipath-device-controller

Content of /lib/modules (folders one level deep):

# ls /lib/modules/
5.10.13-x86_64-linode141/ 5.4.0-107-generic/        5.4.0-131-generic/        5.4.0-88-generic/
5.11.9-x86_64-linode142/  5.4.0-109-generic/        5.4.0-132-generic/        5.4.0-89-generic/
5.14.17-x86_64-linode150/ 5.4.0-110-generic/        5.4.0-135-generic/        5.4.0-90-generic/
5.14.2-x86_64-linode147/  5.4.0-113-generic/        5.4.0-136-generic/        5.4.0-91-generic/
5.15.10-x86_64-linode151/ 5.4.0-117-generic/        5.4.0-137-generic/        5.4.0-92-generic/
5.16.13-x86_64-linode153/ 5.4.0-120-generic/        5.4.0-139-generic/        5.4.0-94-generic/
5.16.3-x86_64-linode152/  5.4.0-121-generic/        5.4.0-65-generic/         5.4.0-96-generic/
5.17.5-x86_64-linode154/  5.4.0-122-generic/        5.4.0-66-generic/         5.4.0-97-generic/
5.19.2-x86_64-linode156/  5.4.0-124-generic/        5.4.0-67-generic/         5.4.0-99-generic/
5.4.0-100-generic/        5.4.0-125-generic/        5.4.0-70-generic/         6.0.10-x86_64-linode158/
5.4.0-104-generic/        5.4.0-126-generic/        5.4.0-71-generic/         6.0.2-x86_64-linode157/
5.4.0-105-generic/        5.4.0-128-generic/        5.4.0-72-generic/         grub-2.04-19-linode.img/

By the way, before I came as far as this, I blacklisted devnode ".*" in /etc/multipath.conf after extensive googling. I didn't want to uninstall "ubuntu-server" that had to be removed when I simply tried to apt remove multipath-tools. I googled it and got this:
https://packages.ubuntu.com/focal/ubuntu-server

Looks like it's used for some important stuff?

Before blacklisting all "devnodes", I got errors like this from apt:

Preparing to unpack .../libexpat1_2.2.9-1ubuntu0.5_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.9-1ubuntu0.5) over (2.2.9-1ubuntu0.4) ...
Preparing to unpack .../kpartx_0.8.3-1ubuntu2.1_amd64.deb ...
Unpacking kpartx (0.8.3-1ubuntu2.1) over (0.8.3-1ubuntu2) ...
Preparing to unpack .../multipath-tools_0.8.3-1ubuntu2.1_amd64.deb ...
modprobe: FATAL: Module dm-multipath not found in directory /lib/modules/5.19.2-x86_64-linode156
Unpacking multipath-tools (0.8.3-1ubuntu2.1) over (0.8.3-1ubuntu2) ...
Setting up libexpat1:amd64 (2.2.9-1ubuntu0.5) ...
Setting up kpartx (0.8.3-1ubuntu2.1) ...
Setting up multipath-tools (0.8.3-1ubuntu2.1) ...
Job for multipathd.service failed because the control process exited with error code.
See "systemctl status multipathd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript multipath-tools, action "start" failed.
? multipathd.service - Device-Mapper Multipath Device Controller
     Loaded: loaded (/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-11-19 04:53:34 UTC; 17ms ago
TriggeredBy: ? multipathd.socket
    Process: 36997 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath (code=exited, status=1/FAILURE)
    Process: 36998 ExecStart=/sbin/multipathd -d -s (code=exited, status=1/FAILURE)
   Main PID: 36998 (code=exited, status=1/FAILURE)
     Status: "configure"

Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd8: HDIO_GETGEO failed with 25
Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd8: failed to get udev uid: Invalid argument
Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd8: failed to get unknown uid: Invalid argument
Nov 19 04:53:34 li1795-97 systemd[1]: multipathd.service: Main process exited, code=exited, status=1/FAILURE
Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd9: HDIO_GETGEO failed with 25
Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd9: failed to get udev uid: Invalid argument
Nov 19 04:53:34 li1795-97 multipathd[36998]: nbd9: failed to get unknown uid: Invalid argument
Nov 19 04:53:34 li1795-97 multipathd[36998]: DM multipath kernel driver not loaded
Nov 19 04:53:34 li1795-97 systemd[1]: multipathd.service: Failed with result 'exit-code'.
Nov 19 04:53:34 li1795-97 systemd[1]: Failed to start Device-Mapper Multipath Device Controller.
dpkg: error processing package multipath-tools (--configure):
 installed multipath-tools package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.18) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 multipath-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Reply

✓ Best Answer

I re-read the last Linode link in my post, and decided to try GRUB2. This made the error go away.

apt-get update && apt-get upgrade now work without errors.

Multipath is installed still. Thanks. You can close this question.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct