This article will explain how to expand the logical volume size of the GravityZone Virtual Appliance to grow beyond the OVA template size provided on download.bitdefender.com. This process does not overwrite the pre-existing data, it will add on more space to the pre-existing Hard Drive.
When the appliance suffers from lack of disk space, you can encounter a very slow appliance, updates are not being downloaded, or even lost database connectivity when free space is becoming very limited.
Add a new virtual Hard Drive
1. Turn off the Virtual Appliance
2. Log into the VMware Web Client or vSphere Client (or another hypervisor management tool)
3. Select Edit Settings for the Virtual Appliance
4. Click the Add button, and select the Hard Disk as the device type then select Next
5. Input the size of the disk equal to the amount you would like to expand
Expand the Virtual Hard Drive
1. Login with bdadmin in the virtual console using the unix password you set at deployment.
2. Check the created virtual disk
Do “sudo fdisk -l” in a SSH or console window to check if the system detects the newly created virtual hard disk. A brand new Disk /dev/sdb is listed from the fdisk command.
3. Create the partition by running the following commands in order:
sudo fdisk /dev/sdb
4. Check that the disk has been partition by running:
sudo fdisk -l
5. Create a Physical Volume (PV) with the following command:
sudo pvcreate /dev/sdb1
6. Extend the Volume Group (VG) size to use the new PV with the following command:
sudo vgextend gzva /dev/sdb1
To find oud what the path for the logical volume is check it with mount:
7. Extend the Logical Volume (LV) size to use all of the VG free space with the following command:
sudo lvm lvextend -l +100%FREE /dev/gzva/root
8. Resize the entire file system with the following command:
sudo resize2fs -p /dev/mapper/gzva-root
(This command can take a little bit depending on the amount of space being added)
9. Check the size of the disk by running the following command:
Another check to see if the disk is expanded check:
sudo df -h
If the bitdefender console still has some troubles reaching the backend, reboot the appliance and have some patience as the garbage collection and integrity checks take place. After a while it is possible to log in again.
Vgs = list volume groups
Lvs = list logical volumes