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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2010, 10:26 AM
|
#1
|
Member
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57
Rep:
|
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
Any suggestions ?
|
|
|
02-04-2010, 10:43 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
Can you run in a terminal:
and post the output here?
Kind regards,
Eric
|
|
1 members found this post helpful.
|
02-04-2010, 11:03 AM
|
#3
|
Member
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57
Original Poster
Rep:
|
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 ?
|
|
|
02-04-2010, 11:10 AM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,462
|
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.
|
|
|
02-04-2010, 11:32 AM
|
#5
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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:
Kind regards,
Eric
|
|
|
02-04-2010, 11:47 AM
|
#6
|
Member
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 57
Original Poster
Rep:
|
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.
|
|
|
02-04-2010, 11:48 AM
|
#7
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
That might be the culprid Even 0 size files take up inodes. I'd tap him on the fingers!
Kind regards,
Eric
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|