[lxc-users] Setting Shared Memory Size in LXC, it's possible?

Pablo Silva psilvao at gmail.com
Fri Aug 14 11:30:11 UTC 2015


Hi Fajar!

   I've just solved the problem, with only change the following options DB2
could start it...

   lxc.mount.auto = proc:rw sys:rw

   The default options was:

    lxc.mount.auto = proc:mixed sys:ro

Thanks!

-Pablo

On Fri, Aug 14, 2015 at 1:23 AM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Fri, Aug 14, 2015 at 1:07 AM, Pablo Silva <psilvao at gmail.com> wrote:
> > Hi Team!
> >
> >  We are working with LXC version lxc-1.0.7-1.el6.x86_64 in centos 6.6,
> We've
> > created a container using the following command:
> >
> >  lxc-create -t centos -n 32-nuevo --dir=/opt/lxc/32-nuevo/rootfs
> >
> >  But when we try to use DB2 inside the container, we get the following
> > message:
> >
> >  [db2admin at 32-nuevo ~]$ db2start
> >  SQL1220N  The database manager shared memory set cannot be allocated.
> >
> >
> > Question: Are there some ways to increase the shared memory for this
> > container?
>
> I don't think there's an easy way.
>
> Do you know what exact commands it execute? For example, if it's
> adjusting values on /proc/sys/kernel/shmmax like oracle, I don't think
> there's currently a way to allow containers to do that. However at
> least in ubuntu vivid with lxc-1.1.2, the value is already very big,
> so there's no need to manually adust it
>
> --
> Fajar
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150814/9803b2a2/attachment.html>


More information about the lxc-users mailing list