Date: Sun, 12 Dec 2021 18:44:09 -0500 (EST) From: Doug Denault <doug@safeport.com> To: freebsd-questions@FreeBSD.ORG Subject: one down - was a couple of iocage questions Message-ID: <alpine.BSF.2.00.2112121707140.4512@bucksport.safeport.com>
next in thread | raw e-mail | index | archive | help
My earlier post asked three questions: (1) does a list of all commands and options exist; (2) How to tell thick from thin jail; (3) a philosophical rant. #2 is a zfs question not an iocage one. I have two jails hosts one for experimenting/learning/playing and one for getting stuff done. man zfs and google make me think the answer can be inferred from 'zfs list -o space' zfs space properties selected by -o --------------------- AVAIL - Available on each file system USED - Being used USEDSNAP - Being consumed by snapshots of each data set USEDDS - Being used by the data set itself USEDREFRESERV - Being used by a refreservation set on the data set USEDCHILD - Being used by the children of this data set >From iocage list (play host) +-----+---------+-------+--------------+---------------+ | JID | NAME | STATE | RELEASE | IP4 | | 5 | asgard | up | 7.2-RELEASE | 192.168.2.101 | | 3 | gaia | up | 11.2-RELEASE | 192.168.2.110 | | 1 | odin | up | 11.2-RELEASE | 192.168.2.112 | | - | thinman | down | 12.0-RELEASE | 192.168.2.111 | +-----+---------+-------+--------------+---------------+ zfs list -o space -d 2 zroot/iocage/jails NAME AVAIL USED USEDSNAP USEDDS USEDREFRESERV USEDCHILD zroot/iocage/jails/asgard/root 843G 786M 0 786M 0 0 zroot/iocage/jails/gaia/root 843G 15.2M 0 15.2M 0 0 root/iocage/jails/odin/root 843G 15.0M 0 15.0M 0 0 zroot/iocage/jails/thinman/root 843G 1.88G 452K 1.88G 0 0 extracting only the root dataset. Here the answer is clear. On the 'real' host USEDSNAP is also definitive here (I think). This system has a number or legacy jails (<11.0) I did not exclude their data until I was writting this email. I think the USEDCHILD values come from the template I'm using. That begets another iocage question, ignored for now. >From iocage list (real host) +-----+------------+-------+------------------------+-----------+ | JID | NAME | STATE | RELEASE | IP4 | | 144 | cyrus | up | 12.2-RELEASE | 10.0.3.16 | | 142 | ogunquit | up | 12.2-RELEASE | 10.0.3.18 | | 143 | york | up | 12.2-RELEASE | 10.0.3.12 | +-----+------------+-------+------------------------+-----------+ find . -type f -name config.json -maxdepth 2 -exec grep -i cloned {} + ./secure/config.json: "cloned_release": "12.2-RELEASE", ./ogunquit/config.json: "cloned_release": "12.2-RELEASE", ./newmeadows/config.json: "cloned_release": "12.2-RELEASE", ./dovecot/config.json: "cloned_release": "EMPTY", ./york/config.json: "cloned_release": "12.2-RELEASE", secure, newmeadows and dovecot don't count. They are jails running older FreeBSDs. I did all sorts of things here so nothing can be inferred from config.json. So using zfs again I removed the USEDREFRESERV column (all zeros) and the legacy jails. NAME AVAIL USED USEDSNAP USEDDS USEDCHILD zroot/iocage/jails 12.2T 109G 0 366K 109G zroot/iocage/jails/cyrus 12.2T 2.12G 0 247K 2.12G zroot/iocage/jails/cyrus/root 12.2T 2.12G 0 2.12G 0 zroot/iocage/jails/ogunquit 12.2T 2.45G 0 265K 2.45G zroot/iocage/jails/ogunquit/root 12.2T 2.45G 0 2.45G 0 zroot/iocage/jails/york 12.2T 2.43G 0 265K 2.43G zroot/iocage/jails/york/root 12.2T 2.43G 0 2.43G 0 cyrus, ogunquit and york are thick jails. USEDCHILD comes from the use of a template, I think. I would appreciate any zfs expert's ideas/comments on my conclusions. _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.2112121707140.4512>