<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">I also find running "du -s ./*" useful
      for figuring out which directories are hogging files...<br>
      <br>
      On 8/11/2013 6:43 AM, Kostas Jakeliunas wrote:<br>
    </div>
    <blockquote
cite="mid:CAN0Koygy6JnijGKVHwjc5dXqc2D70pFhrF_ghCPXcO167_C+Bw@mail.gmail.com"
      type="cite">Huh, curious why it fails to write stuff to disk.
      <div><br>
      </div>
      <div>Does doing</div>
      <div>echo "something" > tempfile</div>
      <div>succeed?</div>
      <div><br>
      </div>
      <div>/var/log/tor is hogging diskspace indeed :) perhaps then do</div>
      <div>cd /var/log/tor</div>
      <div>sudo rm *.gz</div>
      <div><br>
      </div>
      <div>then do</div>
      <div><br>
      </div>
      <div>du -sh *</div>
      <div><br>
      </div>
      <div>to see if there are any remainder large files left there.<br>
        <br>
        <div class="gmail_quote">
          On Sun, Aug 11, 2013 at 2:32 PM, TonyXue <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:tonyxsuper@live.com"
              target="_blank">tonyxsuper@live.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div dir="ltr"><span>Fllowing</span> are the result of <i><b><span>df</span>
                    -h:</b></i>
                <div><b><i><br>
                    </i></b></div>
                <div><b>
                    <div>Filesystem      Size  Used Avail Use% Mounted
                      on</div>
                    <div>/dev/xvda1       35G   17G   17G  51% /</div>
                    <div>udev            235M  4.0K  235M   1% /dev</div>
                    <div><span>tmpfs</span>            98M  192K   98M  
                      1% /run</div>
                    <div><span>none</span>            5.0M     0  5.0M  
                      0% /run/lock</div>
                    <div><span>none</span>            244M     0  244M  
                      0% /run/<span>shm</span></div>
                    <div><br>
                    </div>
                    <div>And seems /var/log/tor takes up 16G.</div>
                    <div><br>
                    </div>
                    <div>Tony.</div>
                  </b>
                  <div>
                    <div><br>
                      <div>
                        <hr>From: <a moz-do-not-send="true"
                          href="mailto:kostas@jakeliunas.com"
                          target="_blank">kostas@jakeliunas.com</a><br>
                        Date: Sun, 11 Aug 2013 13:57:27 +0300<br>
                        To: <a moz-do-not-send="true"
                          href="mailto:tor-relays@lists.torproject.org"
                          target="_blank">tor-relays@lists.torproject.org</a><br>
                        Subject: Re: [tor-relays] No disk space for new
                        files created by Tor
                        <div>
                          <div class="h5"><br>
                            <br>
                            On Sun, Aug 11, 2013 at 1:41 PM, TonyXue
                            <<a moz-do-not-send="true"
                              href="mailto:tonyxsuper@live.com"
                              target="_blank">tonyxsuper@live.com</a>>
                            wrote:<br>
                            ><br>
                            > [...]<br>
                            > It seems that I've run out of space.
                            But my VPS comes with 35GB disk space and it
                            shouldn't be used up so fast. So how to deal
                            with it?<br>
                            > If I do run out of space<span>,</span>any
                            advice for deleting the old files of Tor?
                            Are there any files created by Tor are not
                            useful anymore and can be deleted?
                            <div><br>
                            </div>
                            <div>Assuming you're running a *nix system
                              on your VPS, what does running</div>
                            <div><span>df</span> -h</div>
                            <div><span>say</span>?</div>
                            <div><br>
                            </div>
                            <div>Additionally, you can try getting a
                              list of <span>largest</span>
                              directories/files on your VPS, like so:</div>
                            <div><span>sudo</span> -s</div>
                            <div>
                              <span>cd</span> /</div>
                            <div><span>for</span> <span>i</span> in G M
                              K; do <span>du</span> -ah | <span>grep</span>
                              [0-9<span>]</span>$i | sort -nr -k 1; done
                              | head -n 1000 | <span>tac</span></div>
                            <div><br>
                            </div>
                            <div><span>or</span> just run the latter on
                              your home directory (and don't use <span>sudo</span>
                              in that case, of course.)<br>
                              <br>
                            </div>
                            <div>Kostas.</div>
                            <br>
                          </div>
                        </div>
                        _______________________________________________
                        <span>tor</span>-relays mailing list
                        <a moz-do-not-send="true"
                          href="mailto:tor-relays@lists.torproject.org"
                          target="_blank">tor-relays@lists.torproject.org</a>
                        <a moz-do-not-send="true"
                          href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays"
                          target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            tor-relays mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays"
              target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
tor-relays mailing list
<a class="moz-txt-link-abbreviated" href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a>
<a class="moz-txt-link-freetext" href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>