From owner-freebsd-current@freebsd.org Sun Dec 13 10:18:16 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 59E184B459E for ; Sun, 13 Dec 2020 10:18:16 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cv0pb2T3Vz3QVv for ; Sun, 13 Dec 2020 10:18:15 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x335.google.com with SMTP id x22so11170841wmc.5 for ; Sun, 13 Dec 2020 02:18:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=H2rtDTujQjCmUGLTF+7R+0g7YaYjHiLZ3Or7eCU2UnI=; b=sABkCDgdXN5OScjbTgtgVxF4fMHPWhq72uufCDJzjXEi+upOc6nzlFWepzIIQq8KRF mesWpJTVujVQcASiRs2feiumbzY8B3cq9rx9sPa6Roov/pm+gjR9Ydv7plfei8J3ZRT/ W7gLUAe5nP2Wy2Ek9UomzYelYAHqMYZUBwJQeyjWOzLcN0t6YtyMZPLnpymcb8QUv/W2 DS67Otn45MPzKe+OwEbOH6HRyTDYVnPJ0BklMRzMoItCSQ1BZ9uGuGDyIY8o0qW8ucgd A3lTmOhGg/bzBDrS5+UozcvCIpbCLjV+hsBepN9EWvr2yAGa2LiS9pwrv+EvhbndCz6l TfjQ== X-Gm-Message-State: AOAM530bJWpVMNT0+lBaRUUa+iax2lFbxy8IRpLDWpYqSM3vptkgcNE2 WJWlJA7K2zCy3q8AEXogXo8Gi+Rrk0LNKw== X-Google-Smtp-Source: ABdhPJyJ+sqzs6US87ibEkbIzW8y/pb/7JNsij6nSsj5PXMz6XoOrZhmugyK2CJQRwc/6dxQmWc+wA== X-Received: by 2002:a1c:1fc4:: with SMTP id f187mr22353069wmf.107.1607854693578; Sun, 13 Dec 2020 02:18:13 -0800 (PST) Received: from [192.168.1.8] (79-66-147-78.dynamic.dsl.as9105.com. [79.66.147.78]) by smtp.gmail.com with ESMTPSA id h98sm27934501wrh.69.2020.12.13.02.18.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Dec 2020 02:18:12 -0800 (PST) Subject: =?UTF-8?Q?kern=2ecam=e2=80=a6delay=2c_suspend_and_ZFS_pools_on_USB_?= =?UTF-8?Q?=28was=3a_rc=2ed/zpool_runs_before_ada=284=29_attaches=29?= To: freebsd-current@freebsd.org References: <1439301337.11.1606815206810@localhost> <08815f92-742c-2934-e746-fd04ca9b4e16@omnilan.de> <286917313.21.1606836130991@localhost> <786faeee90e79aa0175b298ec859265ff57a3129.camel@freebsd.org> From: Graham Perrin Message-ID: Date: Sun, 13 Dec 2020 10:18:11 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4Cv0pb2T3Vz3QVv X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.995]; RECEIVED_SPAMHAUS_PBL(0.00)[79.66.147.78:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::335:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::335:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::335:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2020 10:18:16 -0000 On 01/12/2020 20:23, tech-lists wrote: > 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. Where a pool is on a USB 2.0 device: might kern.cam.boot_delay, or some other delay, negate the need to export the pool before suspending the computer? Related: