Hello,
First off I would like to say thanks to all of you being here, I have read a lot of great answers and threads on this forums.
I decided to use FreeBSD + ZFS for my NAS storage at home.
The setup consists of a server with Supermicro MB, Intel CPU supporting AES-NI and 16 GB ECC RAM with4 x 3TB disks and 2 x 120GB SSD.
I installed it using the latest 10.1 RELEASE and installed ZFS using the memstick image.
So the zroot pool is a raid-z1 setup on the 4 x 3TB disks like this:
Why does it say 7.65T free space?
I would think like 12T (4 x 3) - 3TB (RAID-z1) - 2 GB swap file per disk - 46 GB per disk (zfs using 1/64th of the disk?) - FreeBSD of like 2-10G maximum = around 8.6-8.7T space, why is it so low?
Also here is some more questions.
Also I would really like to have your input in adding the 2 x SSDs as L2ARC caching and how it would improve my performance?
I have been reading a lot and decided to go with 2 SSDs when reading that some data can become corrupt if only running one SSD and it crashes, is this correct and how would I add them so they are redundant? Would it be the same was running "zpool add zroot cache ada0" if that the correct syntax adding the 1st SSD?
Thanks for your time
Best regards
First off I would like to say thanks to all of you being here, I have read a lot of great answers and threads on this forums.
I decided to use FreeBSD + ZFS for my NAS storage at home.
The setup consists of a server with Supermicro MB, Intel CPU supporting AES-NI and 16 GB ECC RAM with4 x 3TB disks and 2 x 120GB SSD.
I installed it using the latest 10.1 RELEASE and installed ZFS using the memstick image.
So the zroot pool is a raid-z1 setup on the 4 x 3TB disks like this:
Code:
root@nas:~ # zpool list
NAME SIZE ALLOC FREE FRAG EXPANDSZ CAP DEDUP HEALTH ALTROOT
zroot 10.9T 1.83G 10.9T 0% - 0% 1.00x ONLINE -
Code:
root@nas:~ # zpool status
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gpt/zfs0 ONLINE 0 0 0
gpt/zfs1 ONLINE 0 0 0
gpt/zfs2 ONLINE 0 0 0
gpt/zfs3 ONLINE 0 0 0
errors: No known data errors
Code:
root@nas:~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 1.33G 7.65T 140K none
zroot/ROOT 486M 7.65T 140K none
zroot/ROOT/default 486M 7.65T 486M /
zroot/tmp 140K 7.65T 140K /tmp
zroot/usr 875M 7.65T 140K /usr
zroot/usr/home 140K 7.65T 140K /usr/home
zroot/usr/ports 874M 7.65T 874M /usr/ports
zroot/usr/src 140K 7.65T 140K /usr/src
zroot/var 761K 7.65T 140K /var
zroot/var/crash 140K 7.65T 140K /var/crash
zroot/var/log 203K 7.65T 203K /var/log
zroot/var/mail 140K 7.65T 140K /var/mail
zroot/var/tmp 140K 7.65T 140K /var/tmp
Why does it say 7.65T free space?
I would think like 12T (4 x 3) - 3TB (RAID-z1) - 2 GB swap file per disk - 46 GB per disk (zfs using 1/64th of the disk?) - FreeBSD of like 2-10G maximum = around 8.6-8.7T space, why is it so low?
Also here is some more questions.
- Is it worth installing FreeBSD on ZFS or only use ZFS for the storage? (Example: Installing FreeBSD on a USB stick, SD card, standalone SDD etc)
- My SSD is on SATA ports 0 and 1 and the other disks after that, would that mean that ada0 and ada1 is my SSDs, I can't really confirm since the "zpool status" says the disks is named zfs0, zfs1, zfs2 and zfs3? (See the command output below, please also note that I'm new to FreeBSD so I don't really know how to check this properly)
Code:
root@nas:~ # egrep 'ad[0-9]|cd[0-9]' /var/run/dmesg.boot
ada0: Previously was known as ad4
ada1: Previously was known as ad6
ada2: Previously was known as ad8
ada3: Previously was known as ad10
ada4: Previously was known as ad12
ada5: Previously was known as ad14
Also I would really like to have your input in adding the 2 x SSDs as L2ARC caching and how it would improve my performance?
I have been reading a lot and decided to go with 2 SSDs when reading that some data can become corrupt if only running one SSD and it crashes, is this correct and how would I add them so they are redundant? Would it be the same was running "zpool add zroot cache ada0" if that the correct syntax adding the 1st SSD?
Thanks for your time
Best regards