]> git.proxmox.com Git - mirror_zfs.git/commit
Expose zfs_vdev_open_timeout_ms as a tunable
authorSerapheim Dimitropoulos <serapheim@delphix.com>
Thu, 3 Nov 2022 22:02:46 +0000 (15:02 -0700)
committerTony Hutter <hutter2@llnl.gov>
Thu, 1 Dec 2022 20:39:43 +0000 (12:39 -0800)
commit85537f77a3574f265c5e87c3ee4b1858317530ce
tree3103bf1a0d039f4eda281c2a28c294b9e9c876a5
parent5f53a444b3c1326f5b0af026763bb68e70a581ad
Expose zfs_vdev_open_timeout_ms as a tunable

Some of our customers have been occasionally hitting zfs import failures
in Linux because udevd doesn't create the by-id symbolic links in time
for zpool import to use them. The main issue is that the
systemd-udev-settle.service that zfs-import-cache.service and other
services depend on is racy. There is also an openzfs issue filed (see
https://github.com/openzfs/zfs/issues/10891) outlining the problem and
potential solutions.

With the proper solutions being significant in terms of complexity and
the priority of the issue being low for the time being, this patch
exposes `zfs_vdev_open_timeout_ms` as a tunable so people that are
experiencing this issue often can increase it as a workaround.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Don Brady <don.brady@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #14133
man/man4/zfs.4
module/os/linux/zfs/vdev_disk.c