After resizing the VM disk at the host level, OPNsense does not automatically
use the extra space. gpart show may report the disk as corrupt. This is
expected.
What is actually happening is the backup GPT header is still at the old end of the disk.
Fix
Enter the console shell.
Repair GPT metadata. This does not touch data.
gpart recover ada0
Resize the root partition. On a default UFS install this is freebsd-ufs,
usually partition 3.
gpart resize -i 3 ada0
Grow the filesystem.
growfs /
Verify.
df -h
Notes
- Applies to UFS installs
- The corruption warning after a disk resize is normal
- No reinstall required