"no space left" but df -k shows plenty of free space
Hello,
while copying some data into a logical volume with reiserfs as filesystem, I've got an error message, that there isn't enough space left on the device. Even just creating a new empty file isn't possible anymore:
sammy:/opt/kgm/data/log # touch abc
touch: creating `abc': No space left on device
But the df-command has still reported quite a lot of free capacity:
sammy:/opt/kgm/data/log # df -k /opt/kgm/data
Filesystem 1k-blocks Used Available Use% Mounted on/dev/kgmvg/datalv 10485436 7987364 2498072 77% /opt/kgm/data
If I had used ext2 or ext3, the number of already used inodes could be the reason for this problem. But this isn't an issue when using reiserfs as the following command shows:
sammy:/opt/kgm/data/log # df -i /opt/kgm/data
Filesystem Inodes IUsed IFree IUse% Mounted on/dev/kgmvg/datalv - - - - /opt/kgm/data
Even "du -hc /opt/kgm/data/" reports an amount of data, that should be easily stored into a filesystem with a capacity of 10G:
411M /opt/kgm/data/ABC/in/new 1.1G /opt/kgm/data/ABC/in 512 /opt/kgm/data/ABC/log 512 /opt/kgm/data/ABC/out 1.1G /opt/kgm/data/ABC 129k /opt/kgm/data/tool 512 /opt/kgm/data/etc 3.9G /opt/kgm/data/log 2.0M /opt/kgm/data/tmp 2.3G /opt/kgm/data/data 25M /opt/kgm/data/files 1.1M /opt/kgm/data/names 136M /opt/kgm/data/kerna 137M /opt/kgm/data/kernb 180M /opt/kgm/data/logtool 233k /opt/kgm/data/buf 57M /opt/kgm/data/patch13/unpack 75M /opt/kgm/data/patch13 50M /opt/kgm/data/patch14/unpack 66M /opt/kgm/data/patch14 7.9G /opt/kgm/data 7.9G total
Only after moving some of the files into another filesystem, I was able to store further files into this filesystem. So I guessed, that it should work if I extend the reiserfs by 2G (lvextend and resize_reiserfs). And as a matter of fact this enlargement worked.
Now, df -k /opt/kfm/data shows:
Filesystem 1k-blocks Used Available Use% Mounted on/dev/kgmvg/datalv 12582524 7987360 4595164 64% /opt/kgm/data
Now we can use the filesystem without problems but I fear that we will run into problems when the filesystem reaches 77% usage again.
The directory with the biggest number of files currently contains about 70.000 files. I don't think that this is a real challange for reiserfs. Also the other limits as stated in the FAQ on
http://www.namesys.com/ aren't reached by now.
I'm using reiserfs version 3.6.25 [built into kernel] of a SLES7-Distribution (SuSE) on IBM zSeries (z900, z/VM) in 64-Bit-Mode (s390x). The filesystem has been resized
3 times on the fly (in mounted state). Could it be, that this caused the filesystem to get damaged somehow? Or is there a bug in the df-command, that may cause it to report wrong values for free capacities? Can it be, that the last enlargement of the filesystem didn't do its full job so that the problem maybe disapeared with the next enlargement? Or is it necessary to delete and recreate the whole filesystem (which would cause us a lot of trouble)? Or what do you suggest?
Lots of questions. I would appreciate if you could give me some anwers for at least some of them.
Regards,
Dirk
Hello!
Quoted 10 lines · On Sat, May 17, 2003 at 05:34:09PM +0200, [email protected] wrote:
while copying some data into a logical volume with reiserfs as filesystem, I've got an error message, that there isn't enough space left on the device. Even just creating a new empty file isn't possible anymore:
sammy:/opt/kgm/data/log # touch abc
touch: creating `abc': No space left on device
But the df-command has still reported quite a lot of free capacity:
sammy:/opt/kgm/data/log # df -k/opt/kgm/data
Filesystem 1k-blocks Used Available Use% Mounted on/dev/kgmvg/datalv10485436 7987364 2498072 77%/opt/kgm/data
Hm, this is pretty strange.
Quoted 9 lines
Only after moving some of the files into another filesystem, I was able to store further files into this filesystem. So I guessed, that it should work if I extend the reiserfs by 2G (lvextend and
resize_reiserfs). And as a matter of fact this enlargement worked. Now, df -k/opt/kfm/datashows:
Filesystem 1k-blocks Used Available Use% Mounted on/dev/kgmvg/datalv12582524 7987360 4595164 64%/opt/kgm/data
Now we can use the filesystem without problems but I fear that we will run into problems when the filesystem reaches 77% usage again.
Hm, it will be interesting if you try.
May be it will stop working when there is 2498072 blocks left again.
Quoted 2 lines
The directory with the biggest number of files currently contains about 70.000 files. I don't think that this is a real challange for
This is unlikely to be a problem indeed.
Quoted 3 lines
I'm using reiserfs version 3.6.25 [built into kernel] of a SLES7-Distribution (SuSE) on IBM zSeries (z900, z/VM) in 64-Bit-Mode (s390x). The filesystem has been resized
Hm, what kernel version do they ship?
Quoted 2 lines
3 times on the fly (in mounted state). Could it be, that this caused the filesystem to get damaged somehow? Or is there a bug
No, this is unlikely.
Quoted 6 lines
in the df-command, that may cause it to report wrong values for free capacities? Can it be, that the last enlargement of the filesystem didn't do its full job so that the problem maybe disapeared with the next enlargement? Or is it necessary to delete and recreate the whole filesystem (which would cause us a lot of trouble)? Or what do you suggest?
My current idea that it might have the "blocks reserved for use by fsck" checked incorrectly.
Chris: Where can I look at the patches that came with SLES7-Distribution's kernel?
Bye,
Oleg
Quoted 2 lines · Oleg Drokin
My current idea that it might have the "blocks reserved for use by fsck" checked incorrectly.
Sorry for the delay, still digging through the email backlog from last week. I don't know of any known bugs here, but I'll check. Exactly which kernel rpm do you have installed?
Quoted 3 lines
Chris: Where can I look at the patches that came with SLES7-Distribution's kernel?
Well, it depends ;-) I'll hunt the rpms down.
-chris
Quoted 14 lines · Oleg Drokin
Hello!
Quoted 10 lines · On Sat, May 17, 2003 at 05:34:09PM +0200, [email protected] wrote:
while copying some data into a logical volume with reiserfs as filesystem, I've got an error message, that there isn't enough space left on the device. Even just creating a new empty file isn't possible anymore:
sammy:/opt/kgm/data/log # touch abc
touch: creating `abc': No space left on device
But the df-command has still reported quite a lot of free capacity:
sammy:/opt/kgm/data/log # df -k/opt/kgm/data
Filesystem 1k-blocks Used Available Use% Mounted on/dev/kgmvg/datalv10485436 7987364 2498072 77%/opt/kgm/data
Quoted 1 line
Hm, this is pretty strange.
Could you please run debugreiserfs -p /dev/xxx | gzip -c > df-error-fs.gz, and make it available somewhere for us to download. If you are using reiserfsprogs 3.x.0j or so the output can contain actual file data, so you probably want to put the image onto a password protected page.
This will take a metadata dump of the filesystem, I'd like to check it.
-chris