Re: Slow iSCSI discovery on boot halting the boot process.
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=1 > > 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. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Slow iSCSI discovery on boot halting the boot process.
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=1 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 ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Slow iSCSI discovery on boot halting the boot process.
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 ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Slow iSCSI discovery on boot halting the boot process.
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.6782bcb0007496a24f1e49ee 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 at scbus0 target 5 lun 0 (pass0,da0) at scbus0 target 6 lun 0 (pass1,da1) at scbus3 target 0 lun 0 (cd0,pass2) at scbus5 target 0 lun 0 (da2,pass3) at scbus5 target 0 lun 1f (da3,pass4) Any interesting suggestions? Thanks a lot. -- Andrea Brancatelli ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"