From owner-freebsd-questions@freebsd.org Wed Sep 26 02:34:32 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 866C6109A049 for ; Wed, 26 Sep 2018 02:34:32 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id C2B9B8ADA2 for ; Wed, 26 Sep 2018 02:34:31 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from unknown (HELO leader.local) ([118.211.111.169]) by ipmail07.adl2.internode.on.net with ESMTP; 26 Sep 2018 11:59:17 +0930 Subject: Re: using zfs for poudriere To: freebsd-questions@freebsd.org References: <20180925055713.GA13004@sh4-5.1blu.de> From: Shane Ambler Message-ID: Date: Wed, 26 Sep 2018 11:59:16 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180925055713.GA13004@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit 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 02:34:32 -0000 On 25/9/18 3:27 pm, Matthias Apitz wrote: > > Hello, > > I do use for some years a zpool for poudriere(8) ports building. I just > But I have to say, that I really don't know how poudriere makes use of > it because I have never worked, a part of this poudriere usage, with > ZFS. When you start a build in poudriere, a jail is setup to perform the build, dependant packages are installed and the desired port/s are built. Using zfs snapshots, every file created during a build can be removed with a quick rollback, using UFS, each file needs to be deleted, which also leaves room for leaving something behind, a snapshot can be rolled back to the exact state each time. > Can someone pleas explain me *what* do I see with the commands below? > For me the mountpoints (when I use 'ls') always look somewhat empty, but > when poudriere is running (see below) it creates a lot of things there. Poudriere uses zfs features a lot, so you get a zfs for each jail, this lets it quickly delete all files for a jail. As poudriere is running it uses mounts for each jail as well as shared fs like ports tree and distfiles, you also get a zfs for working and installed files, this lets the same jail be used and cleaned up with a rollback between building each port. > And one additional question: Can I store some own data below /poudriere > (because I'm running out of space in my UFS /dev/da0 partition) without > disturbing poudriere in its work? > 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. -- FreeBSD - the place to B...Software Developing Shane Ambler