From owner-freebsd-questions@freebsd.org Mon Apr 8 20:11:06 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 9860B15675B3 for ; Mon, 8 Apr 2019 20:11:06 +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 C0D538A1F9 for ; Mon, 8 Apr 2019 20:11:05 +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 x38KAvoH047655; Mon, 8 Apr 2019 16:10:58 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: mounting from zfs:zroot/ROOT/default failed with error 45 (solved!) To: Carl Johnson , freebsd-questions@freebsd.org References: <98a58bad-56ea-c598-2944-e4c70c2841a3@sentex.net> <724a9bc6-4dd1-f383-b1c7-8cfb564c1bfd@cyberleo.net> <86ftqsqzbu.fsf@elm.localnet> From: Mike Tancsa 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 2gJHeQXe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3fj4ydpHCSaqKy5xd70A8D50PfZsFgkrsa5gdQhPiGGEdxhq/XSeAAnZ4uVLJKarH+mj5 MEhgZPEBWkGrbDZpezl9qbFcUem/uT9x8FYT/JIztMVh9qDcdP5tzANW5J7nvgXjska+VFGY ryZK4SPDczh74mn6GI/+RBi7OUzXXPgpPBrhS5FByjwCqjjsSpTjTds+NGIY Organization: Sentex Communications Message-ID: Date: Mon, 8 Apr 2019 16:10:56 -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: <86ftqsqzbu.fsf@elm.localnet> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: C0D538A1F9 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.47 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[sentex.net]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; SUBJECT_HAS_EXCLAIM(0.00)[]; MX_GOOD(-0.01)[cached: smtp.sentex.ca]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.94)[-0.936,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: Mon, 08 Apr 2019 20:11:06 -0000 On 4/8/2019 11:41 AM, Carl Johnson wrote: > Mike Tancsa writes: > >> However, there doesnt seem to be a way to create the pool with feature= s >> disabled. The man page seems to imply that as well, at least on FreeBS= D >> ? And trying to set it implies that as well. > At least on FreeBSD-12 there is the -d option for 'zpool create'. From= > the zpool manpage: > > -d Do not enable any features on the new pool. Individua= l > features can be enabled by setting their corresponding= > properties to enabled with the -o option. See > zpool-features(7) for details about feature properties= =2E > > Thanks so much, that did the trick!!!=C2=A0 This is great, it saves a gre= at deal of time being able to do this right on the file server.=C2=A0 I was = able to create the zfs device on RELENG_12, gzcat .. | zfs recv=C2=A0 it and t= hen boot up the new VM nice and quick. For the archives, here are the steps I did.=C2=A0 Starting with a backup = of the file system made with Send the contents of =C2=A0send -Rv zroot@fullsnapshot=C2=A0 to a file on a backup server. e.g. I did this over nfs send -Rv zroot@fullsnapshot > /nfsbackup/zroot.zfs cp -p /boot/gptzfsboot=C2=A0 /nfsbackup/gptzfsboot.releng10 cp -p=C2=A0 /boot/pmbr /nfsbackup/pmbr.releng10 On the nfs server where you are going to create the VM image suitable for importing into KVM truncate -s 1TB server.img mdconfig -f server.img gpart create -s gpt md0 gpart add -s 512 -t freebsd-boot md0 gpart add -s 1G -t freebsd-swap md0 gpart add -t freebsd-zfs md0 gpart bootcode -b pmbr.releng10 -p gptzfsboot.releng10 -i 1 md0 zpool create -d -f -o altroot=3D/mnt2 -O canmount=3Doff -m none zroot /de= v/md0p3 cat zroot.zfs | zfs recv -vF zroot zpool import -f -o altroot=3D/mnt2=C2=A0 zroot zpool set bootfs=3Dzroot/ROOT/default zroot zpool export zroot mdconfig -d -u 0 The resultant file server.img can then be imported into your hypervisor (in this case, KVM) ---Mike --=20 ------------------- Mike Tancsa, tel +1 519 651 3400 x203 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada =20