/dev/disk/by-id
, do not use /dev/sdX
zpool create <name> <type> <disks>
zpool create ssds mirror nvme-Samsung_SSD_980_TB_ABCD nvme-Samsung_SSD_980_TB_EFGH
ashift
, let zfs figure it out. You can check with zdb -C <pool>
what value it uses.ashift=12
for 4K physical sectorsautotrim=on
for SSDs-o
is for pool options. To pass options to the root dataset, use -O
.zfs create <pool>/<dataset>
atime
is no longer necessary, just make sure that both atime
and relatime
are on
-o encryption=on -o keyformat=raw -o keylocation=file:///path/to/key
-o compression=zstd
recordsize
of 128K is default. When storing large files, e.g., media, set this higher, e.g., 1M