U bent hier

Sample ZFS tanks & mountpoints setup

Software installation

This page assumes you know about ZFS.

Physically add and identify disks

One by one I insert the SATA disks into the hot-swapable bays. After each insert I check with command 

ls /dev/disk/by-id/ -l

to see which disk is added and I make note of that ID for future reference (note: you can also just type-in the ID since it is printed on the hard disk itself; but using the above method you can copy paste so: a) prevent typos and b) confirm you are really lazy;-)).

Logically add disks to mirror pairs

Add first pair to first tank:

zpool create asp03 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JG40006PGNZHRC ata-HGST_HTS721010A9E630_JG40006PGR1GYC
zpool create asp04 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JG40006PGR2LSC ata-HGST_HTS721010A9E630_JG40006PGR6YGC
zpool create asp05 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JR40106LGTMAPG ata-HGST_HTS721010A9E630_JR40106LGU363G

enable deduplication table storage

Since these home-disks are typically low-rate writes and high-rate reads, deduplication is okidoki

zfs set dedup=on asp03
zfs set dedup=on asp04
zfs set dedup=on asp05

Mount the storage to the file system

zfs create -o mountpoint=/home asp05/home

... and other commands used... Full history:

asp03

zpool create asp03 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JG40006PGNZHRC ata-HGST_HTS721010A9E630_JG40006PGR1GYC
zfs dedup=on asp03
zfs create -o mountpoint=/home/stephan/Music asp03/music
zfs set quota=100G asp03/music
zfs create -o mountpoint=/home/stephan/StorageDock asp03/storagedock
zfs set quota=350G asp03/storagedock
zfs create -o mountpoint=/home/stephan/VirtualBox VMs asp03/vm
zfs set quota=100G asp03/vm
zfs create -o mountpoint=/home/stephan/.VirtualBox asp03/vm-configs
zfs set quota=256M asp03/vm-configs

asp04

zpool create asp04 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JG40006PGR2LSC ata-HGST_HTS721010A9E630_JG40006PGR6YGC
zfs dedup=on asp04
zfs create -o mountpoint=/home/stephan/Videos asp04/videos
zfs set quota=800G asp04/videos
zfs create -o mountpoint=/home/stephan/Downloads asp04/downloads
zfs set quota=25G asp04/downloads

asp05

The creation of /home here does also require some manual moves before/after these commands in order to have the user's home folders put aside before and moved back after the mountpoint-activation

zpool create asp05 -f -o ashift=12 mirror ata-HGST_HTS721010A9E630_JR40106LGTMAPG ata-HGST_HTS721010A9E630_JR40106LGU363G
zfs dedup=on asp05
zfs create -o mountpoint=/home asp05/home
zfs set quota=500G asp05/home
IT area: