Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 09:43:26 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: mounting from zfs:zroot/ROOT/default failed with error 45
Message-ID:  <a9983106-c8c3-5d4d-f1c0-b90bff86d950@sentex.net>
In-Reply-To: <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net>
References:  <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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   




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?a9983106-c8c3-5d4d-f1c0-b90bff86d950>