Bug#766416: mdadm: tries to call /usr/bin/readlink which does not exist in Debian

Todor Tsankov tt.debian at mail.ru
Wed Oct 22 17:05:45 UTC 2014


Package: mdadm
Version: 3.3.2-2
Severity: normal

Dear Maintainer,

The file /lib/udev/rules.d/63-md-raid-arrays.rules tries to execute
/usr/bin/readlink, which does not exist in Debian. It is /bin/readlink instead.

This leads to the following error message in my system log:

Oct 22 13:37:43 gnzdeb systemd-udevd[348]: failed to execute
'/usr/bin/readlink' '/usr/bin/readlink /dev/md/imsm0': No such file or

This doesn't seem to have any adverse consequences -- my system boots
and runs normally.

Thank you for maitaining mdadm.

--
Todor



-- Package-specific info:
--- mdadm.conf
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY metadata=imsm UUID=dc71b22a:873e123b:5924fb8a:1f6c4c08
ARRAY /dev/md/RAID0 container=dc71b22a:873e123b:5924fb8a:1f6c4c08 member=0 UUID=c3bda448:2ce27f2f:af9d30bc:14bf1275

--- /etc/default/mdadm
INITRDSTART='all'
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=true

--- /proc/mdstat:
Personalities : [raid1] 
md126 : active raid1 sda[1] sdb[0]
      488383488 blocks super external:/md127/0 [2/2] [UU]
      
md127 : inactive sda[1](S) sdb[0](S)
      5928 blocks super external:imsm
       
unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

   8        0  488386584 sda
  11        0    1048575 sr0
   8       16  488386584 sdb
   9      126  488383488 md126
 259        0  245760992 md126p1
 259        1          1 md126p2
 259        2   48827392 md126p5
 259        3    4881408 md126p6
 259        4  188910592 md126p7

--- LVM physical volumes:
LVM does not seem to be used.
--- mount output
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=488525,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=785056k,mode=755)
/dev/md126p5 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/md126p7 on /home type ext4 (rw,relatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/115 type tmpfs (rw,nosuid,nodev,relatime,size=392528k,mode=700,uid=115,gid=121)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=392528k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
encfs on /home/todor/encfs type fuse.encfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions)

--- initrd.img-3.16-2-amd64:
91518 blocks
599bbf3fe6093157a26863dcb59cdf5d  ./scripts/local-top/mdadm
4bbfcba2c295da562915bb136e8a1454  ./lib/modules/3.16-2-amd64/kernel/drivers/md/raid456.ko
6669b11f1f0964f61b620dbb9a8464b6  ./lib/modules/3.16-2-amd64/kernel/drivers/md/dm-mod.ko
b131e294b0ace5ae6b1a2055dac3f456  ./lib/modules/3.16-2-amd64/kernel/drivers/md/multipath.ko
92ec93cb9071716b32c8652363687433  ./lib/modules/3.16-2-amd64/kernel/drivers/md/md-mod.ko
e5770e9b247f189328df74010b319b5e  ./lib/modules/3.16-2-amd64/kernel/drivers/md/raid0.ko
dbf3173d59256c5c8593ea5e4996eb54  ./lib/modules/3.16-2-amd64/kernel/drivers/md/linear.ko
97d51c2288fe75fea8f1de9f8c95ec53  ./lib/modules/3.16-2-amd64/kernel/drivers/md/raid1.ko
34aa82eb5ecedbf94731796f3b35719a  ./lib/modules/3.16-2-amd64/kernel/drivers/md/raid10.ko
e7735be2925447a39332bb304f9d0787  ./sbin/mdadm
90b141f2f0766934284670088277c0fa  ./etc/mdadm/mdadm.conf
d3be82c0f275d6c25b04d388baf9e836  ./etc/modprobe.d/mdadm.conf
00bb6ece42f5f0a733b9154412433208  ./conf/mdadm

--- initrd's /conf/conf.d/md:
no conf/md file.

--- /proc/modules:
raid1 34596 1 - Live 0xffffffffa0085000
md_mod 107672 5 raid1, Live 0xffffffffa01cb000

--- /var/log/syslog:

--- volume detail:
/dev/sda:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.1.00
    Orig Family : e4406beb
         Family : e4412207
     Generation : 004dfbde
     Attributes : All supported
           UUID : dc71b22a:873e123b:5924fb8a:1f6c4c08
       Checksum : e2547b9c correct
    MPB Sectors : 1
          Disks : 2
   RAID Devices : 1

  Disk00 Serial : S1W3J9BSB00435
          State : active
             Id : 00000000
    Usable Size : 976767240 (465.76 GiB 500.10 GB)

[RAID0]:
           UUID : c3bda448:2ce27f2f:af9d30bc:14bf1275
     RAID Level : 1
        Members : 2
          Slots : [UU]
    Failed disk : none
      This Slot : 0
     Array Size : 976766976 (465.76 GiB 500.10 GB)
   Per Dev Size : 976767240 (465.76 GiB 500.10 GB)
  Sector Offset : 0
    Num Stripes : 3815496
     Chunk Size : 64 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : dirty

  Disk01 Serial : S1W3J9BSB00436
          State : active
             Id : 00020000
    Usable Size : 976767240 (465.76 GiB 500.10 GB)
--
/dev/sdb:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.1.00
    Orig Family : e4406beb
         Family : e4412207
     Generation : 004dfbde
     Attributes : All supported
           UUID : dc71b22a:873e123b:5924fb8a:1f6c4c08
       Checksum : e2547b9c correct
    MPB Sectors : 1
          Disks : 2
   RAID Devices : 1

  Disk01 Serial : S1W3J9BSB00436
          State : active
             Id : 00020000
    Usable Size : 976767240 (465.76 GiB 500.10 GB)

[RAID0]:
           UUID : c3bda448:2ce27f2f:af9d30bc:14bf1275
     RAID Level : 1
        Members : 2
          Slots : [UU]
    Failed disk : none
      This Slot : 1
     Array Size : 976766976 (465.76 GiB 500.10 GB)
   Per Dev Size : 976767240 (465.76 GiB 500.10 GB)
  Sector Offset : 0
    Num Stripes : 3815496
     Chunk Size : 64 KiB
       Reserved : 0
  Migrate State : idle
      Map State : normal
    Dirty State : dirty

  Disk00 Serial : S1W3J9BSB00435
          State : active
             Id : 00000000
    Usable Size : 976767240 (465.76 GiB 500.10 GB)
--

--- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.16-2-amd64 root=UUID=79eba640-6675-4021-8fcf-29e28a672fcd ro quiet systemd.show_status=1

--- grub2:
	linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=79eba640-6675-4021-8fcf-29e28a672fcd ro  quiet systemd.show_status=1
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=79eba640-6675-4021-8fcf-29e28a672fcd ro  quiet systemd.show_status=1
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=79eba640-6675-4021-8fcf-29e28a672fcd ro single 

--- udev:
ii  udev           215-5+b1     amd64        /dev/ and hotplug management daem
cd2d1ac595f7510a81da0b292a556b28  /lib/udev/rules.d/63-md-raid-arrays.rules
5de7d0b70cd948d00bb38ca75ad5f288  /lib/udev/rules.d/64-md-raid-assembly.rules
a74b2fb44334378c5c6b579326b2c1c7  /lib/udev/rules.d/99-systemd.rules

