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

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

tune2fs -l >> http://pastebin.com/P5eKXmgC

tried this too:

mke2fs -t ext4 -b 1024 /dev/md0

tune2fs -l >> http://pastebin.com/ujLtE95L

Copying a single directory with many tiny files I get:

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

space used 5%

inodes used 1%

I manually tried:

cp /source/test1.jpg /mnt/storage_temp/pics/test1.jpg --- error
cp /source/test1.jpg /mnt/storage_temp/pics/test2.jpg --- ERROR
cp /source/test1.jpg /mnt/storage_temp/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?


How small is that partition? According to man mke2fs, the -T small gets automatically used if the partition size is between 3 – 512 megabytes. Is the partition that small? If not, do you really need that mke2fs option?

Source : Link , Question Author : user1434058 , Answer Author : Janne Pikkarainen

Leave a Comment