OpenVZ Forum


Home » General » Support » Unable to get /proc/swaps file in vz (Unable to get /proc/swaps file in vz)
Unable to get /proc/swaps file in vz [message #37078] Mon, 17 August 2009 22:12 Go to next message
qnix is currently offline  qnix
Messages: 3
Registered: August 2009
Junior Member
Hi,

I would like to know if anyone get the same problem than me. Even if I active the swap (with vzctl set id --meminfo none --save), I never have the /proc/swaps in my vz. (The original problem is that I need it for Oracle). However, the command free -m showed me the good swap info. How could I solve that problem ?

Ubuntu Hardy
Kernel: 2.6.24-24-openvz (also tried with 2.6.24-17-openvz)
vzctl version: 3.0.22 (also tried with 3.0.23)


A test that I made:
sudo vzctl create 203 --ostemplate ubuntu-8.04-amd64-minimal --hostname test
sudo vzctl set 203 --meminfo none --save
sudo vzctl start 203

Result: no /proc/swaps file.

Let me know if you need more info.

Thanks
Alan
Re: Unable to get /proc/swaps file in vz [message #37084 is a reply to message #37078] Tue, 18 August 2009 09:45 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

you need a stable OpenVZ kernel, since 028stab059.6:

snapped out the changelog:

[...]
* Added UB_SWAPINFO resource (for Oracle in CTs, needs vzctl >= 3.0.24)
[...]
-> diff-ubc-swappages-resource-20081101

and the vzctl >= 3.0.24, or git version ->http://git.openvz.org/?p=vzctl;a=commit;h=593a9fbe97f26c1c872f7cfea9f252bc6e9db0e6 )

Bye,
Thorsten
Re: Unable to get /proc/swaps file in vz [message #37090 is a reply to message #37078] Tue, 18 August 2009 13:21 Go to previous messageGo to next message
qnix is currently offline  qnix
Messages: 3
Registered: August 2009
Junior Member
I'm not sure what kernel version "028stab059.6" is supposed to be.

I've also did a "git clone git://git.openvz.org/pub/vzctl", compiled/installed.. but I still don't see the --swappages parameter. and there is still no /proc/swaps

I'm proably missing something... probably the kernel version.

Alan
Re: Unable to get /proc/swaps file in vz [message #37105 is a reply to message #37090] Wed, 19 August 2009 06:06 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

reHi,

sorry UB_SWAPINFO since stable OpenVZ Kernel Version 2.6.18 - 028stab060.2

-> http://wiki.openvz.org/Download/kernel/rhel5/028stab060.2

Bye,
Thorsten
Previous Topic: -bash: fork: Cannot allocate memory Error
Next Topic: Disk quota question.
Goto Forum:
  


Current Time: Sat Jul 13 23:45:33 GMT 2024

Total time taken to generate the page: 0.02134 seconds