Create encrypted ZFS mirror pool

To create aligned and encrypted ( aes-256-gcm ) ZFS mirror pool, always use /dev/disk/by-id

zpool create -f \ 
  -o ashift=12 \
  -O acltype=posixacl \ 
  -O canmount=on \ 
  -O compression=lz4 \ 
  -O dnodesize=auto \
  -O normalization=formD \
  -O relatime=on \
  -O xattr=sa \
  -O encryption=aes-256-gcm \
  -O keylocation=prompt \
  -O keyformat=passphrase \ 
  -O mountpoint=/data04 \
  data04 mirror \
  /dev/disk/by-id/ata-WDC_WD10EVVS-63M5B0_WD-WCAV5R194657 \
  /dev/disk/by-id/ata-WDC_WD1001FALS-00E8B0_WD-WMATV4554788

Leave a Reply

Your email address will not be published. Required fields are marked *