I have a FreeBSD 13.0 bhyve VM running on a FreeBSD 13.0 host. Originally, The VM was created with a 64 GB disk but I increased that to 128 GB.
When logging into the VM, I see that the disk was indeed resized correctly:
Now I need to increase the size of partition 3. In the past I've done this using:
Now, obviously the device is busy as I'm running zfs-on-root.
What is the proper way of increasing the ZFS partition size from here?
When logging into the VM, I see that the disk was indeed resized correctly:
Code:
root@poudriere01:~ # gpart show -lp
=> 40 268435440 vtbd0 GPT (128G)
40 532480 vtbd0p1 efiboot0 (260M)
532520 2008 - free - (1.0M)
534528 16777216 vtbd0p2 swap0 (8.0G)
17311744 116905984 vtbd0p3 zfs0 (56G)
134217728 134217752 - free - (64G)
Code:
root@poudriere01:~ # gpart resize -i 3 -a 4k -s 64G vtbd0
gpart: Device busy
What is the proper way of increasing the ZFS partition size from here?