rXg Knowledge Base

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

Categories
Configuration Guides
FAQ
3rd Party
Features and Capabilities
Known Issues

Tags
SoftGRE
RUCKUS
SmartZone
IPMI
Dell
Fleet Manager
ESXI
Hardware
Extreme
NAT
Bhyve
Upgrading
DHCP
Performance Improvements
DNS
Licensing
RADIUS
CLI
API
Configuration Templates
SD-WAN
IDV
NVIDIA
IPv6

Cookies help us deliver our services. By using our services, you agree to our use of cookies.