I am still pretty new to N4F and ZFS but I am learning.
I would like to contribute a little Howto, see subject, because from the beginning I liked the idea to optimize my system and tinker around , that's what I was missing on my previous commercial NAS.
Here's my howto for adding a log/ZIL and a cache / L2ARC to the ZFS Pool, using one SSD for both purposes.
I am indeed aware that it is possibly better to use a mirrored device, at least for ZIL, but this is just one more adjustment if anyone needs to use it.
I am not sure if I made everything correctly, so no warranty from my side, but it worked...
1) Add the SSD to your system (in my case ada6) using the webGUI
2) open a shell
3) partition the drive, first clean the drive
Code: Select all
gpart destroy -F ada6 Code: Select all
gpart create -s GPT ada6Code: Select all
gpart add -s 10G -t freebsd-zfs ada6 Code: Select all
gpart add -s 45G -t freebsd-zfs ada6Code: Select all
gpart show ada6 add the ZIL (log)
Code: Select all
zpool add Poolname log ada6p1Code: Select all
zpool add Poolname cache ada6p26) check the pool, in my case it loks like this now from the webGUI
pool: Pool5x3TB
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
Pool ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0
ada4 ONLINE 0 0 0
logs
ada6p1 ONLINE 0 0 0
cache
ada6p2 ONLINE 0 0 0
Code: Select all
zpool list -veg:
Code: Select all
zpool iostat -v 2 300Use a fast SSD!
Everything can be removed again without damage, just feel free to try it.
Cheeers,
Crowi


