Views: 1647 (Data available since 06.02.2017)

Attention! For operations, described in this lesson, *nix-systems administration knowledge is required. Prior to starting of operations, it is recommended to perform a full ┬źBitrix Virtual Appliance┬╗ backup.

Second method to increase the space in BitrixVA is to expand the size of already existing virtual appliance hard drive.

This example uses Virtual Appliance BitrixVA for VMWare and demonstrates how to increase the size of system hard drive to 100GB.

  1. To do that, it is necessary to launch VMWare Player, select the list of BitrixVA virtual appliance in the VA list and press Edit virtual machine settings:

  2. In the device window, select Hard Disk the size of which should be increased and activate Expand item in the Utilities menu:

  3. In the opened Expand Disk Capacity window, indicate the required size of virtual disk in the field Maximum disk size (GB) in gigabytes (in this example - 100GB):

  4. After that, it is necessary to launch BitrixVA Virtual Appliance, login under root user and go to command line (console) by selecting the 0. Exit menu item in the Virtual Appliance.
  5. See the disk and its assigned letter designation via console command:
    fdisk -c -u -l

    where for the disk /dev/sda:

    • sda1 - disk boot sector;
    • sda2 - swap file;
    • sda3 - partition, where the operating system is installed and which should be expanded specifically.


  6. Launch the fdisk utility to work with /dev/sda disk:
    fdisk -c -u /dev/sda
  7. Delete partition sda3 via command d, by selecting Partition number (1-4): 3:

    Attention! Data on the disk is not deleted, in this case, only the partition record is deleted from the disk partition table.

  8. Next, create a new partition via the n command:
    • Primary (primary partition) - p and Partition number (1-4): 3 command;
    • simultaneously, first and last sectors could be selected by default - this way, partition will be created by using all free space on the disk.

  9. To save all the modifications of updated partition table and to exit from fdisk, enter the w command:

  10. For the system to load a new partition table, reboot the Virtual Appliance:
    reboot
  11. After the reboot, increase the size of file system for the partition /dev/sda3 via the resize2fs utility:
    resize2fs /dev/sda3

You can check the partition increase via the df command:

The same procedure modifies the disk size in other virtualization environments.





Courses developed by «Bitrix», Inc.