From owner-freebsd-hackers@freebsd.org Mon Oct 12 12:50:39 2020 Return-Path: Delivered-To: freebsd-hackers@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 94D54436D40 for ; Mon, 12 Oct 2020 12:50:39 +0000 (UTC) (envelope-from meowthink@gmail.com) Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) (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 4C8z724RMqz4BNV for ; Mon, 12 Oct 2020 12:50:38 +0000 (UTC) (envelope-from meowthink@gmail.com) Received: by mail-ej1-x644.google.com with SMTP id u8so23032019ejg.1 for ; Mon, 12 Oct 2020 05:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wi8StsxbTsTdB0v06cptRe4WAXaIQTbZH+79hd/l0kc=; b=RPRzUv7oYcxAzALI6zj74RmTFy8XCbR6cJ2HTXEhHJy/7JZxVz3uCxnRNtHwqyhwdx NXr5AS13HOV7sZIwr0mzQqzxayVb9X8c/6ynY+OoV+wS22M29u8bv3UO0E31fHsq9r2C bz1YsfSKO6CcUSF2Gh+GDfIQvWRj/IDHiBeVmzWlhXou9c7nbJsg5Oovkee6u4DuxwZc Y/JjPcTIlTFwfTE2Oo2m/4hdKycTWMNqxaxifIOIosn+Ul7aS9brPXqQaFF9qmhZI5Fd 8qIUss/Q/CL36qaIScJjpV+e2c3McwRmDEOaU2vJMctAIQYbmoKPxPHZ2qNAWu25zIop iZTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wi8StsxbTsTdB0v06cptRe4WAXaIQTbZH+79hd/l0kc=; b=k5J8oXV0aOs9+NH/TUde55TpvPfkAw22eiK+HIPnO0ppIVk1IlAIdnzhVKOAMzLqVS /SbeUHH3lMzLPLpSIUW5cYduXVjOFhkXL+rawluvB6FHDkib3zo0xSszXT9RvqC+1Uaw +bHS1htNiQHpSHoBTM43gttBbDW6Udqob2ldNVJbAoRZ6OK9IOH84UXCe0Ytj6GqbXc4 zi/gnID+jGhadZny3uVoc+9fjOSEepaO8CRa6e02gON6o1grpScaQTjgxE3nTEllQzHs BosfrRoq5cxuMFUqUZnZNQHiWD+GLrqontqhND/tKJnBGondpX0pX27eWeJ+Byffjpxw jeVA== X-Gm-Message-State: AOAM531GV8SGlrVnWONA85M7V/ewqC81TnhmYgnxuIQ253//Vr7J3x+p IjOeeRVJLdLzzZhnY/sIM00Uc2z/ejAL3Tw3lUb+HijyVCg= X-Google-Smtp-Source: ABdhPJz6P3kxEqCRj7/XmHhRXq5wpvyFogh/zi56+gfTy1V9llDjzTczaOtzdv5xHWTWpDqeWwq7Rp6fZyHAv20IHwM= X-Received: by 2002:a17:906:4e19:: with SMTP id z25mr28919860eju.44.1602507036857; Mon, 12 Oct 2020 05:50:36 -0700 (PDT) MIME-Version: 1.0 References: <20201011033257.GB30207@rpi4.gilescoppice.lan> In-Reply-To: <20201011033257.GB30207@rpi4.gilescoppice.lan> From: Meowthink Date: Mon, 12 Oct 2020 20:50:25 +0800 Message-ID: Subject: Re: How this wired boot timing bug comes, init rc scripts or zfs? To: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4C8z724RMqz4BNV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RPRzUv7o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of meowthink@gmail.com designates 2a00:1450:4864:20::644 as permitted sender) smtp.mailfrom=meowthink@gmail.com X-Spamd-Result: default: False [-2.16 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.018]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.984]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::644:from]; NEURAL_HAM_SHORT(-0.16)[-0.161]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2020 12:50:39 -0000 On Sun, Oct 11, 2020 at 11:33 AM tech-lists wrote: > > On Sun, Oct 04, 2020 at 10:50:20AM +0800, Meowthink wrote: > >Hello hackers, > >Recently I installworld and rebooted a server, seems working, but my > >kerberized nfsd, precisely gssd, is not functional. > >At first I thought it may be a bug from stable, so I did some trivial > >tests, replacing the kernel with releng one, then the whole world, but > >found this is nothing related to the kernel, and triggers randomly > >when rebooting some recent stable/11 world (releng/11.4 seems fine). > >To dig it deeper, here is what the console showed when failing: > > Hi, > > I had a possibly similar problem (boot wanting to mount ZFS before usb > had finished recognising the hardware), and asked around. > The advice I got led to me putting this in /boot/loader.conf: > > vfs.root_mount_always_wait=1 # give usb time to settle before zfs > kern.cam.boot_delay="30000" # 30s delay for usb3 spinning rust I do think vfs.root_mount_always_wait will behave the same as ZFS and NFS root. And this is where the problem lies: why do my rc scripts run precisely between mounting / and /usr? > > ok a long boot time, but now everything's there as expected. My context > is a rasberry pi4b+(8GB) booting from microsd (ufs) with a 1Tb external > hard drive attached (which is zfs mounted) running -current r366312 with > a no-debug kernel. > > -- > J.