--- /dev:
brw-rw---- 1 root disk   9, 126 Oct 22 13:37 /dev/md126
brw-rw---- 1 root disk 259,   0 Oct 22 13:37 /dev/md126p1
brw-rw---- 1 root disk 259,   1 Oct 22 13:37 /dev/md126p2
brw-rw---- 1 root disk 259,   2 Oct 22 13:37 /dev/md126p5
brw-rw---- 1 root disk 259,   3 Oct 22 13:37 /dev/md126p6
brw-rw---- 1 root disk 259,   4 Oct 22 13:37 /dev/md126p7
brw-rw---- 1 root disk   9, 127 Oct 22 13:37 /dev/md127

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Oct 22 13:37 ata-SAMSUNG_HD502IJ_S1W3J9BSB00435 -> ../../sda
lrwxrwxrwx 1 root root  9 Oct 22 13:37 ata-SAMSUNG_HD502IJ_S1W3J9BSB00436 -> ../../sdb
lrwxrwxrwx 1 root root  9 Oct 22 13:37 ata-hp_DVD_A_DH16AAL_2B9945012932 -> ../../sr0
lrwxrwxrwx 1 root root 11 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275 -> ../../md126
lrwxrwxrwx 1 root root 13 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275-part1 -> ../../md126p1
lrwxrwxrwx 1 root root 13 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275-part2 -> ../../md126p2
lrwxrwxrwx 1 root root 13 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275-part5 -> ../../md126p5
lrwxrwxrwx 1 root root 13 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275-part6 -> ../../md126p6
lrwxrwxrwx 1 root root 13 Oct 22 13:37 md-uuid-c3bda448:2ce27f2f:af9d30bc:14bf1275-part7 -> ../../md126p7
lrwxrwxrwx 1 root root 11 Oct 22 13:37 md-uuid-dc71b22a:873e123b:5924fb8a:1f6c4c08 -> ../../md127
lrwxrwxrwx 1 root root  9 Oct 22 13:37 wwn-0x50024e920148431e -> ../../sda
lrwxrwxrwx 1 root root  9 Oct 22 13:37 wwn-0x50024e9201484325 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 13 Oct 22 13:37 2e394561-02d1-45f2-90a6-e0ffa41b929e -> ../../md126p7
lrwxrwxrwx 1 root root 13 Oct 22 13:37 4034BCAC34BCA5F6 -> ../../md126p1
lrwxrwxrwx 1 root root 13 Oct 22 13:37 59a76eaa-70f3-4608-8b94-02c9fcee5fee -> ../../md126p6
lrwxrwxrwx 1 root root 13 Oct 22 13:37 79eba640-6675-4021-8fcf-29e28a672fcd -> ../../md126p5

/dev/md:
total 0
lrwxrwxrwx 1 root root  8 Oct 22 13:37 RAID0 -> ../md126
lrwxrwxrwx 1 root root 10 Oct 22 13:37 RAID0p1 -> ../md126p1
lrwxrwxrwx 1 root root 10 Oct 22 13:37 RAID0p2 -> ../md126p2
lrwxrwxrwx 1 root root 10 Oct 22 13:37 RAID0p5 -> ../md126p5
lrwxrwxrwx 1 root root 10 Oct 22 13:37 RAID0p6 -> ../md126p6
lrwxrwxrwx 1 root root 10 Oct 22 13:37 RAID0p7 -> ../md126p7
lrwxrwxrwx 1 root root  8 Oct 22 13:37 imsm0 -> ../md127

Auto-generated on Wed, 22 Oct 2014 18:59:00 +0200 by mdadm bugscript

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]  1.5.53
ii  initscripts            2.88dsf-53.4
ii  libc6                  2.19-11
ii  lsb-base               4.1+Debian13
ii  udev                   215-5+b1

Versions of packages mdadm recommends:
ii  dma [mail-transport-agent]  0.9-1
ii  kmod                        18-3
ii  module-init-tools           18-3

mdadm suggests no packages.

-- debconf information:
* mdadm/autocheck: true
* mdadm/start_daemon: true
  mdadm/initrdstart_msg_errblock:
  mdadm/autostart: true
  mdadm/initrdstart_msg_errmd:
* mdadm/mail_to: root
  mdadm/initrdstart_msg_intro:
  mdadm/initrdstart_notinconf: false
  mdadm/initrdstart_msg_errconf:
* mdadm/initrdstart: all
  mdadm/initrdstart_msg_errexist:



More information about the pkg-mdadm-devel mailing list