From 760b6c9622c7e9b2a3bdb8d0c3666d0c36961b4e Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sun, 17 Mar 2019 13:42:52 -0500 Subject: [PATCH] Ubuntu/Debian: Add more optional datasets These were suggested by one or more Ubuntu developers. --- Debian-Stretch-Root-on-ZFS.md | 6 ++++++ Ubuntu-18.04-Root-on-ZFS.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index 9308d55..155755f 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -145,6 +145,12 @@ The primary goal of this dataset layout is to separate the OS from user data. Th # zfs create -o com.sun:auto-snapshot=false \ -o mountpoint=/var/lib/nfs rpool/var/nfs + If this system will use Snap packages: + # zfs create rpool/var/snap + + If you use /var/www on this system: + # zfs create rpool/var/www + If you want a separate /tmp dataset (choose this now or tmpfs later): # zfs create -o com.sun:auto-snapshot=false rpool/tmp # chmod 1777 /mnt/tmp diff --git a/Ubuntu-18.04-Root-on-ZFS.md b/Ubuntu-18.04-Root-on-ZFS.md index db1d8c2..e81ae2f 100644 --- a/Ubuntu-18.04-Root-on-ZFS.md +++ b/Ubuntu-18.04-Root-on-ZFS.md @@ -169,6 +169,12 @@ With ZFS, it is not normally necessary to use a mount command (either `mount` or # zfs create -o com.sun:auto-snapshot=false \ -o mountpoint=/var/lib/nfs rpool/var/nfs + If this system will use Snap packages: + # zfs create rpool/var/snap + + If you use /var/www on this system: + # zfs create rpool/var/www + If you want a separate /tmp dataset (choose this now or tmpfs later): # zfs create -o com.sun:auto-snapshot=false rpool/tmp # chmod 1777 /mnt/tmp