The answer is yes, but, you need a little trickery to make it work. Here's how you do it:
- Upgrade your VM storage or plan to the next size up
- Typically you'll need to power off and power on the VM to apply the storage upgrade
- Once you've booted back up, ensure your disk upgrade went through successfully:
log in via SSH and run df -h and check the disk size - Now we will list the partitons on the server and find out which one ZFS is using:
let's use parted -l - Once you've found your partition, use parted to resize it. Assuming it is vda and partition 2:
execute parted /dev/vda resizepart 2 100% - Finally, we want to use ZFS expand to make use of the extra space:
use zpool online -e zpool /dev/vda2 altering the zpool name and partition accordingly.