<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Note that you replace /dev/hdXY with
      /dev/sdb1 (or whatever your partition  is called)<br>
      <br>
      Just tested lowering it (on a non-production server) and got
      another 100GB available on /data straight away, <br>
      so seems OK to do it live.<br>
      <br>
      root@otp:~# df -h /dev/sdb1<br>
      Filesystem      Size  Used Avail Use% Mounted on<br>
      /dev/sdb1       1.8T   52G  1.7T   3% /data<br>
      <br>
      root@otp:~# tune2fs -m 1 /dev/sdb1<br>
      tune2fs 1.42 (29-Nov-2011)<br>
      Setting reserved blocks percentage to 1% (4883778 blocks)<br>
      <br>
      root@otp:~# df -h /deb/sdb1<br>
      Filesystem      Size  Used Avail Use% Mounted on<br>
      /dev/sdb1       1.8T   52G  1.8T   3% /data<br>
      root@otp:~# <br>
      <br>
      <br>
      On 29/04/13 09:32, Dan Attwood wrote:<br>
    </div>
    <blockquote
cite="mid:CAGcBgjgs5o+tzSaT9dfxJ+rp8ZyUdkj-61SUxCxLc732AnpNgw@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:13px">>Have
          you tried running df --sync</span><br>
        <div><span style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">didn't
            know that. But I've run it and it makes no difference</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">> </span><span
            style="font-family:arial,sans-serif;font-size:13px">ext
            filesystems reserve 5% of the available space</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">The link
            talks about ext3 - the drive is ext4, those that make a
            difference?</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">Also I
            was to run the </span><span
            style="background-color:rgb(235,241,245);line-height:1.1em">tune2fs
            -c 0 -i 1m /dev/hdXY command is that something that then
            happens instantly or will this cause downtime?</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On 29 April 2013 09:26, Alan <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:alan@hipnosi.org" target="_blank">alan@hipnosi.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">ext
            filesystems reserve 5% of the available space<br>
            reasons  and solution explained here:<br>
            <a moz-do-not-send="true"
href="https://wiki.archlinux.org/index.php/Ext3#Reclaim_Reserved_Filesystem_Space"
              target="_blank">https://wiki.archlinux.org/index.php/Ext3#Reclaim_Reserved_Filesystem_Space</a><br>
            <br>
            I hope I have not misunderstood, with relevance to VM's...<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                On Mon, 29 Apr 2013 09:13:58 +0100<br>
                Dan Attwood <<a moz-do-not-send="true"
                  href="mailto:danattwood@gmail.com">danattwood@gmail.com</a>>
                wrote:<br>
                <br>
                > hi all hopefully someone can point me to a good
                solution to this.<br>
                ><br>
                > I have a VM server running on VMare. Recently if
                started to run out of<br>
                > space on it's /var disk - which is a thin
                provisioned disk. We gave it some<br>
                > more space and I rebooted the server into gparted
                and expanded the disks<br>
                > into the new free space.<br>
                ><br>
                > Today I've come in to find that the /var disk had
                run out of space<br>
                > completely. I did a df -h and can see the
                following:<br>
                ><br>
                > Filesystem           Size   Used  Avail   use%
                mounted on<br>
                > /dev/sdb1             370G  348G  3.0G 100% /var<br>
                ><br>
                ><br>
                > so the 370 gig disk has only used 348 gigs and yet
                is 100% percent full<br>
                ><br>
                > my imeadiate thought was I had run out of inodes,
                however:<br>
                ><br>
                > filesystem           inodes      iused    ifree    
                      iuse%<br>
                > /dev/sdb1            24576000 430482 24145518    2%
                /var<br>
                ><br>
                > so I have loads of them free.<br>
                ><br>
                > I also rebooted the server into grparted and double
                checked the disk<br>
                > partition and also ran a disk check from here -
                this flagged up no errors.<br>
                ><br>
                > I've now gone through and deleted some stuff to
                give me some breathing room<br>
                > but I really need that space back.<br>
                ><br>
                > Does any ones have any suggestions please?<br>
                ><br>
                > Dan<br>
                <br>
                <br>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">_______________________________________________<br>
                Kent mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
                <a moz-do-not-send="true"
                  href="https://mailman.lug.org.uk/mailman/listinfo/kent"
                  target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kent mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/kent">https://mailman.lug.org.uk/mailman/listinfo/kent</a></pre>
    </blockquote>
    <br>
  </body>
</html>