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:
1 | device ahci |
In /boot/loader.conf, add:
1 | ahci_loader= "YES" |
1 | atacontrol cap device |
now:
1 | 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
1 | zpool create tankz raidz ada1 ada2 ada3 |
1 | zpool destroy tankz |
1 | zpool create tank mirror ada4 ada5 |
1 | zpool list |
1 2 | zpool export tank zpool import tank |
1 | zpool add tank cache ada6 ada7 |
1 2 | zpool offline tank ada3 zpool replace tank ada3 |
1 | zpool replace tank ada4 ada8 |
zfs
- Create a ZFS Mount Point
- Create a ZFS Snapshot
- Enable/Disable ZFS Compression
- Restore Tuneables to Default
1 2 | zfs create tank /foo zfs set mountpoint= /home/share/foo tank /foo |
1 | zfs snapshot tank /foo @day1 |
1 2 | zfs set compression=off tank /foo zfs set compression=on tank /foo |
1 | zfs inherit <property>=<value> <dataset> |
References