FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
pdipen
Staff
Staff
Article Id 362801
Description This article describes how to increase the hard drive size in a FortiNAC virtual appliance.
Scope FortiNAC.
Solution

From the Console of the Virtual Appliance:

  1. Power off the virtual machine (VM) whose disk space needs to be increased.
  2. Remove all snapshots. Snapshots must be removed before increasing the hard drive size in vSphere.
  3. Back up or create a copy of the guest operating system.
  4. Navigate to the Hardware tab in the VM settings and adjust the hard drive size. For example, set the new size to 100 GB.
  5. Reboot the virtual appliance.

 

After Reboot:
Once the system has restarted, log in as the root user via SSH or a console window to continue with the configuration.

  1. Shut down the FortiNAC processes:


> shutdownCampusMgr

 

  1. Verify the disk space, physical volumes, partitions, volume groups, and logical volumes being used.

 

> df -lh

 

Capture.PNG

 

  1. Verify the Physical Volumes. In this example, physical volume /dev/sda2 is part of the CentOS system.

 

> pvs

 

Capture1.PNG

 

  1. Verify Partition:

 

fdisk –l –u /dev/sda

 

Capture2.PNG

 

  1. Verify Volume Groups:

 

vgdisplay

 

Capture3.PNG

 

  1. Verify Logical volumes:

 

lvdisplay

 

Capture4.PNG

 

  1. Create a Primary Partition for newly allocated space with type 8e:

 

> fdisk /dev/sda

 

Capture5.PNG

 

Capture6.PNG

 

  1. Reboot the VM:

 

> reboot

 

  1. Verify the new partition:

 

fdisk -l -u

 

Capture7.PNG

 

  1. Create a new Physical Volume for a new space that was added:

 

> pvcreate /dev/sda3

 

Capture8.PNG

 

  1. Extend the volume group by adding the physical volume that was created in step 10:

 

> vgextend centos /dev/sda3

 

  1. Verify available free space in the Volume group:

 

> vgdisplay centos

 

Capture9.PNG

 

  1. Verify the name of the logical volume path to extend:

 

> lvdisplay

 

Capture10.PNG

 

  1. Extend the logical volume by adding free space to the volume group:

 

> lvextend -L+50G /dev/centos/root

 

Capture11.PNG

 

  1. Verify new logical volume size:

 

> lvdisplay

 

Capture12.PNG

 

  1. Resize the Centos file system:

 

> xfs_growfs /dev/centos/root

 

Capture13.PNG

 

  1. Verify the disk space:

 

> df -lh

 

Capture14.PNG

Contributors