From owner-freebsd-fs@FreeBSD.ORG Mon Apr 7 13:51:50 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D214434D for ; Mon, 7 Apr 2014 13:51:50 +0000 (UTC) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B1AAD6 for ; Mon, 7 Apr 2014 13:51:50 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id wo20so6597333obc.33 for ; Mon, 07 Apr 2014 06:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lAs+vNgIAFzpil7aYlbsf3gA5PMBYGUnM6Jd1K1qiDg=; b=KeEDyLAY8BZ+/JtcrsEckFFqJ0MCNsTh4jRDJh0xOvn8wkB0bYpHl4UDMM683cB7Iw PjTbnZzzu+4giNT+lvhZg5qRkDiC6/g43TSwuoXkuZac2DSv/6lvJ3QLh5A28AgkBiJD QdEQkRjbjofO+C/v5x6nLDKcNAuB4RgcqdRL+/8lIIvVa3sqrlkPmKG08AAZV8NbN1ln gGnhpNOTJdNHmRInvBCySWxHXOF1aHJI3RGj2t8L/OUiG23jBiRxS+5GWSMK+qkzhwYy ogTx/X8jUOtIwYZU8PzpKp68SBRleK6UIjIXKQnXYI8w3AsK4dBvO3bSuiXW6U1bq/iB 4BQw== MIME-Version: 1.0 X-Received: by 10.60.161.101 with SMTP id xr5mr1195856oeb.71.1396878709637; Mon, 07 Apr 2014 06:51:49 -0700 (PDT) Received: by 10.76.12.34 with HTTP; Mon, 7 Apr 2014 06:51:49 -0700 (PDT) In-Reply-To: <20140407134306.GA67619@potato.growveg.org> References: <20140407134306.GA67619@potato.growveg.org> Date: Mon, 7 Apr 2014 15:51:49 +0200 Message-ID: Subject: Re: zfs - moving filesystem from one zpool to another From: Andreas Nilsson To: "freebsd-fs@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 13:51:51 -0000 On Mon, Apr 7, 2014 at 3:43 PM, John wrote: > Hello list, > > For other reasons I had to install pc-bsd 10 rather than the regular > freebsd on my new desktop. Unfortunately it insisted on installing to > the first device which is a ssd (110GB). It makes its own zpool called > "tank" and everything gets installed there. > > Now, while it's great that some stuff is there on the ssd like / /boot > and /root /var and /tmp, I'm rather less enamoured that /usr/ports /usr/src > and /home are there too. > > With the hdds in the machine (ada1 ada2 and ada3) I made a raidz array > that made 7.2TB usable space. This zpool is called "storage". I'd like > to put the not-so-active filesystems on the zpool called "storage". A > couple of issues though: > > 1. /usr/local is not it's own filesystem. Is it a case of just doing a > recursive copy on the existing /usr/local into a newly created > /storage/usr/local and setting the mountpoint as /usr/local (after > deleting the old /usr/local) ? > Having usr/local as a separate fs works. I would not use cp to move the files, as symlinks are not preserved. > > 2. /usr/ports IS it's own filesystem on tank: > tank/usr/ports on /usr/ports (zfs, local, nfsv4acls) > > Can I zfs export this from tank and then zfs import it into storage ? If > so, do I need to set a mountpoint? > export/import are commands that work on zpool not zfs. You want send and receive. zfs snapshot tank/usr/ports@now zfs send tank/usr/ports@now | zfs recv storage/ports #or whatever you want the name to be. Parents dataset must exist. zfs set mountpoint=/usr/ports storage/ports Best regards Andreas > > thanks, > -- > John > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >