CodexBloom - Programming Q&A Platform

Unexpected 'No space left on device' scenarios While Writing to XFS Filesystem on CentOS 8

👀 Views: 25 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-16
linux centos xfs bash

I'm collaborating on a project where I'm sure I'm missing something obvious here, but I'm working with an scenario when attempting to write large files to an XFS filesystem on my CentOS 8 server. Despite having ample disk space available, I get the behavior message: `write /path/to/file: No space left on device`. The filesystem is mounted with the following options: ```bash /dev/sda1 on /mnt/data type xfs (rw,noexec,nosuid,nodev) ``` I've checked the available space using `df -h`, and it shows: ```bash Filesystem Size Used Avail Use% Mounted on /dev/sda1 100G 10G 90G 10% /mnt/data ``` Additionally, I've run `xfs_info /mnt/data` and it confirms that the filesystem is healthy. I've also tried writing smaller files and that works without issues, but as soon as I attempt to write a large file (around 5GB), I hit this behavior. It seems like a limitation, but I need to figure out what's causing it, especially since my block size isn't especially large (4K). I've also checked for inode issues with `df -i`, and it shows I have plenty of inodes left: ```bash Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 6553600 2048 6551552 1% /mnt/data ``` Could this be related to the volume of data being handled, or is there a configuration scenario I might have missed? I'm seeking guidance on how to diagnose or resolve this question effectively. My development environment is macOS. What's the correct way to implement this?