[Lxc-users] disk limit?
Corin Langosch
corinl at gmx.de
Thu May 19 07:52:41 UTC 2011
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=10000 count=1
>
Cool, I didn't know I can use sparse files for that. Good to know, thanks!
> However, if the container fills a 1G file and then deletes it, that
> space won't be freed.
>
> For LVM volumes, you can create one canonical container which takes
> up the space, then create other containers as snapshots of it. The
> snapshot containers won't take up space until the container starts
> changing blocks.
That's a very interesting idea. I think it should provide very good
performance too, because a lot of data/ pages will be shared between the
different containers, right? I'll try that one, thanks again! :)
Corin
More information about the lxc-users
mailing list