From nobody Sun Jun 12 18:05:08 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 681C1836CC2 for ; Sun, 12 Jun 2022 18:05:16 +0000 (UTC) (envelope-from kpn@neutralgood.org) Received: from gunsight1.neutralgood.org (gunsight1.neutralgood.org [IPv6:2607:f758:2280:1:d6be:d9ff:feac:a1e9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gunsight1.neutralgood.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LLjKR57kHz4s0K for ; Sun, 12 Jun 2022 18:05:15 +0000 (UTC) (envelope-from kpn@neutralgood.org) Received: from gunsight1.NeutralGood.ORG (localhost [127.0.0.1]) by gunsight1.neutralgood.org (8.16.1/8.15.2) with ESMTPS id 25CI584N056758 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 12 Jun 2022 14:05:09 -0400 (EDT) (envelope-from kpn@gunsight1.NeutralGood.ORG) Received: (from kpn@localhost) by gunsight1.NeutralGood.ORG (8.16.1/8.15.2/Submit) id 25CI58Fi056755; Sun, 12 Jun 2022 14:05:08 -0400 (EDT) (envelope-from kpn) Date: Sun, 12 Jun 2022 14:05:08 -0400 From: "Kevin P. Neal" To: David Mehler Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 13.1-RELEASE, zfs, and migrating data to a larger volume Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-No-archive: Yes X-Rspamd-Queue-Id: 4LLjKR57kHz4s0K X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kpn@neutralgood.org designates 2607:f758:2280:1:d6be:d9ff:feac:a1e9 as permitted sender) smtp.mailfrom=kpn@neutralgood.org X-Spamd-Result: default: False [-3.09 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-0.80)[-0.802]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[neutralgood.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-questions]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13649, ipnet:2607:f758::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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