libbd_mdraid.so.2: cannot open shared object file

Bug #1811724 reported by themusicgod1
142
This bug affects 31 people
Affects Status Importance Assigned to Milestone
udisks2 (Debian)
Fix Released
Unknown
udisks2 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Had some (probably unrelated?) trouble typing input into login console, and went looking through /var/log/syslog :
found

Jan 14 21:10:21 vps39184 udisksd[611]: udisks daemon version 2.8.1 starting
Jan 14 21:10:22 vps39184 udisksd[611]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Jan 14 21:10:22 vps39184 udisksd[611]: Failed to load the 'mdraid' libblockdev plugin

Seems to give this warning every time I boot.

udisks2:
  Installed: 2.8.1-3
  Candidate: 2.8.1-3

ubuntu: 19.04 disco

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: udisks2 2.8.1-3
ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
Uname: Linux 4.18.0-11-generic x86_64
ApportVersion: 2.20.10-0ubuntu18
Architecture: amd64
CustomUdevRuleFiles: 80-net-setup-link.rules
Date: Mon Jan 14 21:31:52 2019
Lsusb:
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Red Hat KVM
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: root=/dev/vda1 ro vga16fb.modeset=0 quiet splash
SourcePackage: udisks2
UpgradeStatus: Upgraded to disco on 2018-11-23 (52 days ago)
dmi.bios.date: 01/01/2007
dmi.bios.vendor: Seabios
dmi.bios.version: 0.5.1
dmi.chassis.type: 1
dmi.chassis.vendor: Red Hat
dmi.modalias: dmi:bvnSeabios:bvr0.5.1:bd01/01/2007:svnRedHat:pnKVM:pvrRHEL6.6.0PC:cvnRedHat:ct1:cvr:
dmi.product.family: Red Hat Enterprise Linux
dmi.product.name: KVM
dmi.product.version: RHEL 6.6.0 PC
dmi.sys.vendor: Red Hat

Revision history for this message
themusicgod1 (themusicgod1) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Jags Desai (jagsdesai) wrote :

Well, I too am getting these errors, every time I boot up Ubuntu Mate 19.04 x64:

udisksd[1070]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory

udisksd[1070]: Failed to load the 'mdraid' libblockdev plugin

udisks2: 2.8.2-1 (installed version)
Ubuntu Kernel: 5.2.8-050208-generic #201908091630 SMP Fri Aug 9 16:33:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Thanks.

tags: added: eoan
Revision history for this message
MangoCats (mangocats) wrote :

Confirmed on fresh install of Ubuntu 18.04.3:

udisksd[915]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory

Revision history for this message
Yovan (navoytak) wrote :

Error still exists on Ubuntu 18.04

uname -a: Linux vanoy 4.15.0-70-generic #79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
MasterCATZ (mastercatz) wrote :

upgraded from 18.04 to 19.10 and now getting these also

Revision history for this message
MasterCATZ (mastercatz) wrote :

apparently Adding libblockdev-crypto2 and libblockdev-mdraid2 will solve this

