title: XFS No space left on device
body: <p>I have a server setup of an XFS partition on LVM. While copying files to the home partition, "No space left on device" is displayed.</p>
  
  <p>df -h displays sufficient space:</p>
  
  <pre><code>/dev/mapper/prod--vg-home     35G   21G   15G  60% /home
  </code></pre>
  
  <p>df -i also displays sufficient inodes:</p>
  
  <pre><code>/dev/mapper/prod--vg-home   36700160  379390 36320770    2% /home
  </code></pre>
  
  <p>I did verify the impact of changing the maximum percentage of inodes:</p>
  
  <pre><code>xfs_growfs -m 25 /dev/mapper/prod--vg-home
  </code></pre>
  
  <p>This amount can easily be decreased and increased.</p>
  
  <p>While experimenting with this setting, I noticed that decreasing it to 3% and increasing it again to 25%, and deleting some files, allows me to add a lot more files again.</p>
  
  <p>xfs_info displays:</p>
  
  <pre><code>meta-data=/dev/mapper/prod--vg-home isize=256    agcount=14, agsize=655360 blks
           =                       sectsz=512   attr=2
  data     =                       bsize=4096   blocks=9175040, imaxpct=25
           =                       sunit=0      swidth=0 blks
  naming   =version 2              bsize=4096   ascii-ci=0
  log      =internal               bsize=4096   blocks=2560, version=2
           =                       sectsz=512   sunit=0 blks, lazy-count=1
  realtime =none                   extsz=4096   blocks=0, rtextents=0
  </code></pre>
  
  <p>I did read about 64-bit inodes, but it seems to be applicable only for large drives (over 1TB).</p>
  
  <p>Is there any other setting which could cause the "No space left on device" message.</p>
  
  <p>Thank you</p>