Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2021 11:44:01 +0200
From:      Andrea Brancatelli <abrancatelli@schema31.it>
To:        Arrigo Marchiori <ardovm@yahoo.it>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Slow iSCSI discovery on boot halting the boot process.
Message-ID:  <8b2e4b15f8fe37200e8860584d09d115@schema31.it>
In-Reply-To: <YIvJ8QQC%2Bb3OJ5nc@nuvolo>
References:  <82d5a41ee73f2a9915a831bb5b891366@schema31.it> <YIvJ8QQC%2Bb3OJ5nc@nuvolo>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-04-30 11:12, Arrigo Marchiori via freebsd-stable wrote:

> On Fri, Apr 30, 2021 at 10:29:33AM +0200, Andrea Brancatelli via freebsd-stable wrote:
> 
>> Hello,  
>> 
>> I'm having an annoying problem with FreeBSD 12.2-RELEASE-p6, iscsid,
>> geom multiparty, a Dell MD3200i and fstab. 
>> 
>> Long story short, iSCSI login/connection/whatever is slower than the
>> boot process and the machine always get stuck with "cannot find
>> /san_storage (/dev/multipath/...) please enter /bin/sh location"
> 
> Did you try putting in /boot/loader.conf:
> kern.cam.boot_delay=10000
> 
> It should wait for 10 seconds before attempting to mount the root
> partition.

OK, I've put it in /boot/loader.conf, let's see if it helps. 

Unfortunately it's a production machine so I cannot reboot it now to try
it. 

Thanks for the suggestion.
From owner-freebsd-stable@freebsd.org  Fri Apr 30 10:29:27 2021
Return-Path: <owner-freebsd-stable@freebsd.org>
Delivered-To: freebsd-stable@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 183515F9EE7;
 Fri, 30 Apr 2021 10:29:27 +0000 (UTC)
 (envelope-from yasu@utahime.org)
Received: from maybe.home.utahime.org (gate.home.utahime.org [183.180.29.210])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4FWpWn25Rdz4cYC;
 Fri, 30 Apr 2021 10:29:24 +0000 (UTC)
 (envelope-from yasu@utahime.org)
Received: from eastasia.home.utahime.org (eastasia.home.utahime.org
 [192.168.174.1])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384)
 (No client certificate requested)
 by maybe.home.utahime.org (Postfix) with ESMTPS id 672B8947D;
 Fri, 30 Apr 2021 19:29:12 +0900 (JST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org;
 s=maybe2019112701; t=1619778552;
 bh=fjibVD199KXj2pNfXSW5RlpzEIZ8Uv/q4KWn5WMPb2I=;
 h=Date:To:Subject:From:In-Reply-To:References;
 b=COwbdCRuax7PmNiI4BpZHMDCg3DGPfPEEVmMqJ9BGL7AJJpcohHOe3aRR3ZYLh/dY
 LR48uCvAhdNHzpWMM85lJ8BwPHVv5EzizweKmLElABdoUEmObKeJAyHyBpLjMMncVy
 KLwvLydWPsi+K46uiXsC7ENauqF4dUSfFdL38o7x/B7M3LCQYSgCJfhCbW6F5RJkhp
 r8CGyuQ5m2FUte1ihYhBiaDIXT5XFj9qYsgnFQuKAoxvRa8zH6cQBxTorNmDPVI6vQ
 wtLGmIvAZKml0CQcDLmJEkWV130myMeEZNMEoCmnbRovCTP4HJf5cceDgrnTtvATN1
 /CxQdnlOlxXlg==
Received: from localhost (rolling.home.utahime.org [192.168.174.11])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384)
 (No client certificate requested)
 by eastasia.home.utahime.org (Postfix) with ESMTPSA id B51802064E;
 Fri, 30 Apr 2021 19:29:09 +0900 (JST)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 0.103.2 at eastasia.home.utahime.org
