Extending a FreeBSD ZFS volume after extending the disk in VMware
This assumes a single disk attached to a zvol. In this case the disk /dev/da1
- Ensure that the autoexpand attribute is set to on on the ZFS volume, otherwise set it to on
zpool get autoexpand
zpool set autoexpand=on
- Shutdown the server
shutdown -h now
- Extend the disk in VMware (not shown here)
- Start the server
- Login and look at the current space.
zpool get size
NAME PROPERTY VALUE SOURCE
size 350G
- Expand it
$ zpool online -e /dev/da1
- View the new size
zpool get size
NAME PROPERTY VALUE SOURCE
size 398G -