Ubuntu: Set autotrim=on
The Ubuntu installer sets this.
This commit is contained in:
@@ -374,7 +374,7 @@ Step 2: Disk Formatting
|
|||||||
#. Create the boot pool::
|
#. Create the boot pool::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o ashift=12 -d \
|
-o ashift=12 -o autotrim=on -d \
|
||||||
-o feature@async_destroy=enabled \
|
-o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
-o feature@embedded_data=enabled \
|
-o feature@embedded_data=enabled \
|
||||||
@@ -444,7 +444,7 @@ Step 2: Disk Formatting
|
|||||||
- Unencrypted::
|
- Unencrypted::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o ashift=12 \
|
-o ashift=12 -o autotrim=on \
|
||||||
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
||||||
-O dnodesize=auto -O normalization=formD -O relatime=on \
|
-O dnodesize=auto -O normalization=formD -O relatime=on \
|
||||||
-O xattr=sa -O mountpoint=/ -R /mnt \
|
-O xattr=sa -O mountpoint=/ -R /mnt \
|
||||||
@@ -453,7 +453,7 @@ Step 2: Disk Formatting
|
|||||||
- ZFS native encryption::
|
- ZFS native encryption::
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o ashift=12 \
|
-o ashift=12 -o autotrim=on \
|
||||||
-O encryption=aes-256-gcm \
|
-O encryption=aes-256-gcm \
|
||||||
-O keylocation=prompt -O keyformat=passphrase \
|
-O keylocation=prompt -O keyformat=passphrase \
|
||||||
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
||||||
@@ -466,7 +466,7 @@ Step 2: Disk Formatting
|
|||||||
cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha256 ${DISK}-part4
|
cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha256 ${DISK}-part4
|
||||||
cryptsetup luksOpen ${DISK}-part4 luks1
|
cryptsetup luksOpen ${DISK}-part4 luks1
|
||||||
zpool create \
|
zpool create \
|
||||||
-o ashift=12 \
|
-o ashift=12 -o autotrim=on \
|
||||||
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
-O acltype=posixacl -O canmount=off -O compression=lz4 \
|
||||||
-O dnodesize=auto -O normalization=formD -O relatime=on \
|
-O dnodesize=auto -O normalization=formD -O relatime=on \
|
||||||
-O xattr=sa -O mountpoint=/ -R /mnt \
|
-O xattr=sa -O mountpoint=/ -R /mnt \
|
||||||
|
|||||||
Reference in New Issue
Block a user