<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div id="smartTemplate4-template">On&nbsp;12.09.2012&nbsp;at&nbsp;21:34&nbsp;+0200,&nbsp;Kir
      Kolyshkin <a class="moz-txt-link-rfc2396E" href="mailto:kir@openvz.org">&lt;kir@openvz.org&gt;</a>&nbsp;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" &lt;<a
          moz-do-not-send="true" href="mailto:info@corinlangosch.com">info@corinlangosch.com</a>&gt;
        wrote:<br>
        &gt;<br>
        &gt; Hi,<br>
        &gt;<br>
        &gt; it seems that when creating &amp; 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>
        &gt;<br>
        &gt; ll on host: -rw------- 1 root root 384G Sep 12 21:06
        root.hdd<br>
        &gt; df on container: /dev/ploop1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 493G &nbsp;103G &nbsp;390G
        &nbsp;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>
    <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>
    <br>
    BTW 2: I just read about the ploop ballooning technique in the wiki.
    Am I correct in that it works quite similar to sdelete on windows (
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a href="http://pastie.org/4710364">http://pastie.org/4710364</a> or
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a
      href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx">http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx</a>)?<br>
    <br>
    Thanks!<br>
    <br>
  </body>
</html>