Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 2021 10:29:33 +0200
From:      Andrea Brancatelli <abrancatelli@schema31.it>
To:        freebsd-stable@freebsd.org
Subject:   Slow iSCSI discovery on boot halting the boot process.
Message-ID:  <82d5a41ee73f2a9915a831bb5b891366@schema31.it>

next in thread | raw e-mail | index | archive | help
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"  

Usually we just press enter, press control-d, and the boot process
continues. 

The problem is that the machine cannot boot unattended. 

Those are some cfg files: 

[root@arsenico ~]# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/mirror/gm0s1a / ufs rw 1 1
/dev/mirror/gm0s1b none swap sw 0 0
md98 none swap sw,file=/usr/swap1,late 0 0
md99 none swap sw,file=/usr/swap0,late 0 0
/dev/mirror/gm0s1d /var ufs rw 2 2
/dev/mirror/gm0s1e /tmp ufs rw 2 2
/dev/mirror/gm0s1f /usr ufs rw 2 2
/dev/mirror/gm0s1g /repository ufs rw 2 2
fdesc /dev/fd fdescfs rw 0 0
/dev/multipath/Krypton /san_storage ufs rw,late 0 0 

As you see the filesystem is already flagged as "late"... 

[root@arsenico ~]# cat /etc/iscsi.conf 

Krypton_C0_P0 {
TargetName=iqn.1984-05.com.dell:powervault.md3200i.6782bcb0007496a2000000004f1e49ee
TargetAddress=10.40.3.200
} 

That's the SAN, we dropped the dual connection so maybe we could get rid
of geom_multipath if that is the problem, but... hey... 

[root@arsenico ~]# gmultipath list
Geom name: Krypton
Type: AUTOMATIC
Mode: Active/Active
UUID: 101b1867-c623-11e8-8bab-90e2ba021650
State: DEGRADED
Providers:
1. Name: multipath/Krypton
Mediasize: 15998753177088 (15T)
Sectorsize: 512
Mode: r1w1e1
State: DEGRADED
Consumers:
1. Name: da2
Mediasize: 15998753177600 (15T)
Sectorsize: 512
Mode: r2w2e2
State: ACTIVE 

[root@arsenico ~]# camcontrol devlist
<SEAGATE ST1000NM0001 PS04> at scbus0 target 5 lun 0 (pass0,da0)
<SEAGATE ST1000NM0001 PS04> at scbus0 target 6 lun 0 (pass1,da1)
<TSSTcorp DVD+-RW TS-L633J D150> at scbus3 target 0 lun 0 (cd0,pass2)
<DELL MD32xxi 0780> at scbus5 target 0 lun 0 (da2,pass3)
<DELL Universal Xport 0780> at scbus5 target 0 lun 1f (da3,pass4) 

Any interesting suggestions? 

Thanks a lot. 

-- 

Andrea Brancatelli
From owner-freebsd-stable@freebsd.org  Fri Apr 30 08:43:25 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 5E6975F6070
 for <freebsd-stable@mailman.nyi.freebsd.org>;
 Fri, 30 Apr 2021 08:43:25 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from titanio.schema31.it (titanio.schema31.it [62.77.63.156])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "titanio.pomona.schema31.it",
 Issuer "titanio.pomona.schema31.it" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4FWm9S20Jbz4WJw
 for <freebsd-stable@freebsd.org>; Fri, 30 Apr 2021 08:43:23 +0000 (UTC)
 (envelope-from abrancatelli@schema31.it)
Received: from smtp.schema31.it (localhost [127.0.0.1])
 by titanio.pomona.schema31.it (8.15.2/8.15.2) with ESMTP id 13U8hAiT095836
 for <freebsd-stable@freebsd.org>; Fri, 30 Apr 2021 10:43:10 +0200 (CEST)
 (envelope-from abrancatelli@schema31.it)
MIME-Version: 1.0
Date: Fri, 30 Apr 2021 10:43:05 +0200
From: Andrea Brancatelli <abrancatelli@schema31.it>
To: freebsd-stable@freebsd.org
Subject: Re: Slow iSCSI discovery on boot halting the boot process.
Organization: Schema31 s.r.l.
In-Reply-To: <82d5a41ee73f2a9915a831bb5b891366@schema31.it>
References: <82d5a41ee73f2a9915a831bb5b891366@schema31.it>
Message-ID: <96e3db30b08e0dffa6c383fd46cb3e6b@schema31.it>
X-Sender: abrancatelli@schema31.it
User-Agent: Roundcube Webmail/1.3.16
X-Rspamd-Queue-Id: 4FWm9S20Jbz4WJw
X-Spamd-Bar: ----
X-Spamd-Result: default: False [-4.00 / 15.00]; MID_RHS_MATCH_FROM(0.00)[];
 RBL_DBL_DONT_QUERY_IPS(0.00)[62.77.63.156:from];
 R_DKIM_ALLOW(-0.20)[schema31.it:s=gCloud]; ARC_NA(0.00)[];
 FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[];
 R_SPF_ALLOW(-0.20)[+ip4:62.77.63.156/28];
 MIME_GOOD(-0.10)[multipart/alternative,text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org];
 TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1];
 HAS_ORG_HEADER(0.00)[];
 SPAMHAUS_ZRD(0.00)[62.77.63.156:from:127.0.2.255];
 NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 DKIM_TRACE(0.00)[schema31.it:+];
 DMARC_POLICY_ALLOW(-0.50)[schema31.it,quarantine];
 NEURAL_HAM_SHORT(-1.00)[-1.000];
 NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[];
 MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[];
 ASN(0.00)[asn:20746, ipnet:62.77.32.0/19, country:IT];
 RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-stable]
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.34
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 08:43:25 -0000

