ZFS
ZFS is a 128-bit file system and logical volume manager. Supports snapshots, clones, checksum for every block of data.
Pool Creation
Create a pool on a single disk without dedup or compression features with 1 MB block size. Example for media files which are already compressed and large. Many of the settings are available on the dataset level, but the pool's properties will be the default for its datasets.
# create pool on a disk with a given UUIDzpool create tank1 /dev/disk/by-uuid/<UUID># deduplication is off by default, but make surezfs set dedup=off tank1zfs set compression=off tank1# turn access time updates offzfs set atime=off tank1zfs set recordsize=1M tank1
Dataset Creation
# turn on encryption and prompt the user for password# encryption=on means aes-256-gcm by defaultzfs create -o encryption=on -o keylocation=prompt -o keyformat=passphrase tank1/dataset1
Operation
# Encrypted datasets are not mounted by default.# The mount command will prompt for the passphrase of the key.zfs mount -l tank1/dataset1