On Fri, May 16, 2008 at 10:27 PM, Emmanuel Florac
> I have a 64 bits (x86_64) machine running Linux 184.108.40.206 with a 24TB
> XFS filesystem. There are some 15TB of data on it. All is well, no
> error except that I can't create a single file (touch foo : no space
> left on device). I don't understand what can be going wrong...
> History : this filesystem was extended (xfs_growfs) from 16TB to 24.
> Here is the output from xfs_info /dev/vg0/lv0
> meta-data=/dev/vg0/lv0 isize=256 agcount=47,
> agsize=137245616 blks = sectsz=512 attr=0
> data = bsize=4096 blocks=6344964096,
> imaxpct=25 = sunit=16 swidth=32 blks,
> unwritten=1 naming =version 2 bsize=4096
> log =internal bsize=4096 blocks=32768, version=1
> = sectsz=512 sunit=0 blks
> realtime =none extsz=131072 blocks=0, rtextents=0
> I fail to see nothing special there however.
> The only significant thing I see is that the FS is really close to 16
> TB of allocated data (15.7TB). I tried mounting it with "inode64"
> option with no more loving.
On my system I get "no space left on device" when I reach 99% full
with about 20GB free space left on 2TB partitions.
I also use sunit and swidth for the data section of the xfs
filesystem, and it could be that the XFS system cannot allocate
space according to these parameters ? You seem to be around the
original 16TB limit, and maybe it tries to allocate
from this original disk layout ? (I'm no XFS expert, so please take my
"theories" with a grain of salt)
I recently had two "identical" partitions: A and B, where A was the
master and B was the rsync copy. These had been
written to for several years, and during that period they both have
had the role as master. I suppose the disk usage layout
was different. All of a sudden partition B reported "no space left on
device", even though partition A contained the
same data without any "no space left on device". What I did to get the
B to copy the missing data from partition A was to:
Temporarily move some data away from partition B, then run xfs_fsr on
partition B, then move the data back.
It brought the fragmentation down on partition B, and I could copy the
missing data from partition B.