From owner-freebsd-fs@FreeBSD.ORG Mon Apr 7 13:43:17 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79C6FF1A for ; Mon, 7 Apr 2014 13:43:17 +0000 (UTC) Received: from potato.growveg.org (potato.growveg.org [62.49.247.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36F81F79 for ; Mon, 7 Apr 2014 13:43:17 +0000 (UTC) Received: from john by potato.growveg.org with local (Exim 4.82 (FreeBSD)) (envelope-from ) id 1WX9pK-00006V-Pc for freebsd-fs@freebsd.org; Mon, 07 Apr 2014 14:43:06 +0100 Date: Mon, 7 Apr 2014 14:43:06 +0100 From: John To: freebsd-fs@freebsd.org Subject: zfs - moving filesystem from one zpool to another Message-ID: <20140407134306.GA67619@potato.growveg.org> Mail-Followup-To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: John X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: john@potato.growveg.org X-SA-Exim-Scanned: No (on potato.growveg.org); SAEximRunCond expanded to false X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: freebsd-fs@freebsd.org List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2014 13:43:17 -0000 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) ? 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? thanks, -- John