I'm not sure what I'm missing, I keep running out of disk space when I shouldn't. I have a cloud-based VM running FreeBSD 12.3 with 80GB of storage. I am using ZFS and GPT partitioning.
When I run zpool it shows that it's almost completely full:
When I run df it shows a much smaller partition. As I delete files to save space, the root partition also shrinks and always shows 95% full no matter what I do. Where has all that free space gone???
I've run commands like
Code:
#gpart show
=> 40 167772080 vtbd0 GPT (80G)
40 512 1 freebsd-boot (256K)
552 4194304 2 freebsd-swap (2.0G)
4194856 163577264 3 freebsd-zfs (78G)
When I run zpool it shows that it's almost completely full:
Code:
#zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot 77.5G 74.2G 3.25G - - 66% 95% 1.00x ONLINE -
When I run df it shows a much smaller partition. As I delete files to save space, the root partition also shrinks and always shows 95% full no matter what I do. Where has all that free space gone???
Code:
#df -h
Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 18G 17G 852M 95% /
devfs 1.0K 1.0K 0B 100% /dev
fdescfs 1.0K 1.0K 0B 100% /dev/fd
zroot/usr/ports 852M 88K 852M 0% /usr/ports
zroot/usr/src 852M 88K 852M 0% /usr/src
zroot/var/crash 852M 88K 852M 0% /var/crash
zroot/var/log 1.1G 238M 852M 22% /var/log
zroot/var/mail 1.5G 722M 852M 46% /var/mail
zroot/tmp 853M 1.4M 852M 0% /tmp
zroot/var/audit 852M 88K 852M 0% /var/audit
zroot/var/tmp 853M 1.0M 852M 0% /var/tmp
zroot/usr/home 1.3G 480M 852M 36% /usr/home
zroot/usr/jails 852M 108K 852M 0% /usr/jails
zroot/usr/jails/newjail 861M 9.3M 852M 1% /usr/jails/newjail
zroot/usr/jails/basejail 1.4G 625M 852M 42% /usr/jails/basejail
/dev/vtbd1 434K 434K 0B 100% /var/lib/cloud/seed/config_drive
I've run commands like
zpool online -e
but can't seem to figure out where all the disk space went.