LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2006, 11:55 AM   #1
smartes
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Red Hat
Posts: 14

Rep: Reputation: 0
100% inodes but 99% free space


I have a strange problem on Linux 2.4.9-e.35enterprise with one of the filesystems. Although it is empty it is reporting 100% Inodes

df -k reports
/dev/sdb3 10239456 34912 10204544 1% /BEX101-archive

where as df -i reports:
/dev/sdb3 79996 79723 273 100% /BEX101-archive

Log files go into that directory and are deleted every hour - so it is always empty

Any ideas?
 
Old 04-20-2006, 12:42 PM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
This means that there are 79723 files, directories and links on the filesystem and only 273 more can be created. You have 1 inode per 128kB which means your filesystem is setup for an average filesize of 128kB. However, you average filesize is ~2.3kB so you run out of inodes way before you run out of free space.

Since the number of inodes cannot be increased on the fly (on an ext3 filesystem, anyway which I believe is what RHEL uses) you will have to recreate the filesystem. And this time you should use something like 2048 bytes/inode.

edit: err actually, I got the numbers wrong: your avg filesize is even smaller: ~0.5kB/file. Since the smallest blocksize for ext3 is 1024 bytes and it's useless to have more inodes than blocks you should use a blocksize of 1024B and also 1024B/inode

Last edited by demian; 04-20-2006 at 12:51 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
How do I free up space on / directory? I'm at 100% in use diamonaj Linux - Newbie 1 01-17-2004 08:00 PM
inodes? no free space on device? elucid Linux - General 10 06-07-2001 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration