Swappages set for OpenVZ container

From vpsget wiki
Revision as of 22:55, 19 September 2013 by Ndi (talk | contribs)
Jump to: navigation, search

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.

""