LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2011, 05:41 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
inodes quota error?


I cannot use services on my VPS server due to the following error:
touch: cannot touch `/var/lock/subsys/iptables': Disk quota exceeded


How can I fix this? There is plentry of data storage left so I am not sure what the problem is.
Perhaps squid is using up a lot of files in the cache or something?

I restarted the server twice and no luck yet.

Code:
[root@vps8259 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/simfs            83886080  36646028  47240052  44% /
none                   1572864         4   1572860   1% /dev
[root@vps8259 ~]# df -i /dev/simfs
df: `/dev/simfs': No such file or directory
[root@vps8259 ~]#

Last edited by qwertyjjj; 12-14-2011 at 05:45 AM.
 
Old 12-14-2011, 06:16 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
as the root user, what does
Code:
repquota -a
return? (BTW I don't even know if you can apply a quota to the root user, but hey, why not)
 
Old 12-14-2011, 06:18 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zQUEz View Post
as the root user, what does
Code:
repquota -a
return? (BTW I don't even know if you can apply a quota to the root user, but hey, why not)
returns nothing.
I figured out that /var/spool/squid was taking up a lot of space so deleted it and rebuilt the cache.
How can I prevent this from happening again?
 
Old 12-14-2011, 06:41 AM   #4
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
Did that fix your problem?
You can specify how much disk space Squid's cache will take. This is the first hit I found in Google. For additional information I suggest you do some further searching as I haven't used Squid for a few years now:

Quote:
Specifing Cache Size

Cache size could be specified by

Using cache_dir directive in squid.conf,

cache_dir ufs /usr/local/squid/cache 100 16 256

Here ufs is the squid filesystem, /usr/local/squid/cache is the default cache directory, 100 is the cache size in MB . The cache size could be specified here
and 16 and 256 are the number of sublevel directories in cache directory.
(source: http://www.visolve.com/squid/Squid_tutorial.php#Caching)
 
Old 12-14-2011, 06:47 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
I have
cache_dir aufs /var/spool/squid 40000 16 256

Is 40000 too big?
That's memory though, not sure how it affects file storage sizes.

couldn't the swap size be the issue?
 
Old 12-14-2011, 06:50 AM   #6
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
that 40000 represents 40GB of disk storage to use as cache. Do you have that in /var/spool/squid?
 
Old 12-14-2011, 07:03 AM   #7
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zQUEz View Post
that 40000 represents 40GB of disk storage to use as cache. Do you have that in /var/spool/squid?
I changed it to 100 even though that's not much cache...also to ufs.
It's an 80Gb drive but was only 35Gb full so something else must have been taking up space.
small files?
created and deleted files?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No space left on device error with plenty of free INodes after cross compiler setup keptil Linux - General 3 01-18-2011 09:05 AM
Quota error - CentOS 4.4 Heinz09 Linux - Server 2 05-10-2007 08:50 AM
Hard Drive - Bad Inodes/superblocks - input/output error broknindarkagain Linux - Hardware 1 07-07-2006 04:41 PM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 04:32 AM
How to convert KB to "Blocks and Inodes" or quota SammyK Linux - General 4 09-17-2003 02:57 PM


All times are GMT -5. The time now is 12:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration