Error: "no space available" on XFS filesystem

This document (7014318) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10

Situation

When trying to add a new file to an XFS mounted filesystem, the error "no space available" is returned.  This is despite there being over 15% disk space available (as reported by df).  The methods tried for creating a file was touch filename and vi filename.

If a file or two were removed, a new file (or two) could be created.

Resolution

Here are some possible resolutions:

a) change to inode64 structure on the XFS filesystem
    For more information on inode64, see the XFS.org site at http://xfs.org/index.php/XFS_FAQ#Q:_What_is_the_inode64_mount_option_for.3F

b) create significant free space on the filesystem either by adding space or removing files.

Additional Information

By default, XFS filesystems are created with inode32 structure meaning that all of the inodes for a given filesystem need too be created in the first 1TB (or imaxpct %) of the filesystem.  If the filesystem contains a large number of small files, it is easy to run out of inodes and run into this problem.  Switching to inode64 can help as more Allocation Groups (AGs) can be utilized to store inodes.

In the case of a filesystem already running inode64, this error can be encountered if the filesystem does run low/out of disk space -- or if it cannot allocate 4 contiguous blocks for additional inodes.  So if the filesystem is severely fragmented -- meaning only 1-3 blocks are together -- you will not be able to create new files but can write additional data to older files.

For further information on identifying how fragmented the free space is, please see TID 000018219 - How to tell how fragmented the free space on an XFS filesystem

If your filesystem is severely fragmented, you can either:
  • add a significant amount of free space (i.e. 20% or more)
  • move the data to a different filesystem and then copy it back.
    this will remove the free blocks between files and make it contiguous.  You will find this most helpful for filesystems that store files that are <= 4,096 bytes.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7014318
  • Creation Date: 18-Dec-2013
  • Modified Date:24-Feb-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center