Difference between revisions of "Swappages set for OpenVZ container"

From vpsget wiki
Jump to: navigation, search
 
Line 16: Line 16:
  
 
also check virtual machine .conf file for sure.
 
also check virtual machine .conf file for sure.
 +
 +
For adding 256M of swap manually, edit the following line in the CT conf file:
 +
SWAPPAGES="0:65536"
 +
  
 
  "[[Category:Admin area]]"
 
  "[[Category:Admin area]]"

Latest revision as of 11:39, 5 March 2015

If you face that you need swap usage inside some container (for example it's if customer would like to install Oracle on vps) You should perform next command from the OpenVZ Node:

vzctl set <vzID> --swappages <value>:<value>M --save


For example set upper swap border equal to 2048 *(as Oracle installer needs)

vzctl set 654 --swappages 0:2048M --save

Note that ins SolusVM virtual machine conf file can be overwritten sometimes (os reinstall, conf change from panel). coz probably better to make config via solusvm admin cp, and set the next values under "Resources" config section  : VSwap 2048MB Enable VSwap - yes

also check virtual machine .conf file for sure.

For adding 256M of swap manually, edit the following line in the CT conf file:

SWAPPAGES="0:65536"


""