My tips about ata/ahci/zpool/zfs
ATA & AHCI
- Use AHCI and NCQ
- Use camcontrol (8) instead of atacontrol (8)
In your kernel configuration file add this then rebuild kernel:
device ahci
In /boot/loader.conf, add:
ahci_loader="YES"
atacontrol cap device
now:
camcontrol identify device
zpool
- Create a RAID-Z Storage Pool
- Destroy a ZFS Storage Pool
- Create a Mirrored Storage Pool
- List Storage Pools
- Export/Import a ZFS Storage Pool
- Add Cache Devices to a ZFS Storage Pool
- Replace Device with Another Device in the Same Location
- Replace Device with Another Device in the Different Location
zpool create tankz raidz ada1 ada2 ada3
zpool destroy tankz
zpool create tank mirror ada4 ada5
zpool list
zpool export tank zpool import tank
zpool add tank cache ada6 ada7
zpool offline tank ada3 zpool replace tank ada3
zpool replace tank ada4 ada8
zfs
- Create a ZFS Mount Point
- Create a ZFS Snapshot
- Enable/Disable ZFS Compression
- Restore Tuneables to Default
zfs create tank/foo zfs set mountpoint=/home/share/foo tank/foo
zfs snapshot tank/foo@day1
zfs set compression=off tank/foo zfs set compression=on tank/foo
zfs inherit <property>=<value> <dataset>
References