news
Serverspace has added a new Rocky Linux OS
WB
William Bell
February 10, 2020
Updated May 31, 2023

Increasing disk space in FreeBSD 11/12

FreeBSD VPS

After disk size is increased on control panel, make it usable by OS.

Run terminal as root and enter the following commands.

Restore partition table:

gpart recover da0

The command output may look like this:

  • Option 1:
da0 recovering is not needed

Then restart server and begin with the first step of the guide. To restart the server, run the following command:

shutdown -r now
  • Option 2:
da0 recovered

Then proceed with this guide.

Create new partition:

gpart add -t freebsd-zfs -a 4k da0

The command will display the exact number of the partition that has been added. Note this number. From now on, let's mark partition number with (##) symbols:

da0p(##) added

Add the new partition to zroot: pool, where (##) is the number of the partition created:

zpool add zroot da0p(##)

To view partition information:

gpart show -p

Done.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 4
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.