Re: rc.d/zpool runs before ada(4) attaches

From: Oleg Sidorkin <osidorkin_at_gmail.com>
Date: Tue, 1 Dec 2020 23:47:23 +0300
Tue, 1 Dec. 2020 г. в 23:24, tech-lists <tech-lists_at_zyxst.net>:
>
> On Tue, Dec 01, 2020 at 08:34:33AM -0700, Ian Lepore wrote:
> >On Tue, 2020-12-01 at 16:22 +0100, Ronald Klop wrote:
> >>
> >> You can define these in /boot/loader.conf:
> >> #kern.cam.boot_delay="10000" # Delay (in ms) of root mount for CAM
> >> bus
> >> #kern.cam.scsi_delay="2000" # Delay (in ms) before probing SCSI
> >>
> >> Maybe that helps.
> >>
> >> Ronald.
> >>
> >
> >Those settings control waiting before mounting root.  Harry's problem
> >is that root is mounted quickly, before other drives are ready for zfs.
> >
> >The zpool script waits for 'disks'.  It would be nice if the cam
> >subsystem had something like a sysctl it set to indicate when initial
> >probing for disks was done, then there could be an rc.d/camprobe script
> >with 'PROVIDE: disks' which waits for the probing to complete.
> >
> >-- Ian
>
> kern.cam.boot_delay should still fix it because what is required is a delay
> while the devices (all of the disks, zfs or not) get ready. Because root
> has to happen before disks/zfs.
> --
> J.

I've reported a similar problem here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242189 some time
ago.
I just added the patch that solves it for me by delaying startup until
CAM and USB scan is complete (that's overkill probably).


-- 
Oleg Sidorkin
Received on Tue Dec 01 2020 - 19:47:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC