Re: Heartbeat configuration for OpenVZ's VE [message #43448 is a reply to message #43443] |
Fri, 09 September 2011 23:01  |
seanfulton
Messages: 105 Registered: May 2007
|
Senior Member |
|
|
My haresources has the following format:
primary-node IPaddr3::74.201.40.2 mon
IPadd3 is the heartbeat script to start/stop/monitor the ip address of 74.201.40.2 and mon is a program that runs when the IP is up (mon runs, when it "dies" heartbeat will fail).
I'm not familiar with the syntax you are using. It may be a mistake, or it may be correct, I am not sure. I don't think the OOM errors have anything to do with OpenVZ per se. If your haresources is correct (and it very well may be, I don't know all the configs, then you may just have too little memory allocated to the VE. Did you check /proc/user_beancounters on the host?
If you are getting errors there, do yourself a favor and don't try to tweak the settings yourself--it is very complicated. The secret I found in a couple of posts is to use vzsplit. If you want to put 5 VEs on this machine, just do vzsplit -n 5 -f 5 (I think check the man page) and it will create a ve-5.conf config file in /etc/vz/conf. Then you can do vzctl set <VEID> --applyconfig 5 --save (again, I am not on a machine right now to check the syntax, but you can put it together) and it will config your VE with 1/5 of the resources on the machine. Solves a lot of problems.
sean
|
|
|