# df -hFilesystem Size Used Avail Capacity Mounted on/dev/gpt/rootfs 31G 16G 13G 56% /devfs 1.0K 1.0K 0B 100% /dev/dev/gpt/efifs 256M 1.7M 254M 1% /boot/efitmpfs 8.0G 1.2G 6.8G 15% /var/logtmpfs 8.0G 1.5M 8.0G 0% /tmpdevfs 1.0K 1.0K 0B 100% /var/dhcpd/devdevfs 1.0K 1.0K 0B 100% /var/unbound/dev/usr/local/lib/python3.9 31G 16G 13G 56% /var/unbound/usr/local/lib/python3.9
root@OPNsense:/ # du -chs *8.0K COPYRIGHT1.4M bin340M boot7.6M conf4.0K dev4.0K entropy3.5M etc4.0K home 14M lib160K libexec4.0K media4.0K mnt4.0K net4.0K proc4.0K rescue 44K root5.8M sbin 0B sys1.5M tmp1.4G usr1.7G var3.5G total
# mount/dev/gpt/rootfs on / (ufs, local, soft-updates, journaled soft-updates)devfs on /dev (devfs)/dev/gpt/efifs on /boot/efi (msdosfs, local)tmpfs on /var/log (tmpfs, local)tmpfs on /tmp (tmpfs, local)devfs on /var/dhcpd/dev (devfs)devfs on /var/unbound/dev (devfs)/usr/local/lib/python3.9 on /var/unbound/usr/local/lib/python3.9 (nullfs, local, read-only, soft-updates, journaled soft-updates)
2023-12-18T03:40:16-05:00 Notice flowd_aggregate.py vacuum done 2023-12-18T03:40:15-05:00 Notice flowd_aggregate.py vacuum interface_086400.sqlite 2023-12-18T03:40:15-05:00 Notice flowd_aggregate.py vacuum interface_003600.sqlite 2023-12-18T03:40:15-05:00 Notice flowd_aggregate.py vacuum interface_000300.sqlite 2023-12-18T03:40:15-05:00 Notice flowd_aggregate.py vacuum interface_000030.sqlite 2023-12-18T03:40:15-05:00 Notice flowd_aggregate.py vacuum dst_port_086400.sqlite 2023-12-18T03:40:13-05:00 Notice flowd_aggregate.py vacuum dst_port_003600.sqlite 2023-12-18T03:40:09-05:00 Notice flowd_aggregate.py vacuum dst_port_000300.sqlite 2023-12-18T03:40:09-05:00 Notice flowd_aggregate.py vacuum src_addr_086400.sqlite 2023-12-18T03:40:09-05:00 Notice flowd_aggregate.py vacuum src_addr_003600.sqlite 2023-12-18T03:40:08-05:00 Notice flowd_aggregate.py vacuum src_addr_000300.sqlite 2023-12-18T03:39:45-05:00 Notice flowd_aggregate.py vacuum src_addr_details_086400.sqlite 2023-12-17T19:37:41-05:00 Notice flowd_aggregate.py vacuum done 2023-12-17T19:37:41-05:00 Notice flowd_aggregate.py start watching flowd 2023-12-17T19:37:41-05:00 Notice flowd_aggregate.py startup, check database.
# df -hFilesystem Size Used Avail Capacity Mounted on/dev/gpt/rootfs 31G 16G 13G 56% /devfs 1.0K 1.0K 0B 100% /dev/dev/gpt/efifs 256M 1.7M 254M 1% /boot/efitmpfs 8.0G 4.4G 3.6G 55% /var/logtmpfs 8.0G 1.9M 8.0G 0% /tmpdevfs 1.0K 1.0K 0B 100% /var/dhcpd/devdevfs 1.0K 1.0K 0B 100% /var/unbound/dev/usr/local/lib/python3.9 31G 16G 13G 56% /var/unbound/usr/local/lib/python3.9
/ # du -chs *8.0K COPYRIGHT1.4M bin340M boot7.6M conf4.0K dev4.0K entropy3.5M etc4.0K home 14M lib160K libexec4.0K media4.0K mnt4.0K net4.0K proc4.0K rescue 48K root5.8M sbin 0B sys1.9M tmp1.4G usr4.8G var6.6G total
/ # find /var/ -type f -exec du -Ah {} + | sort -h | tail -302.3M /var/unbound/usr/local/lib/python3.9/site-packages/netaddr/eui/iab.txt2.7M /var/unbound/usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.abi3.so3.8M /var/log/flowd.log3.9M /var/log/configd/configd_20231218.log5.3M /var/unbound/usr/local/lib/python3.9/site-packages/netaddr/eui/oui.txt5.7M /var/unbound/usr/local/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39.so6.1M /var/log/netflow/src_addr_086400.sqlite6.1M /var/unbound/usr/local/lib/python3.9/config-3.9/libpython3.9.a7.5M /var/db/pkg/vuln.xml8.3M /var/unbound/data/unbound.duckdb 12M /var/log/flowd.log.000002 12M /var/log/flowd.log.000005 12M /var/log/flowd.log.000008 12M /var/log/flowd.log.000010 13M /var/log/flowd.log.000003 13M /var/log/flowd.log.000004 13M /var/log/flowd.log.000006 13M /var/log/flowd.log.000007 13M /var/log/flowd.log.000009 14M /var/db/pkg/local.sqlite 15M /var/log/flowd.log.000001 25M /var/log/netflow/dst_port_086400.sqlite 29M /var/log/netflow/src_addr_003600.sqlite 43M /var/unbound/usr/local/lib/python3.9/site-packages/duckdb.cpython-39.so 64M /var/log/netflow/src_addr_000300.sqlite226M /var/log/netflow/dst_port_003600.sqlite254M /var/log/netflow/dst_port_000300.sqlite301M /var/log/filter/filter_20231217.log684M /var/log/filter/filter_20231218.log2.7G /var/log/netflow/src_addr_details_086400.sqlite
I'm using UFS - maybe I should re-do this using ZFS?
Sounds like an excellent idea. At least it doesn't crash after every power failure. Also the filesystem is lz4-compressed by default, if you are space-constrained.