Quote from: Maurice on January 19, 2026, 06:36:45 PMShutdown OPNsense
Thanks for the tip.
When I did my steps above, I did not have to shutdown or restart opnsense.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote 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.
ssh root@proxmox
root@proxmox:~# qm resize 100 scsi1 +120G
Size of logical volume pve/vm-100-disk-1 changed from 30.00 GiB (7680 extents) to 150.00 GiB (38400 extents).
Logical volume pve/vm-100-disk-1 successfully resized.
# originally wanted 150G but later decided i wanted 200G
root@proxmox:~# qm resize 100 scsi1 +50G
Size of logical volume pve/vm-100-disk-1 changed from 150.00 GiB (38400 extents) to 200.00 GiB (51200 extents).
Logical volume pve/vm-100-disk-1 successfully resized.
# checking size of the VM disk after resize
root@proxmox:~# fdisk /dev/mapper/pve-vm--100--disk--1 -l
Disk /dev/mapper/pve-vm--100--disk--1: 200 GiB, 214748364800 bytes, 419430400 sectors
Device Start End Sectors Size Type
/dev/mapper/pve-vm--100--disk--1-part1 40 532519 532480 260M EFI System
/dev/mapper/pve-vm--100--disk--1-part2 532520 533543 1024 512K FreeBSD boot
/dev/mapper/pve-vm--100--disk--1-part3 533544 419430359 418896816 199.7G FreeBSD UFS
ssh root@OPNsense
root@OPNsense:~ # gpart show
=> 40 419430320 da0 GPT (200G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 62380976 3 freebsd-ufs (30G)
62914520 356515840 - free - (170G)
root@OPNsense:~ # gpart resize -i 3 da0
da0p3 resized
root@OPNsense:~ # gpart show
=> 40 419430320 da0 GPT (200G)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 418896816 3 freebsd-ufs (200G)
root@OPNsense:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/rootfs 29G 12G 15G 44% /
root@OPNsense:~ # growfs /
Device is mounted read-write; resizing will result in temporary write suspension for /.
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/gpt/rootfs, mounted on /, from 30GB to 200GB? [yes/no] yes
root@OPNsense:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/rootfs 193G 12G 166G 7% /