Increasing disk space in FreeBSD 11/12
Run terminal as root and enter the following commands.
Restore partition table:
gpart recover da0The command output may look like this:
- Option 1:
da0 recovering is not neededThen 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 recoveredThen proceed with this guide.
Create new partition:
gpart add -t freebsd-zfs -a 4k da0The 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(##) addedAdd the new partition to zroot: pool, where (##) is the number of the partition created:
zpool add zroot da0p(##)To view partition information:
gpart show -pDone.
33145
North Miami, FL
2520 Coral Way apt 2-135
+1 302 425-97-76
700
300
33145
North Miami, FL
2520 Coral Way apt 2-135
+1 302 425-97-76
700
300
700
300