zfs

This is an old revision of the document!


ZFS Cheatsheet

Create a pool

  • Get disk ids from /dev/disk/by-id
  • zpool create <name> <type> <disks>
  • zpool create ssds mirror nvme-Samsung_SSD_980_TB_ABCD nvme-Samsung_SSD_980_TB_EFGH
  • Set ashift to the physical sector size of your disk
  • Set

Create a dataset

  • zfs create <pool>/<dataset>
  • 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''
  • zfs.1751051263.txt.gz
  • Last modified: 2025-06-27 21:07
  • by weichbr