Date: Sun, 12 Jun 2022 14:05:08 -0400 From: "Kevin P. Neal" <kpn@neutralgood.org> To: David Mehler <dave.mehler@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 13.1-RELEASE, zfs, and migrating data to a larger volume Message-ID: <YqYq1O4oxOGgE97G@neutralgood.org> In-Reply-To: <CAPORhP4B8S7e4c=T2F3XJ%2BJPDEU78Sr-=oCH4TVdVosqa728YA@mail.gmail.com> References: <CAPORhP4B8S7e4c=T2F3XJ%2BJPDEU78Sr-=oCH4TVdVosqa728YA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 12, 2022 at 01:56:44PM -0400, David Mehler wrote: > Hello, > > I'm going to skip what has brought me here but just ask my question. > Is it possible to take two zfs pools one with datasets one without, > the one with datasets is on the smaller volume, and clone/copy it to > the larger volume? I then want the smaller volume out of the picture > and the larger volume to be in place. Use zfs send and pipe the output to zfs receive. There's no requirement that the send and receive be on different machines -- this combination is typical for copying datasets to a different pool on the same machine. Mind the zfs receive option for not having datasets be mounted. Oh, and you'll need to snapshot the datasets you want to copy. The send will then only copy changes up to the snapshot. Single user mode can avoid having file changes not get copied over. -- Kevin P. Neal http://www.pobox.com/~kpn/ "A pig's gotta fly." - Crimson Pig
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YqYq1O4oxOGgE97G>