How to expand the ZFS filesystem
May 17, 2024
Boot in single user
gpart show -lp
If disk is reporting corrupted:
gpart recover da0
Resize:
gpart resize -i 3 -a 4k -s 70G da0
Reboot
Boot as multiuser
zpool status
This gets pool and device name
zpool set autoexpand=on zroot
zpool online -e zroot da0p3
df -h | less reports new size
Reboot
Information derived from:
https://forums.freebsd.org/threads/increase-zfs-on-root-partition-size.81661/
https://serverfault.com/questions/946055/increase-the-zfs-partition-to-use-the-entire-disk
Information derived from:
https://forums.freebsd.org/threads/increase-zfs-on-root-partition-size.81661/
https://serverfault.com/questions/946055/increase-the-zfs-partition-to-use-the-entire-disk