From owner-freebsd-fs@freebsd.org Mon Mar 25 01:09:13 2019 Return-Path: Delivered-To: freebsd-fs@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 F352A154BE06; Mon, 25 Mar 2019 01:09:12 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8774E70BD4; Mon, 25 Mar 2019 01:09:11 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7DB3D21111; Sun, 24 Mar 2019 21:09:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 24 Mar 2019 21:09:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=iSAjegMgwaPgztheJOV/bv3Wpcy VVWt05S5fF1YZMFo=; b=LE0d7S6SNsua/oYj3rxGpjllZH+AcPBzN306uscDSTW 4+mHCZwAgHTnEOYTRVX+t3Qee4PaoWP45KaQBHKm34YV+fbqm+wm64whX5FlPij1 DbxgAqUUUZHNY1EzeamVnZ41TSbqS/H0TS+WYEMkMiXQ+6rjy6Fao3m1YPH/Xz7T ApgjnDLP5a9hJEhM+ZDrBeUYsnBf6DJ4Ih5HwzXwORnm6C3ZS/G8BzUFq0mgw/nZ jSTurOwmr7ELxTZ0MQ6b1Kov4ul4UfKPCblYmJ/2jsMXDZdJinMxhgqjTeX2O3EQ PUcS4VbvUBw/DKAHK/b/9YhKntfJCCD50AIyHTdkyeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=iSAjeg MgwaPgztheJOV/bv3WpcyVVWt05S5fF1YZMFo=; b=RO961iX5CZNGpadTPOsaKk BrIEBmYJqgLkla3sJFxZlFz5rTYLc9mwmAP+SOeZ2ai6BQ72pM7cOlboopJnpY6Z 76QsqQU2UaaK+yGz0ANvAIrYqKLaM6yt2XaZHMt9HwamIHBv+5RpHQpaEHC9YB+D JDpvl7nbAxqIq/xJ25pi+SI6Q1AJX3KpccTwRiRZWIOR50amXi9BaEKZVRY1HRq0 xrOMvVzvO7cNZmC/7yK48KTthU3ILCMtNVU7wbQNX66MDMU3A3ddtFgvBBEoygI6 jwFqD0UejVvlSAvfCc12O79/zo91LWk2S54mmB6h+2r56DvQX9vxD91Wqp4Uxzig == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrjeeigdduleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehgtd erredtredunecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshes iiihgihsthdrnhgvtheqnecukfhppeekvddrjedtrdeluddrleejnecurfgrrhgrmhepmh grihhlfhhrohhmpehtvggthhdqlhhishhtshesiiihgihsthdrnhgvthenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from desktop.local (parsley.growveg.org [82.70.91.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 93CBFE46AB; Sun, 24 Mar 2019 21:09:09 -0400 (EDT) Date: Mon, 25 Mar 2019 01:09:07 +0000 From: tech-lists To: FreeBSD , freebsd-fs Subject: Re: ufs to zfs conversion in a freebsd guest Message-ID: <20190325010906.GA9597@desktop.local> Mail-Followup-To: FreeBSD , freebsd-fs References: <20190324215638.GA1486@rpi3.zyxst.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 8774E70BD4 X-Spamd-Bar: --------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm2 header.b=LE0d7S6S; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=RO961iX5; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.27 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-9.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm2,messagingengine.com:s=fm2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[zyxst.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: in2-smtp.messagingengine.com]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.96)[-0.959,0]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; IP_SCORE(-3.54)[ip: (-9.63), ipnet: 66.111.4.0/24(-4.61), asn: 11403(-3.42), country: US(-0.07)]; RCVD_IN_DNSWL_LOW(-0.10)[27.4.111.66.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2019 01:09:13 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 24, 2019 at 04:16:32PM -0600, Alan Somers wrote: >Yes, but it's probably not worth the effort. Easier to spin up 2nd vm >and copy everything over. Here is what you'd have to do: Yeah the problem we have is that option is unavailable to us and we don't have access to the host.=20 >1) shrink the root filesystem with resizefs. >2) shrink it's partition with gpart.=C2 If it's not the last partition >on the disk, then you'll have to relocate the last (presumably swap) >partition. >3) create a new zfs partition. >4) create a new zfs pool. >5) create all of the various zfs datasets just like the installer >does. >6) copy over everything from / to the zfs partition except for /boot. >7) configure loader.conf to boot from zfs. >Assuming, that is, that >your VM system even runs the regular boot loader. and that's a big assumption >8) reboot and pray. >9) spin up a new VM anyway, since you inevitably screwed up >something. >Good luck. Yeah you're right. It's a lot of work that could go wrong at any stage. At least there's mksnap_ffs ;) thanks for clarifying --=20 J. --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAlyYKihfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYy N0RFRDVBMUM1NkQ3NTA5Q0JFRkY3RkIzQ0EzQjQyMTE3MzM0MDUACgkQs8o7QhFz NAWWOhAAojw5e8i+BgDResJ3Kc6zTsB4NE5ClMazV2qzMJzKH33E3uUomChQvXjM 6h1DLU0kk66FXa5s4tO9Cjgwqm+9Zf4XBTugjiTi710vN0/QB0/3DjUn7SBmolDJ R2FdkTNPzI70BoW2rNI4SeHEfo/OvNZzVtVudBe2gZXnY22W1v653z2R5UsAypWb NJqW2dYguuSXnDt1MCBh3JBDl2LnhW8Fzaj2/5ekvMAMcFoh9/B2uisJHhNWqLo/ whVMnmqAk4/524Ek13rtGRvaiMhRJGqgjqLVvbzpzfWczlkGOSBuIZgs0pS8Sv9r kNfRcKXclPN9DTxUFJmxnwroMaKESlXWnt/AHd5F8GvoNq7z8AV8OhRkcrCxEMQr NT52MFnkL6C3BVuU4m1gjBl8EHC4u53QgIsFX5qHyE7i2PYy09RJ0H7I3d6PDzm9 j5orqVUO9n07HKumkQx4k/IO6cNXdU61JPM7Xw9DTkffpKha8TPAWnovOY8MDBAN 1JVx2Qr1/UeGD6w9x+vbbIu3oM40/Fk2pQUq91d0s1+OOuqLHNYQT9ftrim71u2R KfVoH3dkJyNYUwUow4IEuOn5/FqUaNE6WajAi6bbJn1LY6gTQUySVqLW89pMdVgG t2VvMlktGIHuQvrjNpzvWNr3QMob2Q5zqPsGBYAmYYozermJuTo= =Kxyk -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--