Hello,
I want to increase the size of zpool of a FreeBSD 11.2 VM on VMware. My zpool is created directly on /dev/da1
Usually I increase the disk size on hypervisor level, then I check that 'autoexpand' property is 'on', then I do 'zpool export poolname' and 'zpool import poolname' and next I can do 'zpool online -e tanktest /dev/da2' to increase the volume. This procedure works well, but there is a small problem - I must unmount all zfs volumes of the zpool to be able to export the zpool. And I need to export/import the zpool to refresh the free space on the device. Sometimes it is difficult to do as I must stop all jails and applications using the volumes.
Is there a better way to force zfs refresh the available device space?
PS
I know that I can just create another device and hot add it to zpool, but I want to stay with one zpool device.
I want to increase the size of zpool of a FreeBSD 11.2 VM on VMware. My zpool is created directly on /dev/da1
Usually I increase the disk size on hypervisor level, then I check that 'autoexpand' property is 'on', then I do 'zpool export poolname' and 'zpool import poolname' and next I can do 'zpool online -e tanktest /dev/da2' to increase the volume. This procedure works well, but there is a small problem - I must unmount all zfs volumes of the zpool to be able to export the zpool. And I need to export/import the zpool to refresh the free space on the device. Sometimes it is difficult to do as I must stop all jails and applications using the volumes.
Is there a better way to force zfs refresh the available device space?
PS
I know that I can just create another device and hot add it to zpool, but I want to stay with one zpool device.