OpenVZ Forum



Members   Search      Help    Register    Login    Home
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 18:12 Go to next message
qnix is currently offline qnix
Messages: 3
Registered: August 2009
Junior Member
From: *239-20-96.mc.videotron.ca
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 05:45 Go to previous messageGo to next message
curx is currently offline curx
Messages: 681
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

From: *bisping.net
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


OpenVZ Power User
http://systs.org/
Re: Unable to get /proc/swaps file in vz [message #37090 is a reply to message #37078] Tue, 18 August 2009 09:21 Go to previous messageGo to next message
qnix is currently offline qnix
Messages: 3
Registered: August 2009
Junior Member
From: *svr.royaume.com
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 02:06 Go to previous message
curx is currently offline curx
Messages: 681
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

From: *sys3.org
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


OpenVZ Power User
http://systs.org/
Previous Topic:-bash: fork: Cannot allocate memory Error
Next Topic:Disk quota question.
Goto Forum:
  


Current Time: Wed Jun 19 14:17:42 EDT 2013
Powered by FUDforum Powered by Parallels Virtuozzo Containers