From c084a2ebffe7914a3e131c6c8d53eeffe9dd26d3 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Thu, 19 May 2022 22:47:19 -0500 Subject: [PATCH] Debian: Set autotrim=on on Bullseye I had this for Ubuntu 22.04. This should be supported on Debian Bullseye too. Signed-off-by: Richard Laager --- .../Debian/Debian Bullseye Root on ZFS.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst index ccd4e8c..974d7cd 100644 --- a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst @@ -227,7 +227,7 @@ Step 2: Disk Formatting zpool create \ -o cachefile=/etc/zfs/zpool.cache \ - -o ashift=12 -d \ + -o ashift=12 -o autotrim=on -d \ -o feature@async_destroy=enabled \ -o feature@bookmarks=enabled \ -o feature@embedded_data=enabled \ @@ -302,7 +302,7 @@ Step 2: Disk Formatting - Unencrypted:: zpool create \ - -o ashift=12 \ + -o ashift=12 -o autotrim=on \ -O acltype=posixacl -O canmount=off -O compression=lz4 \ -O dnodesize=auto -O normalization=formD -O relatime=on \ -O xattr=sa -O mountpoint=/ -R /mnt \ @@ -311,7 +311,7 @@ Step 2: Disk Formatting - ZFS native encryption:: zpool create \ - -o ashift=12 \ + -o ashift=12 -o autotrim=on \ -O encryption=on \ -O keylocation=prompt -O keyformat=passphrase \ -O acltype=posixacl -O canmount=off -O compression=lz4 \ @@ -325,7 +325,7 @@ Step 2: Disk Formatting cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha256 ${DISK}-part4 cryptsetup luksOpen ${DISK}-part4 luks1 - zpool create \ + zpool create -o autotrim=on \ -o ashift=12 \ -O acltype=posixacl -O canmount=off -O compression=lz4 \ -O dnodesize=auto -O normalization=formD -O relatime=on \