From owner-freebsd-questions@freebsd.org Fri Apr 5 13:43:29 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68A7115779A0 for ; Fri, 5 Apr 2019 13:43:29 +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 824D8919D0 for ; Fri, 5 Apr 2019 13:43:28 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [192.168.43.26] ([192.168.43.26]) by pyroxene.sentex.ca (8.15.2/8.15.2) with ESMTP id x35DhSKo020365 for ; Fri, 5 Apr 2019 09:43:28 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: mounting from zfs:zroot/ROOT/default failed with error 45 From: Mike Tancsa To: freebsd-questions References: <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net> Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; prefer-encrypt=mutual; keydata= mQENBEzcA24BCACpwI/iqOrs0GfQSfhA1v6Z8AcXVeGsRyKEKUpxoOYxXWc2z3vndbYlIP6E YJeifzKhS/9E+VjhhICaepLHfw865TDTUPr5D0Ed+edSsKjlnDtb6hfNJC00P7eoiuvi85TW F/gAxRY269A5d856bYrzLbkWp2lKUR3Bg6NnORtflGzx9ZWAltZbjYjjRqegPv0EQNYcHqWo eRpXilEo1ahT6nmOU8V7yEvT2j4wlLcQ6qg7w+N/vcBvyd/weiwHU+vTQ9mT61x5/wUrQhdw 2gJHeQXeDGMJV49RT2EEz+QVxaf477eyWsdQzPVjAKRMT3BVdK8WvpYAEfBAbXmkboOxABEB AAG0HG1pa2UgdGFuY3NhI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bDZpezl9qbFcUem/uT9x8FYT/JIztMVh9qDcdP5tzANW5J7nvgXjska+VFGY ryZK4SPDczh74mn6GI/+RBi7OUzXXPgpPBrhS5FByjwCqjjsSpTjTds+NGIY Organization: Sentex Communications Message-ID: Date: Fri, 5 Apr 2019 09:43:26 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 824D8919D0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; 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 [-1.39 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; NEURAL_HAM_LONG(-0.99)[-0.993,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[sentex.net]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: smtp.sentex.ca]; NEURAL_HAM_SHORT(-0.86)[-0.858,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-1.73)[ipnet: 2607:f3e0::/32(-4.95), asn: 11647(-3.60), 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]; MID_RHS_MATCH_FROM(0.00)[]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2019 13:43:29 -0000 On 4/5/2019 9:00 AM, Mike Tancsa wrote: > I have a couple of ZFS boxes I want to upgrade from RELENG_10 to > RELENG_11 and before doing it, I wanted to clone them into a VM to test > out the upgrades. In the past, this was easy enough using actual > hardware. However, I cant seem to get it going in a VM. I tried doing > the following steps Actually, I wonder if the issue is that I am doing the zpool create on a RELENG_12 box.... So when I try and boot that zpool that was freshly created on RELENG_12 with a RELENG_10 kernel, I am running into issues. > truncate -s 999G server.img > mdconfig -f server.img > gpart create -s gpt md0 > gpart add -s 222 -t freebsd-boot md0 > gpart add -t freebsd-zfs md0 > gpart bootcode -b /tmp/pmbr -p /tmp/gptzfsboot -i 1 md0    #these files > are taken from the RELENG_10 image > zpool create -f -o altroot=/mnt2 -O canmount=off -m none zroot /dev/md0p2 > gzcat zroot.0.gz | zfs recv -vF zroot > zpool import -f -o altroot=/mnt2  zroot > zpool set bootfs=zroot/ROOT/default zroot > zpool export zroot > mdconfig -d -u0 > > Then I imported the file server.img into a KVM instance.  > > and everything starts to boot fine, but then fails with > > mounting from zfs:zroot/ROOT/default failed with error 45 > > if I hit ? it shows > > List of GEOM managed disk devices: > > vtbd0p2 vtbd0p1 vtbd0 > > mountroot> > > if I try > > mountroot> zfs:zroot > Trying to mount root from zfs:zroot [] ... > Mounting from zfs:zroot failed with error 45 > > same with zfs:zroot/ROOT/default > > error 45. > > >     ---Mike > > -- ------------------- Mike Tancsa, tel +1 519 651 3400 x203 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada