3 hours ago · Tech · 0 comments

The ZFS partition/volume expansion is generally not an ultra hard task … but needs one step at a time approach. Today we will follow them one by one to expand GELI encrypted ZFS disk. There is only one potential problem – and I faced that recently with one of the other VMs I manage. If FreeBSD VM guest version is older – I have tested with 14.1-RELEASE for example – then even these will not help: guest # camcontrol rescan all guest # camcontrol reprobe ${RESIZED_DISK} You will have to reboot. But with FreeBSD 15.0-RELEASE VM guest the new disk size was picked up quite fast and no reboot needed. The list of steps to be taken: Increasing VM disk on FreeBSD Bhyve hypervisor for that VM. Potential reboot(8) for some older FreeBSD releases. Recover partition table with gpart(8) tool. Resizing partition gpart(8) layer. The GELI layer will ‘notice’ automatically. ZFS resizing. So lets get to work – first – resize VM Disk on FreeBSD Bhyve hypervisor host. Its a ZFS ZVOL for the record this…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.