Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Enlarging the max size of a dynamically allocated Opnsense VM
« previous
next »
Print
Pages: [
1
]
Author
Topic: Enlarging the max size of a dynamically allocated Opnsense VM (Read 514 times)
thebraz
Newbie
Posts: 26
Karma: 2
Enlarging the max size of a dynamically allocated Opnsense VM
«
on:
March 13, 2024, 05:19:09 pm »
Hi,
I have a virtualbox Opnsense VM whose VDI size has been defined as dynamically allocated till a defined max size.
Now I'd like to increase the max size; tried using the CloneVDI program using the option to increase the size but this leads (seen through "gpart show") to a corrupt ada0 GPT.
Could you please give me advices on how to resize it properly?
Thanks in advance
Logged
thebraz
Newbie
Posts: 26
Karma: 2
[SOLVED]Re: Enlarging the max size of a dynamically allocated Opnsense VM
«
Reply #1 on:
March 15, 2024, 10:24:16 am »
Since I solved the thing using the following steps, could be useful for someone else:
I) From the Hypervisor tools adjust the disk size to what you want
II) Boot opnsense in single-user mode
III) use "gpart show" ---> it should report a corrupt ada0
IV) Fix ada0 with "gpart recover ada0"
V) Now "gpart show" shows a correct ada0 and free space after freebsd-ufs (which in my case has id = 3)
VI) Do the resize of the freebsd partition "gpart resize -i 3 ada0"
VII) "gpart show" shows a resized freebsd-ufs
VIII) "growfs /dev/gpt/rootfs" resize the filesystem
IX) Optional: you can make an "fsck" just to be sure
X) "exit" so the system go in multi-user mode
Best Wishes
«
Last Edit: March 15, 2024, 10:26:36 am by thebraz
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Enlarging the max size of a dynamically allocated Opnsense VM