This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |
| public:zfs [2026-10-07 14:26] – weichbr | public:zfs [2026-10-13 18:15] (current) – [Create a dataset] weichbr |
|---|
| * Disabling ''atime'' is no longer necessary, just make sure that both ''atime'' and ''relatime'' are ''on'' | * Disabling ''atime'' is no longer necessary, just make sure that both ''atime'' and ''relatime'' are ''on'' |
| * For encryption specify: ''-o encryption=on -o keyformat=raw -o keylocation=file:/%%//%%path/to/key'' | * For encryption specify: ''-o encryption=on -o keyformat=raw -o keylocation=file:/%%//%%path/to/key'' |
| * Enable comporession: ''-o compression=zstd'' | * Enable compression: ''-o compression=zstd'' |
| * ''recordsize'' of 128K is default. When storing large files, e.g., media, set this higher, e.g., 1M | * ''recordsize'' of 128K is default. When storing large files, e.g., media, set this higher, e.g., 1M |
| |
| Creating a dataset with encryption: | Creating a dataset with encryption: |
| ''echo -n password | zfs create pool/dataset -o compression=zstd -o normalization=formD -o xattr=sa -o acltype=posixacl -o atime=on -o relatime=on -o %%"%%com.sun:auto-snapshot%%"%%=false -o encryption=on -o keyformat=passphrase -o keylocation=file:/%%//%%dev/stdin'' | ''echo -n password | zfs create pool/dataset -o compression=zstd -o normalization=formD -o xattr=sa -o acltype=posixacl -o atime=on -o relatime=on -o %%"%%com.sun:auto-snapshot%%"%%=false -o encryption=on -o keyformat=passphrase -o keylocation=file:/%%//%%dev/stdin'' |