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.
- 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:
or in a file:
- Connect swap partition:
or swap file:
- 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