Skip to main content

FreeNAS General Notes

Last Updated: September 12, 2019

Latest Packages

ee /etc/pkg/FreeBSD.conf

Change to latest:

FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}

FreeNAS defaults to quarterly.

Useful commands

From: https://www.ixsystems.com/community/threads/useful-commands.30314/

ZFS

zpool status -v #shows zpool status infos

zpool iostat 1 #shows IOps and R/W bandwidth every second

zfs list -t snapshot #lists all the snapshots, add | grep "" to filter

arc_summary.py #shows ARC stats

arcstat.py #shows ARC stats

zdb -C your_pool_name | grep ashift #shows the ashift value

zfs rename FileStore/cloud FileStore/cloud-old #rename dataset

Jails / iocage

Updating jail

iocage upgrade -r 12.2-RELEASE <jail_name>

SMART

smartctl -h #shows smart control help, lots of commands examples

smartctl -a /dev/daX #shows all smart attributes

smartctl -A /dev/daX #same as -a but without vendor infos, last test infos, ...

smartctl -l selftest /dev/daX #shows result of last smart test

smartctl -l scttemp /dev/daX #shows the temperatures history

smartctl -t long /dev/daX #executes a long test (replace "long" by "short" for a short test)

HDD

glabel status  #shows gptids and devices names

gstat -f daX -I 1000ms #shows IOps and R/W bandwidth every second

iostat daX #shows IOps and R/W bandwidth

Other

upsc ups #shows all ups attributes (change "ups" with your ups name)

ldload ipmi.ko #loads ipmitool
ipmitool sensor #shows all ipmi sensors values

systat -vm #shows system infos (cpu load, ram usage, drives I/O, ...)

dmidecode | more #shows all hardware bios infos

cat /var/log/messages | more #shows the log (same as in the GUI footer)

freenas-debug -h more /var/tmp/fndebug #shows all debug infos

camcontrol devlist #shows all devices

usbconfig #shows all usb devices

diskinfo -t daX #test seek and transfer times

Windows VM Drivers

virtio-win iso - (Docs)

Install:

pnputil /add-driver E:\NetKVM\2k19\amd64\netkvm.inf /install
pnputil /add-driver E:\Balloon\2k19\amd64\balloon.inf /install
E:\guest-agent\qemu-ga-x86_64.msi