From owner-freebsd-questions@freebsd.org Wed Sep 26 07:14:23 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4237A10A377E for ; Wed, 26 Sep 2018 07:14:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from smh-06.1blu.de (smh-06.1blu.de [178.254.0.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFF4F71CE8 for ; Wed, 26 Sep 2018 07:14:22 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1g541V-0005Qa-1F for freebsd-questions@freebsd.org; Wed, 26 Sep 2018 09:14:13 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1g541U-0004W9-Ug for freebsd-questions@freebsd.org; Wed, 26 Sep 2018 09:14:12 +0200 Date: Wed, 26 Sep 2018 09:14:12 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: using zfs for poudriere Message-ID: <20180926071412.GA16187@sh4-5.1blu.de> Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.org References: <20180925055713.GA13004@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2018 07:14:23 -0000 El día Wednesday, September 26, 2018 a las 11:59:16AM +0930, Shane Ambler escribió: > ... > > Yes you can use the space in your pool, I would say most people run > poudriere on the same pool that runs their whole system. > > Create a new zfs to hold your data, set the mountpoint to where you want > it. > > zfs create -o mountpoint=/home/me/zdata poudriere/mydata > > if you then zfs create poudriere/mydata/videos > it will mount as /home/me/zdata/videos unless you specify a new > mountpoint. Thanks for the information, Shane. I did: # zfs create -o mountpoint=/usr/home/guru/zdata poudriere/mydata # zfs create poudriere/mydata/r338641 # touch /home/guru/zdata/r338641/testfile # find /home/guru/zdata/ /home/guru/zdata/ /home/guru/zdata/r338641 /home/guru/zdata/r338641/testfile # mount ... poudriere/mydata on /usr/home/guru/zdata (zfs, local, nfsv4acls) poudriere/mydata/r338641 on /usr/home/guru/zdata/r338641 (zfs, local, nfsv4acls) $ ls -l /usr/home/guru/zdata/r338641 total 12994340 drwxr-xr-x 2 root wheel 2053 Sep 25 07:04 PKGDIR.20180920 -rw-r--r-- 1 root wheel 8590762496 Sep 24 16:50 memstick.img -r--r--r-- 1 root wheel 5806694495 Sep 24 22:47 r338641.tgz -rw-r--r-- 1 root wheel 0 Sep 26 07:24 testfile $ du -sh /usr/home/guru/zdata/r338641/* 7.0G /usr/home/guru/zdata/r338641/PKGDIR.20180920 7.4G /usr/home/guru/zdata/r338641/memstick.img 5.4G /usr/home/guru/zdata/r338641/r338641.tgz 512B /usr/home/guru/zdata/r338641/testfile ... and all seems to be fine. One more question: while normal UFS filesystem mounts are done (and stored between boots) in fstab(4), where is the ZFS mount configuration stored? matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ 📱 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub 13. August 2018: Manchmal möchte ich nun einen AUSREISEANTRAG stellen. August 13, 2018: Sometimes I'd like to ask for an exit permission now.