ufs to zfs conversion in a freebsd guest

tech-lists tech-lists at zyxst.net
Mon Mar 25 01:09:13 UTC 2019


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. 

>1) shrink the root filesystem with resizefs.
>2) shrink it's partition with gpart.  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
-- 
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20190325/97a3c022/attachment.sig>


More information about the freebsd-fs mailing list