Commands to create new ZFS pool and datasets on Linux
0
0
1
| 1 | # RAIDZ2 pool creation |
| 2 | # |
| 3 | # -o (lowercase) is a _pool_ setting, -O (uppercase) is a _root dataset_ setting |
| 4 | # |
| 5 | # ashift=12: 2^12 = 4KiB sectors, for certain NVMe drives use 13 (8KiB) |
| 6 | # autotrim: TRIM for SSDs |
| 7 | # encryption=on: Defaults to aes-256-gcm (since 0.8.4) |
| 8 | # pbkdf2iters=700000: Double the default PBKDF2-SHA1(?) iterations, default is 350000 |
| 9 | # dnodesize=auto: Is supposed to be used on systems running SAMBA with xattr=sa |
| 10 | # compression=on: Defaults to lz4 (when lz4_compress is enabled, see `zpool get feature@lz4_compress ${NAME}`) |