LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2010, 10:26 AM   #1
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57

Rep: Reputation: 15
No space left on device and df shows 50% available


Hi

I've run across a strange problem - I get "No space left on device" errors, but df -h for that partition shows
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 32G 13G 18G 41% /

I'm using ext3 partition on Debian

I'm not uploading 18 Gig file or anything, just ordinary small files are uploaded and I keep deleting old stuff. I've already deleted 10Gig and the problem persists. I have rebooted the machine, forcing fsck
Code:
shutdown -rF now
Any suggestions ?
 
Old 02-04-2010, 10:43 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Can you run in a terminal:
Code:
df -i
and post the output here?

Kind regards,

Eric
 
1 members found this post helpful.
Old 02-04-2010, 11:03 AM   #3
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks, looks like this is the issue

Code:
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sda1            4194304 4194292      12  100% /
Never had this problem before. How can I increase number of inodes or remove some. I've removed the losts of small files, shouldn't number of free inodes increase ?
 
Old 02-04-2010, 11:10 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,462

Rep: Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216Reputation: 6216
To elaborate on EricTRA's post a data structure called an inode is associated with each file. Its possible if you have lots and lots of small files to run out of inodes but still have available free space on the filesystem. If this is the case the only way to add inodes is to reformat the filesystem. Since sda1 is your / partition reformatting is probably not desirable.
 
Old 02-04-2010, 11:32 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

As far as I know, deleting files should free up the inodes related to them. If they don't then you might have to run fsck to see if it reports any errors and try to fix them with fsck. Have a look at the man page for fsck:
Code:
man fsck
Kind regards,

Eric
 
Old 02-04-2010, 11:47 AM   #6
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57

Original Poster
Rep: Reputation: 15
I found a client uploading lots of small files, some zero size.

So problem solved. I am deleting them, did not pay attention to this directory before, just inherited these servers and still discovering new issues

Thanks for you feedbacks, really helpful.

Last edited by Ladowny; 02-04-2010 at 11:52 AM.
 
Old 02-04-2010, 11:48 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
That might be the culprid Even 0 size files take up inodes. I'd tap him on the fingers!

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No space left on device zmsc1 Linux From Scratch 7 03-28-2009 11:57 PM
no space left on device cjupiter2 Linux - Newbie 5 09-20-2007 08:38 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
is there a terminal command that shows how much space is left in my partitions lemuel Linux - Newbie 3 01-23-2005 08:16 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 02:14 PM

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

All times are GMT -5. The time now is 05:42 AM.

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