
Quote from: nero355 on Today at 12:16:53 AMSo the file you create with the touch command has the special name that triggers the expansion ?Correct. The rc script checks whether this file exists. If it does, the partition and file systems modifications are executed and the file is deleted, so this happens only once:
GROWFS_MARKER=/.probe.for.growfs
[...]
if [ -f ${GROWFS_MARKER} ]; then
if [ -n "${ROOT_IS_UFS}" ]; then
grow_partition ${ROOT_IS_UFS}
growfs -y "/"
elif [ -n "${ROOT_IS_ZFS}" ]; then
zpool list -Hv ${ROOT_IS_ZFS} | while read NAME MORE; do
if [ "${NAME}" != "${ROOT_IS_ZFS}" ]; then
grow_partition ${NAME}
zpool online -e ${ROOT_IS_ZFS} ${NAME}
fi
done
fi
fi
[...]
rm -f ${GROWFS_MARKER}
Quote from: Patrick M. Hausen on January 19, 2026, 10:57:36 AMI am not quite sure from the top of my head if the vdev is expanded automatically today or if you still need "zpool online -e <pool> <partition>".When you are talking about a regular ZFS NAS setup with let's say 5 HDD's and RADIZ2 configured and then replace all 5 of them with larger HDD's then ZFS will automatically expand the VDEV for some years now :)
Quote from: Maurice on January 19, 2026, 06:36:45 PMOPNsense does the partition and file system adjustments automatically, for both UFS and ZFS. You trigger this by creating a "magic file":So the file you create with the touch command has the special name that triggers the expansion ?
- touch /.probe.for.growfs
- Shutdown OPNsense and expand the disk image (qemu-img resize / Resize-VHD / qm resize / ...)
- There is no step 3. When OPNsense boots, the rc script performs its magic.
Quote from: Maurice on January 19, 2026, 06:36:45 PMShutdown OPNsense
Quote from: meyergru on January 19, 2026, 10:35:55 AMYou should change the title to include "with an UFS install" - I think you need different (probably no steps at all) inside the VM for ZFS installs.