Adjust pct to set maximum memory usage percentage for ZFS
grep '^MemTotal' /proc/meminfo | awk -v pct=90 '{printf "%d", $2 * 1024 * (pct / 100.0)}' > /sys/module/zfs/parameters/zfs_arc_max; echo "$((8*1024*1024*1024))" > /sys/module/zfs/parameters/zfs_arc_sys_free
Resolves the problem that https://xxx:12345 -> https://xxx/ui instead of https://xxx:12345/ui
Assume FreeNAS instance at 1.2.3.4:80
Problem related to NginxProxyManager, need to manually change config file to put $http_host in the bottom. See nginx-proxy-manager/3729
watch -n 1 -t 'for d in /dev/sd?; do v=$(smartctl -A $d | awk "/UDMA_CRC_Error_Count/ {print \$NF}"); [ -n "$v" ] && echo "$d: $v"; done'
