OpenVZ Forum


Home » General » Support » Problems with swap
Problems with swap [message #33195] Sat, 27 September 2008 18:10 Go to next message
Johnson is currently offline  Johnson
Messages: 4
Registered: September 2005
Junior Member
Hi All,

I setup an openVZ server and installed 2 VEs there. All is good except one thing: there is no swap available for VEs. On parent server all looks ok:

================================================
# free
total used free shared buffers cached
Mem: 4141608 3834984 306624 0 178040 3095728
-/+ buffers/cache: 561216 3580392
Swap: 4096564 0 4096564
================================================

but on VEs it's not:

================================================
# free
total used free shared buffers cached
Mem: 4141608 485956 3655652 0 0 0
-/+ buffers/cache: 485956 3655652
Swap: 0 0 0
================================================

So the question is: how can I setup swap for VEs?

Thanks in advance for any help.
Re: Problems with swap [message #33197 is a reply to message #33195] Sat, 27 September 2008 19:31 Go to previous messageGo to next message
LinuxGeek is currently offline  LinuxGeek
Messages: 13
Registered: April 2008
Location: Egypt
Junior Member
Hello,
check this links will help you to understand
( http://wiki.openvz.org/UBC_systemwide_configuration#Memory_a nd_swap_space )
and
( http://wiki.openvz.org/Setting_UBC_parameters )

and to hide your UBC
vzctl set CTID --meminfo none --save --setmod restart


regards
Alaa Eldin

[Updated on: Sat, 27 September 2008 19:31]

Report message to a moderator

Re: Problems with swap [message #33203 is a reply to message #33197] Sun, 28 September 2008 07:35 Go to previous message
Johnson is currently offline  Johnson
Messages: 4
Registered: September 2005
Junior Member
Hi Alaa,

thanks much, that helped a lot! Smile I read the documentation before posting here but not carefully enough so missed the right section.
Previous Topic: How to disable venet in a VE
Next Topic: *SOLVED* iptables: No chain/target/match by that name
Goto Forum:
  


Current Time: Sun Sep 15 11:18:07 GMT 2024

Total time taken to generate the page: 0.03457 seconds