Difference between revisions of "Swappages set for OpenVZ container"

From vpsget wiki
Jump to: navigation, search
(Created page with "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 N...")
 
Line 9: Line 9:
 
  vzctl set 654 --swappages 0:2048M --save
 
  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.
  
 
  "[[Category:Admin area]]"
 
  "[[Category:Admin area]]"

Revision as of 22:55, 19 September 2013

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.

""