Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2019 22:27:24 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>, FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: ufs to zfs conversion in a freebsd guest
Message-ID:  <CANCZdfq6KDf2mYRMda6WDuoAhCewuqPGBTJeEDTK85yRgVJ2DQ@mail.gmail.com>
In-Reply-To: <20190324215638.GA1486@rpi3.zyxst.net>
References:  <20190324215638.GA1486@rpi3.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 24, 2019, 3:58 PM tech-lists <tech-lists@zyxst.net> wrote:

> Hi
>
> [context is freebsd-12R-p3]
>
> Is it possible to convert a running freebsd guest from UFS to ZFS?
> It would need to be done in-situ, in the guest as there is no access to
> the host.
>
> The guest filesystem is:
>
> /dev/gpt/rootfs   /       ufs     rw      1       1
> /dev/gpt/swapfs  none    swap    sw      0       0
>

I'd create a custom image. First, disable swapping. Change the part type to
UFS. Put the image on the swap partition. It can be booted using the next
boot feature.  It would do a dump of rootfs to the cloud. Once dumped,
delete rootfs partition. Then add it back as a freebsd-zfs partition. The
image would then create and mount the zfs pool. Fetch the dump image and
use restore to put all the files back in place. Reboot. You are done...

Warner

thanks,
> --
> J.
>



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