Resize a FreeBSD Disk Running Under VMware

I have a FreeBSD guest as a VM under VMware Fusion on my MacBook Air. It was built before my disk went from 250g to 500g, so was small. A research software build blew the 8g boundary. So, what worked was as follows

boot from a FreeBSD-9.0-RELEASE-amd64-bootonly.iso image
gpart delete -i 3 da0 (the swap)
gpart resize -i 2 -s 24g da0
gpart add -t freebsd-swap da0
growfs /da0p2

I see no reason this would not apply to vmware esxi on the servers

Comments are closed.