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.
- 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:
- In the device window, select Hard Disk the size of which should be increased and activate Expand item in the Utilities menu:
- 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):
- 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.
- See the disk and its assigned letter designation via console command:
fdisk -c -u -l
where for the disk
- sda1 - disk boot sector;
- sda2 - swap file;
- sda3 - partition, where the operating system is installed and which should be expanded specifically.
- Launch the fdisk utility to work with
fdisk -c -u /dev/sda
- 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.
- 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.
- To save all the modifications of updated partition table and to exit from fdisk, enter the w command:
- For the system to load a new partition table, reboot the Virtual Appliance:
- After the reboot, increase the size of file system for the partition
/dev/sda3 via the resize2fs utility:
You can check the partition increase via the df command:
The same procedure modifies the disk size in other virtualization environments.