Re: [Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

2012-03-13 Thread Andrew Vagin

Hello Benjamin,

Pls, file this bug in https://bugzilla.openvz.org/

On 02/14/2012 03:07 PM, Benjamin Henrion wrote:

On Tue, Feb 14, 2012 at 11:48 AM, Benjamin Henrionb...@udev.org  wrote:

On Tue, Feb 14, 2012 at 11:29 AM, Benjamin Henrionb...@udev.org  wrote:

On Tue, Feb 14, 2012 at 11:26 AM, Benjamin Henrionb...@udev.org  wrote:

Hi,

I am trying updatedb on a gentoo openvz container, the HN is a debian
squeeze kernel.

Updatedb segfaults, and when I strace it, I find that:

# cat /proc/self/mountinfo
cat: /proc/self/mountinfo: Cannot allocate memory

Any idea how to fix that?

There is a bug filed here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655385

But I have no idea how to fix it.

I see there was a kernel crash here, that might explain something:

In fact, the updatedb **triggered** the kernel module crash. Not the
other way around.

I tried with the latest update from debian:

Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-41) (b...@decadent.org.uk)

Same kernel crash.



___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

2012-03-13 Thread Andrew Vagin

Hello again

This bug is fixed in latest OpenVZ RHEL6 kernel. Actually RHEL6 kernel 
is fully supported by OpenVZ team now, it has better performance and a 
few new features like vswap. Enjoy.


[root@dhcp-10-30-22-214 /]# cat /proc/self/mountinfo
33 26 0:21 /private/101 / rw,relatime - simfs /vz/private/101 
rw,usrquota,grpquota

40 33 0:25 / /proc rw,relatime - proc proc rw
41 33 0:23 / /sys rw,relatime - sysfs sysfs rw
42 33 0:27 / /dev/pts rw,relatime - devpts none rw,mode=600,ptmxmode=000
43 40 0:28 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc none rw
[root@dhcp-10-30-22-214 /]# uname -a
Linux dhcp-10-30-22-214.sw.ru 2.6.32-042stab049.6 #1 SMP Mon Feb 6 
19:17:43 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux


You can use latest RHEL6-based kernel builds on your Debian or Ubuntu 
machine. Here's how.


1. Get the latest kernel from either Download/kernel/rhel6-testing or 
Download/kernel/rhel6. You need vzkernel and vzkernel-devel packages 
only, with the -devel being optional.


2. Install fakeroot and alien:
 apt-get install alien fakeroot

3. Convert these two rpms to debs using alien. This is
 fakeroot alien --to-deb --scripts --keep-version vzkernel-*.rpm

4. Install debs as usual. Reboot. Enjoy.
 dpkg -i vzkernel*.deb

On 02/14/2012 03:07 PM, Benjamin Henrion wrote:

On Tue, Feb 14, 2012 at 11:48 AM, Benjamin Henrionb...@udev.org  wrote:

On Tue, Feb 14, 2012 at 11:29 AM, Benjamin Henrionb...@udev.org  wrote:

On Tue, Feb 14, 2012 at 11:26 AM, Benjamin Henrionb...@udev.org  wrote:

Hi,

I am trying updatedb on a gentoo openvz container, the HN is a debian
squeeze kernel.

Updatedb segfaults, and when I strace it, I find that:

# cat /proc/self/mountinfo
cat: /proc/self/mountinfo: Cannot allocate memory

Any idea how to fix that?

There is a bug filed here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655385

But I have no idea how to fix it.

I see there was a kernel crash here, that might explain something:

In fact, the updatedb **triggered** the kernel module crash. Not the
other way around.

I tried with the latest update from debian:

Linux version 2.6.32-5-openvz-amd64 (Debian 2.6.32-41) (b...@decadent.org.uk)

Same kernel crash.



___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

