Views: 5260
Last Modified: 26.09.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.

BitrixVA Virtual Appliance is supplied with 256MB Swap partition, and it is not connected in the ami image by default. That is why, during operation, there could be a necessity to expand the swap partition.

As in the case with expansion of free space, the simplest - is to add an additional disk and create swap partition on it, or is to create a swap file.

For this:

  • connect the disk to the Virtual Appliance or create a swap file:
    dd if=/dev/zero of=/swapfile bs=1M count=1024
  • create swap partition on disk:
    mkswap /dev/sdb1
    or in a file:
    mkswap /swapfile
  • Connect swap partition:
    swapon /dev/sdb1
    or swap file:
    swapon /swapfile
  • and finally, add the record about a new swap partition in /ets/fstab, to avoid manual enabling after each reloading:
    /dev/sdb1 none swap sw 0 0
    or add the record about the swap file:
    /swapfile none swap sw 0 0

Courses developed by Bitrix24