5 ms·
> Who still partitions like that??? Anyone using ZFS should! Since ZFS partitions are all taking from the available space of the pool, you can have as many pa
by csdvrx 4y ago
> Who still partitions like that???
Anyone using ZFS should!
Since ZFS partitions are all taking from the available space of the pool, you can have as many partitions as you need, which is very practical for snapshots and diffs, or if you want to use the same pool for different hosts (=> use a different etc along with a few others like var/lib )
Look at the set of partitions I recommend on https://github.com/csdvrx/zfs-autosnapshot https://github.com/csdvrx/zfs-autosnapshot (this is for the host 7275 on the pool nvme)
zfs create -o mountpoint=/ nvme/7275
zfs create -o mountpoint=/etc nvme/7275/etc
zfs create -o mountpoint=/opt nvme/7275/opt
zfs create -o mountpoint=/usr nvme/7275/usr
# for optimization
zfs create -o mountpoint=/img recordsize=1M
primarycache=metadata secondarycache=none nvme/7275/img
zfs create -o mountpoint=/img/qcow2 recordsize=64k nvme/7275/images/qcow2
# for safety
zfs create -o mountpoint=/var nvme/7275/var
zfs create -o mountpoint=/var/tmp nvme/7275/var/tmp
zfs create -o mountpoint=/tmp nvme/7275/tmp
zfs set exec=off nvme/7275/var
zfs set setuid=on nvme/7275/var/tmp
zfs set setuid=off devices=off sync=disabled nvme/7275/tmp
# for systemd-journald
zfs create -o mountpoint=/var/log nvme/7275/var/log
zfs set acltype=posixacl nvme/7275/var/log
# for postgresql optimization
zfs create -o mountpoint=/var/lib nvme/7275/var/lib
zfs create -o mountpoint=/var/lib/postgresql nvme/7275/var/lib/postgresql
zfs set recordsize=8K primarycache=metadata logbias=throughput nvme/7275/var/lib/postgresql
- chasil 4y agoI did an Ubuntu ZFS install for the first time recently, and I can confirm that a similar list of datasets arrive automatically. It also taints the kernel, which is interesting.
- csdvrx 4y ago> I did an Ubuntu ZFS install for the first time recently, and I can confirm that a similar list of datasets arrive automatically. FYI this list was created to address Ubuntu's choices for ZFS datasets, which I think are suboptimal. > It also taints the kernel, which is interesting. Oracle could fix the ZFS situation at any time if they wanted to (and then get some positive feelings which they sorely need). They don't. Personally, I don't care much. They may eventually change, like Microsoft did. It's in their best interest: adapt or die.
- matrix12 4y agoZFS runs on NetBSD, and FreeBSD. NOT OpenBSD.