using zfs for poudriere
Matthias Apitz
guru at unixarea.de
Wed Sep 26 07:14:23 UTC 2018
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 at 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.
More information about the freebsd-questions
mailing list