[Bug 261808] zfs's rc.d script doesn't work with "late" devices

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Feb 2022 00:30:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261808

            Bug ID: 261808
           Summary: zfs's rc.d script doesn't work with "late" devices
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: diizzy@FreeBSD.org

If you use fstab you can set the property late for devices that are slow to
initialize like USB devices. The rc.d script doesn't take such devices into
account and this creates a race condition in which zfs most often (always?)
wont mount filesystems on such devices.

...
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
ugen5.2: <Ugreen Ugreen Storage Device> at usbus5
umass0 on uhub4
umass0: <Ugreen Ugreen Storage Device, class 0/0, rev 3.00/1.00, addr 1> on
usbus5
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:0:0: Attached to scbus0
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <Ugreen Ugreen Storage D 0> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number 123456789042
da0: 400.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
cannot import 'volume0': no such pool or dataset
        Destroy and re-create the pool from
        a backup source.
cachefile import failed, retrying
nvpair_value_nvlist(nvp, &rv) ==pid 45 (zpool), jid 0, uid 0: exited on signal
6
 0 (0x16 == 0)
ASSERT at
/usr/src/sys/contrib/openzfs/module/nvpair/fnvpair.c:586:fnvpair_value_nvlist()Abort
trap
...

-- 
You are receiving this mail because:
You are the assignee for the bug.