greae.blogg.se

Opnsense sensei
Opnsense sensei












opnsense sensei

Gpart resize -i 3 da0 #freebsd-usf id = 3 #we moved now the swap to the end of disk, let's increase root partition size Swapon /dev/gpt/swapfs #start the swapping on the system Gpart modify -i 4 -l swapfs da0 #assign label for the new partition for opnsense booting

opnsense sensei

Gpart show #confirm the swap place and size is correct (if something wrong, delete it and recalculate and repeat the previous step) Gpart add -t freebsd-swap -b da0 #get the swap start from calculator and replace in the placeholder. #lets move swap to the end of disk (download the calculator down to help and use sector start & free size in calculator) Gpart show #get free space sector start and size in notepad Gpart delete -i 4 da0 #freebsd-swap id = 4 Gpart show #check the new free space is added Gpart recover da0 #recover the new space added #after executing show command you gonna get this info Start using these commands in sequence.Choose shell command (Num 8) to access shell and use freeBSD commands.Connect to OPNSense console and login with root account.Increase virtual machine disk size from ESXi vShpere Client (Web or Desktop) to the desired new larger size.The steps don’t require shut downing the firewall or use live usb, it’s straight forward steps while the firewall is operational, but be caution and alert to what you are doing. In this article i will describe how to move the swap partition to the end of the disk and scale up root partition for OPNSense. Move the swap partition to the end of the disk (Recommended).Remove the swap partition (Not recommended).To scale up root partition the free space should be continuous and available after the target partition. The problem for me was the swap partition, cause the new free space appended on the end of the disk and i can’t used it because the swap partition is on my way. After while of using OPNSense firewall, i needed to resize my disk on ESXi and scale up the disk space for OPNSense.Īfter investigating this issue online, i found that i need to resize the disk from command line and i could not find one clear source to help me on this task.














Opnsense sensei