FortiSOAR Discussions

Expanding Root Partition for FortiSOAR Upgrade: A Step-by-Step Guide

Ensuring a smooth upgrade of your FortiSOAR system requires addressing disk space limitations. This guide provides comprehensive steps to increase the root partition size, allowing you to proceed with the upgrade seamlessly.
Steps to Expand Root Partition:

1) Stop all the Services
# csadm services --stop


2) use "# fdisk /dev/sda" to create a LVM Partition.
# fdisk /dev/sda
Press n To Create a new partition
Press p To Choose partition as a primary partition
Press Enter to Choose which number of the partition to be selected to this new partition (please go ahead with default number)
Press Enter 2 times here system will select the First sector and Last sector (by default the system will allocate all the free space to this partition)
Press t to change the partition Type and enter partition number (here system will show the new partition number as default)
type '8e' for Hex code
Press p to print the new partition (along with old partitions)
Press w to write the changes


3) create new PV (Physical Volume)
# pvcreate /dev/sda3


4) expand the vg with newly created PV space.
# vgextend vgos /dev/sda3
Check the size of the VG here we can see the Free space
# vgs


5) Extend the logical volume:
lvextend -L+(disk-size) /dev/mapper/vgos-root
# lvextend -L+10G /dev/mapper/vgos-root
lvextend -l +100%FREE /dev/volgroup/logvol


6) After Extending, we need to re-size the file-system:
# xfs_growfs /dev/mapper/vgos-root


7) start all the services
# csadm services --start
By following these meticulous steps, you can successfully resolve disk space issues, expand the root partition, and proceed with the FortiSOAR system upgrade. Ensure precise execution of each command for a trouble-free experience.
Key Acronyms: LVM - Logical Volume Manager, PV - Physical Volume, VG - Volume Group, LV - Logical Volume