<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 09/13/2012 01:38 AM, Corin Langosch
wrote:<br>
</div>
<blockquote cite="mid:505100F3.3050801@netskin.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<br>
<div id="smartTemplate4-template">On 12.09.2012 at 21:34 +0200, Kir
Kolyshkin <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:kir@openvz.org"><kir@openvz.org></a> wrote:<br>
</div>
<blockquote
cite="mid:CAGmPdryGZ8Pe3sYToGCpFnF4t672J6yC0v_vv34VBjmxgobSbQ@mail.gmail.com"
type="cite">
<p dir="ltr"> On Sep 12, 2012 11:20 PM, "Corin Langosch" <<a
moz-do-not-send="true" href="mailto:info@corinlangosch.com">info@corinlangosch.com</a>>
wrote:<br>
><br>
> Hi,<br>
><br>
> it seems that when creating & deleting files inside a
ploop backed container the backing image file doesn't shrink.
So the image file is still consuming around 400 GB, while in
the container df shows only 100 GB in use.<br>
><br>
> ll on host: -rw------- 1 root root 384G Sep 12 21:06
root.hdd<br>
> df on container: /dev/ploop1 493G 103G 390G
21% /</p>
<p dir="ltr">We have online shrink. It's "ploop balloon discard"
or just "vzctl compact". You'd better have ploop and vzctl
from git (both are really close to be released).</p>
</blockquote>
<br>
The system's still working heavily but the image is already
reduced by around 60 GB so it seems to work well. :)<br>
<br>
Would you suggest putting some script into crontab to compact all
ploop images ex. once a week? Or probably do something like ctid%7
and compact a few of them every night?<br>
</blockquote>
<br>
You can use ploop balloon discard --stat to find out how much space
could be compacted, and decide if you need it.<br>
<br>
Any contribution in that area is welcome :)<br>
<br>
<blockquote cite="mid:505100F3.3050801@netskin.com" type="cite"> <br>
BTW: the man of vzctl contains the "compact" command. But the
usage output of vzctl doesn't. Shall I file a bug report for it?<br>
</blockquote>
<br>
NP, I have just fixed it<br>
<a class="moz-txt-link-freetext" href="http://git.openvz.org/?p=vzctl;a=commitdiff;h=60e4b4">http://git.openvz.org/?p=vzctl;a=commitdiff;h=60e4b4</a><br>
<br>
But the big problem here is vzctl --help output is too heavy.<br>
I would like to have something that is done for ploop -- you get
basic help and if you specify a command you get a command-specific
help.<br>
<br>
Good patches for that are welcome :)<br>
</body>
</html>