12.04 ext4 - cannot create regular file/No space left - with a lot of space and inodes

Posted by user1434058 on Server Fault See other posts from Server Fault or by user1434058
Published on 2012-06-05T19:51:50Z Indexed on 2012/06/06 4:42 UTC
Read the original article Hit count: 540

Filed under:

This seems similar: EXT4 "No space left on device (28)" incorrect but there is no explanation

I created an ext4 filesystem on a RAID 1 array with:

mke2fs -t ext4 -T small /dev/md0

Copying a single directory with many tiny files I get:

cp: cannot create regular file `/mnt/raid1_new/pics/pic3412.jpg': No space left on device

space used 5%

inodes used 1%

I manually tried:

cp /source/test1.jpg /mnt/raid1_new/pics/test1.jpg --- error
cp /source/test1.jpg /mnt/raid1_new/pics/test2.jpg --- ERROR
cp /source/test1.jpg /mnt/raid1_new/pics/test3.jpg --- no error

Notes: RAID 1 disks are error free. I tried mv instead of cp and got the same thing. I tried omitting -T small with no effect

Can somebody help me understand this magic?

© Server Fault or respective owner

Related posts about ext4