Date: Fri, 30 Apr 2021 19:28:30 +0900 (JST)
Message-Id: <20210430.192830.81070476206975927.yasu@utahime.org>
To: freebsd-ports@freebsd.org, freebsd-stable@freebsd.org
Subject: Re: How to make 'named' rc script invokded earlier at boot time
From: Yasuhiro Kimura <yasu@utahime.org>
In-Reply-To: <202104300925.13U9P4me001645@nuc.oldach.net>
References: <20210430.171510.1646879613648433205.yasu@utahime.org>
 <202104300925.13U9P4me001645@nuc.oldach.net>
X-Mailer: Mew version 6.8 on Emacs 27.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4FWpWn25Rdz4cYC
X-Spamd-Bar: /
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=COwbdCRu;
 dmarc=none;
 spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates
 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org
X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 MV_CASE(0.50)[];
 R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org];
 TO_DN_NONE(0.00)[];
 HFILTER_HELO_IP_A(1.00)[maybe.home.utahime.org];
 HFILTER_HELO_NORES_A_OR_MX(0.30)[maybe.home.utahime.org];
 RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[utahime.org:+];
 RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 RBL_DBL_DONT_QUERY_IPS(0.00)[183.180.29.210:from];
 ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP];
 ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain];
 DMARC_NA(0.00)[utahime.org];
 SPAMHAUS_ZRD(0.00)[183.180.29.210:from:127.0.2.255];
 MID_CONTAINS_FROM(1.00)[]; RCVD_TLS_ALL(0.00)[];
 MAILMAN_DEST(0.00)[freebsd-ports,freebsd-stable]
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-stable>, 
 <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable/>;
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
 <mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Apr 2021 10:29:27 -0000

From: b56fpu@oldach.net (Helge Oldach)
Subject: Re: How to make 'named' rc script invokded earlier at boot time
Date: Fri, 30 Apr 2021 11:25:03 +0200 (CEST)

> Looks like this is caused by security/trousers which has "BEFORE: named hastd". This port had been touched 3 weeks ago.

You provide me very good hint!

On my home server security/trousers and emulators/tpm-emulator are
installed as dependencies of security/gnutls. They install
/usr/local/etc/rc.d/tcsd and /usr/local/etc/rc.d/tpmd respectivley.
And there is circular dependency between these 2 rc srcipts and
/usr/local/etc/rc.d/named.

----------------------------------------------------------------------
root@eastasia[1067]# rcorder /etc/rc.d/* /usr/local/etc/rc.d/* > /dev/null
rcorder: file `/usr/local/etc/rc.d/tcsd' is before unknown provision `kerberos'
rcorder: Circular dependency on file `/usr/local/etc/rc.d/named'.
rcorder: Circular dependency on provision `fake_prov_00000004': /usr/local/etc/rc.d/tcsd -> /usr/local/etc/rc.d/tpmd -> /etc/rc.d/SERVERS -> /usr/local/etc/rc.d/named -> /usr/local/etc/rc.d/tcsd.
rcorder: `/usr/local/etc/rc.d/named' was seen in circular dependencies for 1 times.
rcorder: `/etc/rc.d/SERVERS' was seen in circular dependencies for 1 times.
rcorder: `/usr/local/etc/rc.d/tpmd' was seen in circular dependencies for 1 times.
rcorder: `/usr/local/etc/rc.d/tcsd' was seen in circular dependencies for 1 times.
rcorder: `/usr/local/etc/rc.d/named' was seen in circular dependencies for 1 times.
root@eastasia[1068]#
----------------------------------------------------------------------

If I temporally move /usr/local/etc/rc.d/tcsd to somewhere else and
add 'ntpdate' to 'BEFORE' line of /usr/local/etc/rc.d/named, then
'named' comes before 'ntpupdate' in the result of rcorder.

---
Yasuhiro Kimura



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8b2e4b15f8fe37200e8860584d09d115>