store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 4:14 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: /var/asl taking up a lot of inodes?
Unread postPosted: Sat Feb 25, 2012 7:10 pm 
Offline
Forum User
Forum User

Joined: Mon Jan 15, 2007 2:03 am
Posts: 40
Hello, sorry if this is already posted in the forum, I couldn't find anything.

Out of the blue I started getting php session path errors about can't write to disk, not enough disk space but the filesystem /var is on has plenty of space. I noticed I can't even touch a new file in the /var tree, I'd get a similar warning about disk space full. I checked the inodes with df -i and sure enough /var is 100% in use.

I grepped for small files in var using:
for i in /var/*; do echo $i; find $i |wc -l; done

And it hangs in the /var/asl directory which tells me there are a lot of little files in there. How can I fix this problem without removing all of asl's rule files or other things it needs. Is there a log directory that isn't being cleaned out or something? I'd rather not have to create an entirely new filesystem if I can avoid it.

Thanks


Top
 Profile  
 
 Post subject: Re: /var/asl taking up a lot of inodes?
Unread postPosted: Sat Feb 25, 2012 7:33 pm 
Offline
Forum User
Forum User

Joined: Mon Jan 15, 2007 2:03 am
Posts: 40
Looks like its the /var/asl/data/audit directory. Is it safe to clear out these files? If not any other tips to avoid this in the future?


Top
 Profile  
 
 Post subject: Re: /var/asl taking up a lot of inodes?
Unread postPosted: Sun Feb 26, 2012 9:45 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
You can set the retention for the files in that directory with MODSEC_CLEAN_ALERT, the default is to keep the data for 30 days.


Top
 Profile  
 
 Post subject: Re: /var/asl taking up a lot of inodes?
Unread postPosted: Wed Mar 14, 2012 3:33 pm 
Offline
Forum User
Forum User

Joined: Mon Jan 15, 2007 2:03 am
Posts: 40
Sorry for the dumb question but I can't figure out how to restart asl after editing the config so it will take in the new settings. I searched the wiki and support forums.. Also not seeing it in asl help


Top
 Profile  
 
 Post subject: Re: /var/asl taking up a lot of inodes?
Unread postPosted: Wed Mar 14, 2012 4:43 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
You update the policy with: asl -s -f

when you do this through ASL Web it takes care of that when you hit the "Update" button.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Exabot [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group