From owner-freebsd-stable@freebsd.org Wed Jul 31 16:06:21 2019 Return-Path: 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 8FCA0A2922 for ; Wed, 31 Jul 2019 16:06:21 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca (unknown [IPv6:2607:f3e0:0:3::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "pyroxene.sentex.ca", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 45zJFS73wJz412R for ; Wed, 31 Jul 2019 16:06:20 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:4a9:e86e:cf88:1178] ([IPv6:2607:f3e0:0:4:4a9:e86e:cf88:1178]) by pyroxene.sentex.ca (8.15.2/8.15.2) with ESMTPS id x6VG6Jpk057333 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO); Wed, 31 Jul 2019 12:06:19 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: extremely slow boot of RELENG_10 To: Eugene Grosbein , freebsd-stable@freebsd.org References: <9f30d6b9-81bb-769c-1a03-1e81277ae07d@sentex.net> <776e2f46-7a9e-c299-1c41-f2ca1ee90c32@grosbein.net> From: mike tancsa Message-ID: <46347af6-aa9f-a596-ef40-8693e3d1fcd7@sentex.net> Date: Wed, 31 Jul 2019 12:06:22 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <776e2f46-7a9e-c299-1c41-f2ca1ee90c32@grosbein.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 45zJFS73wJz412R X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::18 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.89 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sentex.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: smtp.sentex.ca]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.58)[-0.581,0]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.94), asn: 11647(-3.57), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2019 16:06:21 -0000 On 7/31/2019 11:59 AM, Eugene Grosbein wrote: > 31.07.2019 22:30, mike tancsa wrote: > >> While moving a pair of ZFS disks from an *very* old motherboard to a new >> one, I ran into an odd problem I had not seen before. The box was >> running just fine RELENG_10 from FreeBSD 10.1-STABLE #18 r279918 on 10yr >> old MB. Boots normally and expected speeds for old hardware/CPU. But on >> the new one, as soon as the |\-/|\ starts spinning, it looks like its >> 1/100th of the speed it should be. Unfortunately, we didnt have the >> luxury to wait for it to boot up all the way. We put the disks back in >> the old motherboard, did the RELENG_11 upgrade which included putting in >> the new boot blocks after zpool upgrade and then the disks booted just >> fine in the new box. We at first thought it was a hardware issue, but >> same behaviour on another new MB, new SATA cables etc etc. >> >> Any idea what was going on behind the scenes that might have caused it >> ? Is there something about the way the old boot blocks would interact >> poorly with new motherboards (in this case, a SuperMicro X11SSH-F) ? > Maybe it attempted dual-console boot involving output to serial port... > As upgrading to RELENG_11 and upgrading the boot blocks fixed the issue for this particular instance, I dont have the image anymore to boot / test from. However, it was just as slow on serial console as it was on the regular console.  I do have the files on an old snapshot #cd /.zfs/snapshot/7/boot # ls -l | egrep "pmb|boot" -r--r--r--   1 root  wheel  uarch   8192 Mar 12  2015 boot -r--r--r--   1 root  wheel  uarch    512 Mar 12  2015 boot0 -r--r--r--   1 root  wheel  uarch    512 Mar 12  2015 boot0sio -r--r--r--   1 root  wheel  uarch    512 Mar 12  2015 boot1 -r-xr-xr-x   1 root  wheel  uarch  33811 Mar 12  2015 boot1.efi -r--r--r--   1 root  wheel  uarch 819200 Mar 12  2015 boot1.efifat -r--r--r--   1 root  wheel  uarch   7680 Mar 12  2015 boot2 -r--r--r--   1 root  wheel  uarch   1185 Mar 12  2015 cdboot -r--r--r--   1 root  wheel  uarch  16016 Mar 12  2015 gptboot -r--r--r--   1 root  wheel  uarch  42128 Mar 12  2015 gptzfsboot -r--r--r--   1 root  wheel  uarch    512 Mar 12  2015 pmbr -r--r--r--   1 root  wheel  uarch 264192 Mar 12  2015 pxeboot -r--r--r--   1 root  wheel  uarch 300290 Mar 12  2015 userboot.so -r--r--r--   1 root  wheel  uarch  66048 Mar 12  2015 zfsboot I am more just trying to understand what might have been going on. I have a couple of other old RELENG_10 boxes in production still. If I had to swap out hardware without being able to do an OS upgrade, I want to understand how best to work around this issue (whatever it is) if possible     ---Mike