Date: Thu, 5 Dec 2019 08:21:30 +0100 (CET) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= <trond.endrestol@ximalas.info> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Moving root on ZFS on GELI so GELI is no longer used Message-ID: <alpine.BSF.2.21.99999.352.1912050759190.5621@enterprise.ximalas.info> In-Reply-To: <20191204223149.A880630600A8@mailuser.nyi.internal> References: <20191204223149.A880630600A8@mailuser.nyi.internal>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Dec 2019 22:31-0000, Kralj Karlo wrote: > I selected the installer option for putting root on ZFS on GELI. > I want to switch the system so that GELI is not used. (That is, > the zpool should be on the disk directly.) > > I figure I will replicate the zpool (currently a mirror of two GELI > devices) to the new disk and also do something so that the boot stuff > is on the disk and the boot stuff does not point to the GELI disk. > The part I don't know how to do is changing the boot stuff. > > Are there directions on how to do this? If there is nothing specific, > could you suggest which manual pages I should read? man zfs, searching for zfs snapshot, zfs send, and zfs receive. My take usually is: 1. Make sure boot partitions are present and populated on the new disk(s). The same for any swap partitions. 2. Create a new pool. 3. Create a recursive snapshot from the top of the existing rootpool, e.g. zfs snap -r rootpool@transfer 4. Send and receive a replicating stream, e.g. zfs send -RLe rootpool@transfer | zfs recv -Fduv newpool The results of zfs send can be saved as a file and later transferred using zfs recv, if you prefer this over a pipeline. 5. Remove the recursive snapshots, e.g. zfs destroy -Rv rootpool@transfer zfs destroy -Rv newpool@transfer 6. Set the bootfs property, if necessary, e.g. zpool set bootfs=newpool/something newpool 7. Reboot using newpool. -- Trond.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.99999.352.1912050759190.5621>