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 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
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
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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com