From nobody Wed Jun 16 21:21:59 2021 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7AB7611D5AC2 for ; Wed, 16 Jun 2021 21:22:00 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [IPv6:2607:f3e0:0:3::19]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G4yn33Pmgz3lHd for ; Wed, 16 Jun 2021 21:21:59 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:45fc:4f8b:9f53:6f0b] ([IPv6:2607:f3e0:0:4:45fc:4f8b:9f53:6f0b]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 15GLLwfF019130 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Wed, 16 Jun 2021 17:21:58 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: boot fail (panic: free: guard2 fail @ 0x7c237010 + 2061 from unknown:0 ) From: mike tancsa To: FreeBSD-STABLE Mailing List References: Message-ID: Date: Wed, 16 Jun 2021 17:21:59 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4G4yn33Pmgz3lHd 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::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [1.98 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f3e0:0:3::19:from]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[sentex.net]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f3e0:0:3::19:from:127.0.2.255]; NEURAL_SPAM_SHORT(0.98)[0.976]; RCVD_IN_DNSWL_NONE(0.00)[2607:f3e0:0:3::19:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] X-ThisMailContainsUnwantedMimeParts: N Still not sure what the issue is, but I was able to work around it by switching to EFI boot.  Just had to adjust the partition info, copy /boot/lua onto the restored image and adjust loader.conf accordingly. But at least it I can tick this server off the list :)     ---Mike On 6/16/2021 12:41 PM, mike tancsa wrote: > As part of our backup strategy, I am trying to do bare metal restores of > our servers.  So far so good, but one of our older ones is failing with > >                                                                            > BTX loader 1.00  BTX version is > 1.02                                            > Consoles: internal > video/keyboard                                               > BIOS drive C: is > disk0                                                          > BIOS 607kB/1975840kB available > memory                                           >                                                                                 > > FreeBSD/x86 ZFS enabled bootstrap loader, Revision > 1.1                          > (Tue Jul 17 15:23:15 EDT 2018 > mdt@fileserver1.sentex.ca)                          > panic: free: guard2 fail @ 0x7c237010 + 2061 from > unknown:0                     > --> Press a key on the console to reboot <--                > > > This is an older releng11 r336457 box that I am trying to restore. I am > doing the restoration on RELENG13. I am doing a zpool create -d and just > enable lz4. I am guessing there is something about that old pool that > will not work ? Every other server I have done has worked really well, > but none are as old as this guy.  Any ideas how to narrow this down ? > > I am making it as follows > > gpart create -s gpt $DESTDEVICE > gpart add -a 4k -s 512k -t freebsd-boot $DESTDEVICE > gpart add -a 4k  -s 8G -t freebsd-swap -l swap1 $DESTDEVICE > gpart add -a 4k  -t freebsd-zfs -l $DISKNAME $DESTDEVICE > gpart bootcode -b /boot-releng11/pmbr -p /boot-releng11/gptzfsboot -i 1 > $DESTDEVICE > > gnop create -S 4096 /dev/gpt/$DISKNAME > > zpool create -d -f -o altroot=/mnt -o feature@lz4_compress=enabled -o > cachefile=/var/tmp/zpool.cache $POOLNAME /dev/gpt/$DISKNAME.nop > zpool export $POOLNAME > gnop destroy /dev/gpt/$DISKNAME.nop > > zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache $POOLNAME > > > > the live machine shows > >  zdb -v > fileserver1: >     version: 5000 >     name: 'fileserver1' >     state: 0 >     txg: 23498113 >     pool_guid: 10657256123199195564 >     hostid: 3022456803 >     hostname: '' >     com.delphix:has_per_vdev_zaps >     vdev_children: 1 >     vdev_tree: >         type: 'root' >         id: 0 >         guid: 10657256123199195564 >         create_txg: 4 >         children[0]: >             type: 'raidz' >             id: 0 >             guid: 18123299127602057786 >             nparity: 1 >             metaslab_array: 40 >             metaslab_shift: 34 >             ashift: 12 >             asize: 1931688804352 >             is_log: 0 >             create_txg: 4 >             com.delphix:vdev_zap_top: 35 >             children[0]: >                 type: 'disk' >                 id: 0 >                 guid: 9163277686889746146 >                 path: '/dev/ada0p3' >                 whole_disk: 1 >                 DTL: 197 >                 create_txg: 4 >                 com.delphix:vdev_zap_leaf: 36 >             children[1]: >                 type: 'disk' >                 id: 1 >                 guid: 8474459820264337096 >                 path: '/dev/ada1p3' >                 whole_disk: 1 >                 DTL: 196 >                 create_txg: 4 >                 com.delphix:vdev_zap_leaf: 37 >             children[2]: >                 type: 'disk' >                 id: 2 >                 guid: 14194255123576696065 >                 path: '/dev/ada2p3' >                 whole_disk: 1 >                 DTL: 195 >                 create_txg: 4 >                 com.delphix:vdev_zap_leaf: 38 >             children[3]: >                 type: 'disk' >                 id: 3 >                 guid: 15226426451126911594 >                 path: '/dev/ada3p3' >                 whole_disk: 1 >                 DTL: 194 >                 create_txg: 4 >                 com.delphix:vdev_zap_leaf: 39 >     features_for_read: >         com.delphix:hole_birth >         com.delphix:embedded_data > >