Resize Bitdefender GravityZone virtual appliance


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 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:

 sudo mount

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


  1. Hi,
    Thank you so much for this guide. I’m not a Linux guy, so i would never had managed this with out your instructions 🙂

    Kind Regards,
    Henrik Kyed

  2. Aldin Enriquez

    There is a error with Step 8.
    8. Resize the entire file system with the following command:

    sudo resize2fs -p /dev/mapper/gz-gz–data

    It should be the following below.
    sudo resize2fs -p /dev/mapper/gzva-root

  3. Hugo M

    In step 8, I changed a bit the line: It said:

    sudo resize2fs -p /dev/mapper/gz-gz–data

    But showed an error, so I use this:

    sudo resize2fs -p /dev/mapper/gzva-root

    Then, it worked.

    Nice job.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.