[Pkg-zfsonlinux-devel] Bug#1012805: zfsutils-linux: vdev_id not working

Gero gero1406 at beckengineering.com.au
Tue Jun 14 14:59:01 BST 2022


Package: zfsutils-linux

Version: 2.1.4-1~bpo11+1

Severity: normal

Dear Maintainer,

I installed zfs as it's described here: 
https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/, i.e. 
installed the packages zfs-dkms zfsutils-linux from bullseye-backports

Then I tried to create disk device name mappings for a zfs pool and it 
seems that the vdev_id tool is not working or not properly configured to 
create symlinks in a new directory /dev/disk/by-vdev as promised in the 
openzfs documentation 
https://openzfs.github.io/openzfs-docs/Project%20and%20Community/FAQ.html#setting-up-the-etc-zfs-vdev-id-conf-file

At first vdev_id is not in the search path but in /lib/udev/vdev_id. 
Next, it doesn't find the config file /etc/zfs/vdev_id.conf when started 
without options. It does find it however when this very path is given 
explicitly like so:
# /lib/udev/vdev_id -c /etc/zfs/vdev_id.conf
(I don't know if that's ok or part of the problem.)

The instructions in the FAQ section of the openzfs docs state that the 
command
# udevadm trigger
should create the /dev/disk/by-vdev directory and some symlinks in it. 
This doesn't seem to work. I can't see any effect of this command, 
except for a couple of messages in /var/log/syslog:
systemd-udevd[2523]: Using default interface naming scheme 'v247'.
In particular no folder by-vdev is created.

I tried essentially with two versions of a /etc/zfs/vdev_id.conf - file:
---snip---
multipath     no
topology      sas_direct
channel 85:00.0  1         A
---snap---
and secondly:
---snip---
alias Front00   /dev/disk/by-path/pci-0000:af:00.0-sas-0x5000c500a18fb521
alias Front01   /dev/disk/by-path/pci-0000:af:00.0-sas-0x5000c500a18f2cd5
---snap---

Thanks a lot for your effort!

Regards,
Gero.


-- System Information:
Debian Release: 11.3
   APT prefers stable-updates
   APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-14-amd64 (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfsutils-linux depends on:
ii  init-system-helpers  1.60
ii  libblkid1            2.36.1-8+deb11u1
ii  libc6                2.31-13+deb11u3
ii  libnvpair3linux      2.1.4-1~bpo11+1
ii  libuuid1             2.36.1-8+deb11u1
ii  libuutil3linux       2.1.4-1~bpo11+1
ii  libzfs4linux         2.1.4-1~bpo11+1
ii  libzpool5linux       2.1.4-1~bpo11+1
ii  python3              3.9.2-3

Versions of packages zfsutils-linux recommends:
ii  lsb-base                11.1.0
ii  zfs-dkms [zfs-modules]  2.1.4-1~bpo11+1
ii  zfs-zed                 2.1.4-1~bpo11+1

Versions of packages zfsutils-linux suggests:
pn  nfs-kernel-server           <none>
pn  samba-common-bin            <none>
pn  zfs-initramfs | zfs-dracut  <none>

-- Configuration Files:
/etc/sudoers.d/zfs [Errno 13] Permission denied: '/etc/sudoers.d/zfs'

-- no debconf information



More information about the Pkg-zfsonlinux-devel mailing list