aio@aio:~$ sudo apt install libblockdev-crypto2
[sudo] password for aio:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libblockdev-crypto2 is already the newest version (2.22-1).
libblockdev-crypto2 set to manually installed.
The following packages were automatically installed and are no longer required:
  libz3-4 libz3-4:i386
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
aio@aio:~$ sudo apt install libblockdev-mdraid2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libz3-4 libz3-4:i386
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libbytesize1
The following NEW packages will be installed:
  libblockdev-mdraid2 libbytesize1
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
Need to get 23.5 kB of archives.
After this operation, 102 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu eoan/universe amd64 libbytesize1 amd64 2.1-1 [11.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu eoan/universe amd64 libblockdev-mdraid2 amd64 2.22-1 [12.2 kB]
Fetched 23.5 kB in 1s (21.0 kB/s)
Selecting previously unselected package libbytesize1:amd64.
(Reading database ... 723361 files and directories currently installed.)
Preparing to unpack .../libbytesize1_2.1-1_amd64.deb ...
Unpacking libbytesize1:amd64 (2.1-1) ...
Selecting previously unselected package libblockdev-mdraid2:amd64.
Preparing to unpack .../libblockdev-mdraid2_2.22-1_amd64.deb ...
Unpacking libblockdev-mdraid2:amd64 (2.22-1) ...
Setting up libbytesize1:amd64 (2.1-1) ...
Setting up libblockdev-mdraid2:amd64 (2.22-1) ...
Processing triggers for libc-bin (2.30-0ubuntu2) ...
Config is in use.
aio@aio:~$

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

Ubuntu focal
linux 5.4.0-17-generic x86_64
udisks2 2.8.4-1ubuntu1
libblockdev-crypto2 2.23-2ubuntu3

Same issue:
udisksd[1920]: Failed to load the 'mdraid' libblockdev plugin

Installing libblockdev-mdraid2 pulls in mdadm which is not a solution on systems which don't implement RAID.

On such systems, udisksd should not try to load the 'mdraid' libblockdev plugin.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Confirmed on focal.

Changed in udisks2 (Ubuntu):
importance: Undecided → Low
tags: added: focal
Revision history for this message
Jerry Quinn (jlquinn) wrote :

Present in 18.04:

jlquinn@cerberus:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
jlquinn@cerberus:~$ dpkg -l udisks2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================================-==========================-==========================-=========================================================================================
ii udisks2 2.7.6-3ubuntu0.2 amd64 D-Bus service to access and manipulate storage devices

Revision history for this message
Jerry Quinn (jlquinn) wrote :

My system has a raid filesystem present.

Revision history for this message
Michal Przybylowicz (michal-przybylowicz) wrote :

I have the same message:

Aug 17 09:23:55 demonhost udisksd[661]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Aug 17 09:23:55 demonhost udisksd[661]: Failed to load the 'mdraid' libblockdev plugin

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

Revision history for this message
Howard (tayhow42) wrote :

I have something similar:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

 $ sudo systemctl status udisks2
● udisks2.service - Disk Manager
     Loaded: loaded (/lib/systemd/system/udisks2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2020-10-03 15:41:24 BST; 3h 25min ago
       Docs: man:udisks(8)
   Main PID: 1179 (udisksd)
      Tasks: 5 (limit: 18492)
     Memory: 10.9M
     CGroup: /system.slice/udisks2.service
             └─1179 /usr/lib/udisks2/udisksd

Oct 03 15:41:22 lenu systemd[1]: Starting Disk Manager...
Oct 03 15:41:22 lenu udisksd[1179]: udisks daemon version 2.8.4 starting
Oct 03 15:41:22 lenu udisksd[1179]: failed to load module mdraid: libbd_mdraid.so.2: cannot open sha>
Oct 03 15:41:22 lenu udisksd[1179]: Failed to load the 'mdraid' libblockdev plugin
Oct 03 15:41:23 lenu udisksd[1179]: Applying configuration from /etc/udisks2/ST2000LX001-1RG174-WDZB>
Oct 03 15:41:23 lenu udisksd[1179]: Enabled Write-Cache on /dev/sda [ST2000LX001-1RG174-WDZBG3KC]
Oct 03 15:41:24 lenu systemd[1]: Started Disk Manager.
Oct 03 15:41:24 lenu udisksd[1179]: Acquired the name org.freedesktop.UDisks2 on the system message >

Revision history for this message
Sergey Ivanov (icegood1980) wrote :

Still fails

syslog:1835:Dec 10 23:55:34 ice-ubuntu udisksd[1099]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
syslog:1876:Dec 10 23:55:34 ice-ubuntu udisksd[1099]: Failed to load the 'mdraid' libblockdev plugin

uname -a
Linux ice-ubuntu 5.8.0-32-generic #34-Ubuntu SMP Fri Nov 27 15:10:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

ii udisks2 2.9.1-2ubuntu1 amd64 D-Bus service to access and manipulate storage devices

Revision history for this message
Sebastien Bacher (seb128) wrote :

Is there anything really failing or is that just a warning in the log?

Revision history for this message
themusicgod1 (themusicgod1) wrote :

Seems to be just the warning in the log for me

Revision history for this message
themusicgod1 (themusicgod1) wrote :

hasn't come up in awhile though

Revision history for this message
Steph B (64bitguy) wrote :

Had the issue in Linux Mint 20.1 and resolved by installing:

libblockdev-mdraid2

Revision history for this message
xcom (xcom) wrote :

i had the same issue.

Revision history for this message
Ole Jon Bjørkum (olejonbj) wrote (last edit ):

Same on Ubuntu 20.04 both GA and HWE kernel.

Sure, it just takes this command to find which package has it:

$ apt-file search libbd_mdraid.so.2

And get "libblockdev-mdraid2", which does "fix" it, but I DON'T need it. Depends on packages I don't need, MOST don't need:

$ apt show libblockdev-mdraid2

Depends: libblockdev-utils2 (>= 2.20), libbytesize1 (>= 2.1), libc6 (>= 2.27), libglib2.0-0 (>= 2.42.2), mdadm (>= 3.3.2)

However it's the same on Raspbian for the Raspberry Pi, so it's more of a Debian problem. And installing that package then wants exim4 and all... A mail server?? For a library?

Revision history for this message
David H. Brown (dave-davidhbrown) wrote :

I encountered something very similar to this issue (maybe even this issue?) when my docker containers could not start (using snap on Ubuntu 20.04.3 LTS under VirtualBox with a Windows 10 host). Similar to others, `sudo apt install libblockdev-mdraid2` seems to have fixed it.

In case these log lines are useful context, they came from `sudo grep fail /var/log/syslog` (just trying to filter out some of the noise and I suspect that the devmapper/containerd/cni bits are not directly related):

Nov 4 05:22:48 docker kernel: [ 0.305507] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
Nov 4 05:22:48 docker systemd[1]: Starting GRUB failed boot detection...
Nov 4 05:22:48 docker systemd[1]: Finished GRUB failed boot detection.
Nov 4 05:22:48 docker udisksd[731]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Nov 4 05:22:48 docker containerd[733]: time="2021-11-04T05:22:48.627329367Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
Nov 4 05:22:48 docker containerd[733]: time="2021-11-04T05:22:48.635107136Z" level=error msg="failed to load cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
Nov 4 05:22:49 docker docker.dockerd[719]: snap-update-ns failed with code 1

Changed in udisks2 (Debian):
status: Unknown → New
Changed in udisks2 (Debian):
status: New → Fix Released
Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

Our partner get this from log too on 22.04
Sep 27 06:14:18 192-168-127-58 udisksd[3002]: udisks daemon version 2.9.4 starting
Sep 27 06:14:18 192-168-127-58 udisksd[3002]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Sep 27 06:14:18 192-168-127-58 udisksd[3002]: Failed to load the 'mdraid' libblockdev plugin

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.