Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2019 01:09:07 +0000
From:      tech-lists <tech-lists@zyxst.net>
To:        FreeBSD <freebsd-stable@freebsd.org>, freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: ufs to zfs conversion in a freebsd guest
Message-ID:  <20190325010906.GA9597@desktop.local>
In-Reply-To: <CAOtMX2h8TY9UA4RxJvZXVU0NLt9DMjKnLnBMfMScWAj_=fK%2B9A@mail.gmail.com>
References:  <20190324215638.GA1486@rpi3.zyxst.net> <CAOtMX2h8TY9UA4RxJvZXVU0NLt9DMjKnLnBMfMScWAj_=fK%2B9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190325010906.GA9597>