LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2005, 06:07 AM   #1
branden_burger
Member
 
Registered: Dec 2004
Posts: 66

Rep: Reputation: 15
no space left on /var BUT THERE IS!!


I get a strange error on /var, which is a separate 1GB partition. Whenever I try and create any files on it using touch, mkdir, etc., I get -

touch:no space left on device

df -h gives me over 280 MB free.

since my web folder is on /var/www/html, that means I can't upload any new content

Any ideas?? It seems there's a limit to the number of files I can make on /var . If I delete 3 files, I can then create 3 files. Already existing files can be written to even when I can't create new files. Very strange.
 
Old 05-27-2005, 06:24 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: no space left on /var BUT THERE IS!!

Quote:
Originally posted by branden_burger
I get a strange error on /var, which is a separate 1GB partition. Whenever I try and create any files on it using touch, mkdir, etc., I get -

touch:no space left on device

df -h gives me over 280 MB free.

since my web folder is on /var/www/html, that means I can't upload any new content

Any ideas?? It seems there's a limit to the number of files I can make on /var . If I delete 3 files, I can then create 3 files. Already existing files can be written to even when I can't create new files. Very strange.
Perhaps you deleted a log file in which there is still and open pid trying to write to it?

df -h /var

du -h . /var/log | sort -n

Use the tools you have in place to determine what is taking up so much space..
 
Old 05-27-2005, 07:50 AM   #3
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Re: no space left on /var BUT THERE IS!!

Quote:
Originally posted by branden_burger
It seems there's a limit to the number of files I can make on /var . If I delete 3 files, I can then create 3 files. Already existing files can be written to even when I can't create new files. Very strange.
It's not strange! There's a finite number of slots in the filesystem for holding filenames. If you have a large number of small files, it's quite possible to "fill up" a filesystem and yet still have free disk space. What's actually strange (read: silly and annoying) is that the error message you get is very misleading...
 
Old 05-27-2005, 10:02 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
These slots are called inodes.
The inodes are the basic file-level data structure, and every file within the filesystem is physically described by one of them. The inodes contain information such as the file creation and modification times, the total file size, and a list of blocks that actually contain the file's data. For larger files, the latter can include disk locations for additional lists of data blocks (known as indirect blocks) or even double or triple indirect lists of blocks. Filenames are associated with inodes via directory entries, which consist of filename-and-inode pairs.

You can not change the number of inodes with out reformating the filesystem.
 
Old 05-27-2005, 01:32 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
This may also be a problem with quotas. Some systems reserve a percentage of the filesystem for root...
 
Old 05-31-2005, 01:44 AM   #6
branden_burger
Member
 
Registered: Dec 2004
Posts: 66

Original Poster
Rep: Reputation: 15
Nope - it had to do with the inodes. There was a huge directory in /var called clientmqueue which was hogging about 480MB with millions of system emails. There were so many, even an rm -f * wouldn't get rid of them. I had to recursively remove the directory.

If I'm not mistaken - isn't clientmqueue used by older versions of sendmail?? There wasn't any sendmail, and Qmail was the MTA on the system, but i was told it hadn't been configured - apparently it must have been, beause some MTA delivered those system mails to clientmqueue. What misled me, is that there's nothing in /var/spool/mail.

This is what happens if people use dumb server control panels like plesk instead of having a sound knowledge of their box.

Thanks!!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no space left in / fallen26 Linux - General 1 08-10-2004 07:00 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM
Seeing HD space left? fusion1911 Slackware 5 10-04-2003 09:34 AM
space left SMB3Master Linux - General 2 09-30-2003 08:29 PM
How much disck space left? Tim K. Linux - Newbie 3 07-04-2003 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:38 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