[Lxc-users] lxc unix socket, what is it for?
Hi, I'm working with a setup where I store my containers in a place different than /var/lib/lxc/ and I have no issue working with them. However, looking at lxc-ls implementation I noticed there is a unix socket created at the /var/lib/lxc location: unix 2 [ ACC ] STREAM LISTENING 4573 @/var/lib/lxc/node01/command What is this for? is it required for anything basic I'm overlooking here? In that case, any way I can change that dir to where I store my vms? looking at the source code it doesn't look like. Thanks -- Arkaitz -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] disk limit?
Is there an easy way to set up a disk limit for a container? I could create a LVM partition for each container, but this is not what I call easy :-} -- Ullrich Horlacher Server- und Arbeitsplatzsysteme Rechenzentrum E-Mail: horlac...@rus.uni-stuttgart.de Universitaet Stuttgart Tel:++49-711-685-65868 Allmandring 30 Fax:++49-711-682357 70550 Stuttgart (Germany) WWW:http://www.rus.uni-stuttgart.de/ -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] disk limit?
Quoting Ulli Horlacher (frams...@rus.uni-stuttgart.de): Is there an easy way to set up a disk limit for a container? I could create a LVM partition for each container, but this is not what I call easy :-} (Not trying to argue, just probe) Why do you call it not easy? Because you don't have spare partitions to dedicate to a pv? Or because you're not used to using lvm? If the former, then you could use a loopback filesystem instead of an LVM. I assume that'll impact performance, but I've not tested it to see by how much. If the latter, then in the next few months I intend to push some stuff to lxc to integrate LVM usage. Daniel had had comments to my first patches so it'll likely change, but what I'm using right now let's me just do lxc-lvmcreate in place of lxc-create to create a lvm-backed lxc partition, and 'lxc-clone -s -o c1 -n c2' lets me create container c2 with a lvm snapshot of c1's rootfs. (See http://s3hh.wordpress.com/2011/03/30/lxc-lvm-clone/ and http://s3hh.wordpress.com/2011/03/30/one-more-lxc-clone-update/) There's no cgroup to do what you want, though. -serge -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc unix socket, what is it for?
Yeah, it is an abstract socket, but what is it for? Thanks -- Arkaitz On Wed, May 18, 2011 at 4:51 PM, C Anthony Risinger anth...@extof.mewrote: On Wed, May 18, 2011 at 7:16 AM, arkai...@gmail.com arkai...@gmail.com wrote: Hi, I'm working with a setup where I store my containers in a place different than /var/lib/lxc/ and I have no issue working with them. However, looking at lxc-ls implementation I noticed there is a unix socket created at the /var/lib/lxc location: unix 2 [ ACC ] STREAM LISTENING 4573 @/var/lib/lxc/node01/command What is this for? is it required for anything basic I'm overlooking here? In that case, any way I can change that dir to where I store my vms? looking at the source code it doesn't look like. isn't that an abstract socket? it shouldn't actually exist on the FS ... C Anthony -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] disk limit?
On 18.05.2011 17:52, Serge Hallyn wrote: Why do you call it not easy? Because you don't have spare partitions to dedicate to a pv? Or because you're not used to using lvm? If the former, then you could use a loopback filesystem instead of an LVM. I assume that'll impact performance, but I've not tested it to see by how much. If the latter, then in the next few months I intend to push some stuff to lxc to integrate LVM usage. Daniel had had comments to my first patches so it'll likely change, but what I'm using right now let's me just do lxc-lvmcreate in place of lxc-create to create a lvm-backed lxc partition, and 'lxc-clone -s -o c1 -n c2' lets me create container c2 with a lvm snapshot of c1's rootfs. (See http://s3hh.wordpress.com/2011/03/30/lxc-lvm-clone/ and http://s3hh.wordpress.com/2011/03/30/one-more-lxc-clone-update/) There's no cgroup to do what you want, though. I might be wrong, but I think the biggest disadvantage (show-stopper) of lvm/ loopback is that the partition/ image will consume the whole space even when not a single file is actually stored in the fs. For example imagine you have a 500 GB hardisk and want to create 50 vservers with an 50 GB diskspace limit each. This is not possible with lvm or loopback devices because one would need 2500 GB storage. But it's a very common use case because in average only 5% of the vservers will actually use 50GB and so you'll never run out of space if the space would be allocated on demand. Corin -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc unix socket, what is it for?
On 05/18/2011 06:17 PM, arkai...@gmail.com wrote: Yeah, it is an abstract socket, but what is it for? This af_unix socket is used for: (1) sending command to lxc-start (the supervisor of the container's init) - 'stop': used by lxc-stop to kill the container, the lxc-stop exits when the af_unix connection is closed, so we have the guarantee the 'stop' will return after the container dies, so we can call lxc-start right after lxc-stop. - 'pid' : get the real pid of the init process - 'state' : get the state of the container which is monitored by lxc-start (2) get a tty file descriptor using the fd passing af_unix mechanism, so lxc-console can work. -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users