2012-03-13 Thread Benjamin Henrion
2012/3/13 Andrew Vagin ava...@parallels.com:
 Hello again

 This bug is fixed in latest OpenVZ RHEL6 kernel. Actually RHEL6 kernel is
 fully supported by OpenVZ team now, it has better performance and a few new
 features like vswap. Enjoy.

 [root@dhcp-10-30-22-214 /]# cat /proc/self/mountinfo
 33 26 0:21 /private/101 / rw,relatime - simfs /vz/private/101
 rw,usrquota,grpquota
 40 33 0:25 / /proc rw,relatime - proc proc rw
 41 33 0:23 / /sys rw,relatime - sysfs sysfs rw
 42 33 0:27 / /dev/pts rw,relatime - devpts none rw,mode=600,ptmxmode=000
 43 40 0:28 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc none rw
 [root@dhcp-10-30-22-214 /]# uname -a
 Linux dhcp-10-30-22-214.sw.ru 2.6.32-042stab049.6 #1 SMP Mon Feb 6 19:17:43
 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux

 You can use latest RHEL6-based kernel builds on your Debian or Ubuntu
 machine. Here's how.

Can you give a pointer to the source patches fixing this bug?

--
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-3500762
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

2012-03-13 Thread Benjamin Henrion
2012/3/13 Andrew Vagin ava...@parallels.com:
 On 03/13/2012 01:09 PM, Benjamin Henrion wrote:

 2012/3/13 Andrew Vaginava...@parallels.com:

 Hello again

 This bug is fixed in latest OpenVZ RHEL6 kernel. Actually RHEL6 kernel is
 fully supported by OpenVZ team now, it has better performance and a few
 new
 features like vswap. Enjoy.

 [root@dhcp-10-30-22-214 /]# cat /proc/self/mountinfo
 33 26 0:21 /private/101 / rw,relatime - simfs /vz/private/101
 rw,usrquota,grpquota
 40 33 0:25 / /proc rw,relatime - proc proc rw
 41 33 0:23 / /sys rw,relatime - sysfs sysfs rw
 42 33 0:27 / /dev/pts rw,relatime - devpts none rw,mode=600,ptmxmode=000
 43 40 0:28 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc none rw
 [root@dhcp-10-30-22-214 /]# uname -a
 Linux dhcp-10-30-22-214.sw.ru 2.6.32-042stab049.6 #1 SMP Mon Feb 6
 19:17:43
 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux

 You can use latest RHEL6-based kernel builds on your Debian or Ubuntu
 machine. Here's how.

 Can you give a pointer to the source patches fixing this bug?

Is this patch published somewhere in the GIT?

-- 
Benjamin Henrion bhenrion at ffii.org
FFII Brussels - +32-484-566109 - +32-2-3500762
In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators.
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

2012-03-13 Thread Andrew Vagin



Is this patch published somewhere in the GIT?


It's published, but it's not in GIT. You can find this code in source rpms:
http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab049.6/vzkernel-2.6.32-042stab049.6.src.rpm
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: RE :RE: [Users] where are vm

2012-03-13 Thread Scott Dowdle
Greetings,

- Original Message -
 yes i find in vz/private/(id of your computer)
 but there this folder too i think vz/root/(id of your computer)
 but maybe there is more folder ...
 i find this folder too
 var/lib/vz/private/(id of your computer)
 
 so i don t really know if there are 3 folder or more or if they
 aren't all needed

/vz/private/{ctid}/ is the permanent home for the container filesystem.

/vz/root/{ctid}/ contents are there when the container is running.

Debian likes to put things under /var/lib/vz/ and I think they just make /vz/ a 
symlink to it.

A container = 1) It's config file (/etc/vz/conf/{ctid}.conf) and it's 
filesystem /vz/private/{ctid}.  There is also a quota file in 
/var/vzquota/quota.{ctid}.  These locations may vary from distro to distro as 
previously mentioned.

Kir announced ploop 1.0 today... but the kernel and tools aren't available 
quite yet... but coming soon... for those who want to put a container on a disk 
image file.  See this wiki page and the PDF of the presentation about ploop: 
http://wiki.openvz.org/Ploop

ploop will be an addition and not replace what we have now... it'll be an 
option for those who want it.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users