Re: [Lxc-users] disk limit?

2011-05-19 Thread Corin Langosch
On 18.05.2011 20:59, Serge Hallyn wrote: Certainly not for loopback. Just make sure to create it as having a big hole in the middle, something like dd if=/dev/zero of=/srv/container1.rootfs.img bs=1M skip=1 count=1 Cool, I didn't know I can use sparse files for that. Good to know,

Re: [Lxc-users] disk limit?

2011-05-19 Thread Gordon Henderson
On Wed, 18 May 2011, Serge Hallyn wrote: dd if=/dev/zero of=/srv/container1.rootfs.img bs=1M skip=1 count=1 That ought to be seek=1, not skip. (you skip the input, seek the outout) I'm not a fan of this though - if you create the image file(s) using dd there is a good chance it's

Re: [Lxc-users] disk limit?

2011-05-19 Thread Corin Langosch
On 19.05.2011 09:59, Ulli Horlacher wrote: But how do you set up quotas for the snapshots? One can limit the size of the whole LVM container, but this is the same as using a regular disk partition (for all LXC containers). I'm by no means an lvm expert, but I would have guessed from Hallyn's

Re: [Lxc-users] disk limit?

2011-05-19 Thread Ulli Horlacher
On Thu 2011-05-19 (10:35), Corin Langosch wrote: But how do you set up quotas for the snapshots? One can limit the size of the whole LVM container, but this is the same as using a regular disk partition (for all LXC containers). I'm by no means an lvm expert, but I would have guessed

Re: [Lxc-users] disk limit?

2011-05-19 Thread Corin Langosch
On 19.05.2011 11:18, Ulli Horlacher wrote: But the underlaying partion must be big enouigh to contain all LXC containers! How do you prevent to a single container to allocate all free disk space? I had no time to consult the man pages or to just give it try. Have you tried it? But I guess

Re: [Lxc-users] disk limit?

2011-05-19 Thread thewande...@gim11.pl
Horlacher frams...@rus.uni-stuttgart.de Do: lxc-users@lists.sourceforge.net Temat: [Lxc-users] disk limit? Data: śr., maj 18, 2011 17:30 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

Re: [Lxc-users] disk limit?

2011-05-19 Thread Serge Hallyn
Quoting Corin Langosch (cor...@gmx.de): On 19.05.2011 11:18, Ulli Horlacher wrote: After some time users install data on their vservers and so the snapshots grow over time. disc: 500 GB (one big lvm partition) lvm volume: 10 GB (has vserver base system installation) snapshot 1: 5 GB (a

Re: [Lxc-users] disk limit?

2011-05-19 Thread Francois-Xavier Bourlet
and what about using xfs quota by project? is somebody tried? On Thu, May 19, 2011 at 8:04 AM, Serge Hallyn serge.hal...@canonical.com wrote: Quoting Corin Langosch (cor...@gmx.de): On 19.05.2011 11:18, Ulli Horlacher wrote: After some time users install data on their vservers and so the

[Lxc-users] disk limit?

2011-05-18 Thread Ulli Horlacher
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

Re: [Lxc-users] disk limit?

2011-05-18 Thread Serge Hallyn
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

Re: [Lxc-users] disk limit?

2011-05-18 Thread Corin Langosch
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