On 2021-04-30 10:29, 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.

Geom multiparty is probably the best typo/autocorrect ever. 

---

Andrea Brancatelli
From owner-freebsd-stable@freebsd.org  Fri Apr 30 09:12: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 9B9125F76CF
 for <freebsd-stable@mailman.nyi.freebsd.org>;
 Fri, 30 Apr 2021 09:12:27 +0000 (UTC) (envelope-from ardovm@yahoo.it)
Received: from sonic304-21.consmr.mail.ir2.yahoo.com
 (sonic304-21.consmr.mail.ir2.yahoo.com [77.238.179.146])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4FWmpx3JR4z4XhB
 for <freebsd-stable@freebsd.org>; Fri, 30 Apr 2021 09:12:25 +0000 (UTC)
 (envelope-from ardovm@yahoo.it)
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yah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0RiDLw.T6Rp9DuGc7j2I7k.I1lIAJcWymRi8xv9w9dKDhlbhxK0SI1U8pccC1ZU
 BGz4.Nz6CEZPRRZD4y9jx5ttd3N5RcU8u_k0gQDO31DiwsK5hxy95GpqLHwxufaZ9OxZMrghaF4E
 WxWt_DUCc1_6qXCexa5ffb1zqXx2Hu3D.fgKB5Io3pHqotf2bfs4uuAG4zGmF1pQtk63ndIjCPI8
 ZTovpxs3S65YNBv4TNw9DWAK5VIRSLrC5bEyvUhn7t.DSr1bfthnf7J9kyKda5e5tk3jyFqqqq92
 aO3Uy.vRpdKCRsdlFAnKxwH5PyvbOJfZOfmAYDAYntCaK65R4MOqliiGXFbwARhN9JDXIRDbn8Ab
 V5SjOs34HByxsvij4xHPnAtE5YOPdZVLcfNGKBaZFCQ0RFJNq6F3WVS__ehVEKycf2xO.CHN5eF4
 xqTfg6cXiJ37yKT.9AjUMsB12gKoTs03OOnm3ODJW41NLKHOoAuJmZ.fZChBG4GWhRfclSxPaYq2
 JqGqpKyGg83mtK.RIvJwdaEKlfDsg6bWH6zOuvLbz_in_YLq5NBNRlEdNxnm0EzjlgOXzYsmTqv1
 B3fRJnw6ioi0SyPTHEGGrMDZMIlxblWV4GR5z7F4RNGbiZ0OHpc98htURaO_g83zfZQpFWhP3H2t
 RboTuTaxkuOiQovgMleokJoGrP4MaPdrvX_qDDlXrTWi8iYxjtLJ6tL9A3yq1OjKzduScoa2_BGR
 xTySSK2C2b0WXEDT9eQYUhG.4jKhaF9wsK6ih9W_DkXhP
X-Sonic-MF: <ardovm@yahoo.it>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic304.consmr.mail.ir2.yahoo.com with HTTP; Fri, 30 Apr 2021 09:12:23 +0000
Received: by kubenode544.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP
 Server) with ESMTPA ID 0fea429a2fb6130eadcf05968c7839a9; 
 Fri, 30 Apr 2021 09:12:20 +0000 (UTC)
Received: by nuvolo.localdomain (Postfix, from userid 1001)
 id DF02A12639B; Fri, 30 Apr 2021 11:12:17 +0200 (CEST)
Date: Fri, 30 Apr 2021 11:12:17 +0200
From: Arrigo Marchiori <ardovm@yahoo.it>
To: freebsd-stable@freebsd.org
Subject: Re: Slow iSCSI discovery on boot halting the boot process.
Message-ID: <YIvJ8QQC+b3OJ5nc@nuvolo>
References: <82d5a41ee73f2a9915a831bb5b891366@schema31.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <82d5a41ee73f2a9915a831bb5b891366@schema31.it>
X-Mailer: WebService/1.1.18138
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
 Apache-HttpAsyncClient/4.1.4 (Java/16)
X-Rspamd-Queue-Id: 4FWmpx3JR4z4XhB
X-Spamd-Bar: ---
X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.it];
 R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_NONE(0.00)[];
 DKIM_TRACE(0.00)[yahoo.it:+];
 DMARC_POLICY_ALLOW(-0.50)[yahoo.it,reject];
 NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[];
 RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+];
 FREEMAIL_ENVFROM(0.00)[yahoo.it];
 ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB];
 RBL_DBL_DONT_QUERY_IPS(0.00)[77.238.179.146:from];
 ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 R_DKIM_ALLOW(-0.20)[yahoo.it:s=s2048]; FROM_HAS_DN(0.00)[];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];
 MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1];
 SPAMHAUS_ZRD(0.00)[77.238.179.146:from:127.0.2.255];
 RCVD_IN_DNSWL_NONE(0.00)[77.238.179.146:from];
 RWL_MAILSPIKE_POSSIBLE(0.00)[77.238.179.146:from];
 MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2];
 MAILMAN_DEST(0.00)[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 09:12:27 -0000

Hello,

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.

This solves the issue for me on certain embedded systems, and when
trying to boot from cheap USB pen drives.

I hope this helps.

Best regards,
-- 
Arrigo



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