LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   ext3 - No space left on device (https://www.linuxquestions.org/questions/linux-enterprise-47/ext3-no-space-left-on-device-415307/)

Anne H 02-14-2006 09:32 AM

ext3 - No space left on device
 
This is on a Red Hat Linux release 9 system. It is an ext3 filesystem.

[root@cerberus scr_cerb]# mkdir anne
mkdir: cannot create directory `anne': No space left on device
[root@cerberus scr_cerb]# touch anne
[root@cerberus scr_cerb]#

There are free inodes and free space:

[root@cerberus scr_cerb]# df -i /scr_cerb
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 538656 329305 209351 62% /scr_cerb
[root@cerberus scr_cerb]# df -k /scr_cerb
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 735227752 488355612 210104980 70% /scr_cerb

I have done a fsck of the system which shows that it is clean. Other methods of creating files such as dd if=/dev/zero of=anne fail.

du agrees approximately with df, so there no discrepany concerning the amount of space actually used.

If you have any suggestions for anything else to check, or how to solve this problem, I would really appreciate it.

marozsas 02-14-2006 10:27 AM

wow ! That is strange !
Try dump2efs and see what are the numbers for:

Inode count:
Block count:
Reserved block count:
Free blocks:
Free inodes:

regards,

Anne H 02-14-2006 11:30 AM

Thanks marozsas.

[root@cerberus projects_new]# dumpe2fs /dev/sdb1

dumpe2fs 1.32 (09-Nov-2002)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: fab5dfdb-baf8-4aa2-be27-915f3a61458e
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal filetype sparse_super
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 538656
Block count: 183835803
Reserved block count: 9191790
Free blocks: 61737003
Free inodes: 214352
First block: 0
Block size: 4096
Fragment size: 4096
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 96
Inode blocks per group: 3
Filesystem created: Wed Sep 21 14:03:37 2005
Last mount time: Mon Feb 13 16:39:06 2006
Last write time: Mon Feb 13 16:42:54 2006
Mount count: 6
Maximum mount count: 38
Last checked: Wed Sep 21 14:03:37 2005
Check interval: 15552000 (6 months)
Next check after: Mon Mar 20 13:03:37 2006
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal UUID: <none>
Journal inode: 8
Journal device: 0x0000
First orphan inode: 0


The inode numbers agree with df -k, and the block count agree with the total space.

However, the number of free blocks is off:
246948012 (61737003 * 4096 / 1024)

(246948012 vs 210180852):

[root@cerberus projects_new]# df -k /scr_cerb
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 735227752 488279740 210180852 70% /scr_cerb
[root@cerberus projects_new]#

However, du shows 540745960 used, as compared with df488279740 above. Someone told me due to sparse files, this discrepancy was ok.

Anne

marozsas 02-14-2006 11:59 AM

...uselesss...I was expecting to read a large number for Reserved block count.

Another idea: try to mount this filesystem as ext2, to check if the jornal has something to do. If you are successful, try to re-create the jornal.

see'ya,

RHELL 02-17-2006 02:24 PM

Try df on all your partitions.


All times are GMT -5. The time now is 09:28 PM.