This section describes how to modify the swap size (in MB). It contains the following topics:
You can modify the current swap size using modifyjeos
. In the following example, the default swap size (512 MB) is modified to 1 GB:
Note:
This procedure applies to guest vServers created by using version 2.0.4.x.x (or earlier) of the Exalogic Guest Base Template. For guest vServers creating using v2.0.6.x.x of the Exalogic Guest Base Template, you can manage disks by using LVM commands, as described in Managing LVM Partitions on Guest vServers.
# modifyjeos -f System.img -S 1024
When you start the VM after modifying the swap size, it may start without any active swap. To fix this problem, complete the following steps:
To add swap manually (for example, 1 GB), complete the following steps:
Note:
This procedure applies to guest vServers created by using version 2.0.4.x.x (or earlier) of the Exalogic Guest Base Template. For guest vServers creating using v2.0.6.x.x of the Exalogic Guest Base Template, you can manage disks by using LVM commands, as described in Managing LVM Partitions on Guest vServers.