<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I have an XFS file system that's getting 'No space left on device'
    errors.  xfs_fsr also complains of 'No space left'.  The XFS Info
    is:<br>
    <br>
    <blockquote><tt># xfs_info /data</tt><br>
      <tt>meta-data=/dev/sdb1              isize=256    agcount=19,
        agsize=268435440 blks</tt><br>
      <tt>         =                       sectsz=512   attr=2</tt><br>
      <tt>data     =                       bsize=4096  
        blocks=4882431488, imaxpct=5</tt><br>
      <tt>         =                       sunit=16     swidth=160 blks</tt><br>
      <tt>naming   =version 2              bsize=4096   ascii-ci=0</tt><br>
      <tt>log      =internal               bsize=4096   blocks=521728,
        version=2</tt><br>
      <tt>         =                       sectsz=512   sunit=16 blks,
        lazy-count=1</tt><br>
      <tt>realtime =none                   extsz=4096   blocks=0,
        rtextents=0</tt><br>
      <br>
      # df -h .<br>
      Filesystem            Size  Used Avail Use% Mounted on<br>
      /dev/sdb1              19T   12T  7.0T  62% /data<br>
      # df -ih .<br>
      Filesystem            Inodes   IUsed   IFree IUse% Mounted on<br>
      /dev/sdb1               3.7G    4.7M    3.7G    1% /data<br>
    </blockquote>
    <br>
    xfs_db freesp shows that AG 0 seems to be full.  I've included the
    freesp for the first few AGs, but the rest seem pretty consistent
    with AGs 1 - 4 that I've included below.  <br>
    <blockquote><tt>xfs_db> freesp -s -e 1000000000 -a 0</tt><br>
      <tt>   from      to extents  blocks    pct</tt><br>
      <tt>      1 268435440    1930    3795 100.00</tt><br>
      <tt>total free extents 1930</tt><br>
      <tt>total free blocks 3795</tt><br>
      <tt>average free extent size 1.96632</tt><br>
      <tt>xfs_db> freesp -s -e 1000000000 -a 1</tt><br>
      <tt>   from      to extents  blocks    pct</tt><br>
      <tt>      1 268435440  287006 173832255 100.00</tt><br>
      <tt>total free extents 287006</tt><br>
      <tt>total free blocks 173832255</tt><br>
      <tt>average free extent size 605.675</tt><br>
      <tt>xfs_db> freesp -s -e 1000000000 -a 2</tt><br>
      <tt>   from      to extents  blocks    pct</tt><br>
      <tt>      1 268435440  272425 94291252 100.00</tt><br>
      <tt>total free extents 272425</tt><br>
      <tt>total free blocks 94291252</tt><br>
      <tt>average free extent size 346.118</tt><br>
      <tt>xfs_db> freesp -s -e 1000000000 -a 3</tt><br>
      <tt>   from      to extents  blocks    pct</tt><br>
      <tt>      1 268435440  286421 110208404 100.00</tt><br>
      <tt>total free extents 286421</tt><br>
      <tt>total free blocks 110208404</tt><br>
      <tt>average free extent size 384.778</tt><br>
      <tt>xfs_db> freesp -s -e 1000000000 -a 4</tt><br>
      <tt>   from      to extents  blocks    pct</tt><br>
      <tt>      1 268435440  277220 107118347 100.00</tt><br>
      <tt>total free extents 277220</tt><br>
      <tt>total free blocks 107118347</tt><br>
      <tt>average free extent size 386.402</tt><br>
      <tt>xfs_db></tt><br>
    </blockquote>
    Is there any way to figure out which files/directories are clogging
    up AG 0?  Any other ways to abate this issue?  Any way to assure
    proportional usage of AGs?<br>
    <br>
    Thanks.<br>
    <br>
    -Dave<br>
  </body>
</html>