<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "[Linux]RHEL 3 /var/log/audit.d底下的檔案造成硬碟空間滿掉"]]></title>
		<link>https://forum.andowson.com/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "[Linux]RHEL 3 /var/log/audit.d底下的檔案造成硬碟空間滿掉"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[Linux]RHEL 3 /var/log/audit.d底下的檔案造成硬碟空間滿掉</title>
				<description><![CDATA[ 最近對每部主機都進行硬碟空間使用率檢查，結果有部安裝了RHEL AS3 Update 4的機器的/var分割滿了，原本以為/var切了54G，要滿也不容易，沒想到居然發生了。 
<br>
仔細檢查了一下發現被是/var/log/audit.d目錄裡面的一堆save.*給塞爆了。 
<br>
查了一下[url]http://kbase.redhat.com/faq/FAQ_79_4499.shtm[/url]，發現是RHEL 3出廠預設會啟動audit這個服務，可將其關閉 
<br>
[code]service audit stop 
<br>
chkconfig audit off[/code] 
<br>
然後再刪除這些save.*檔案即可 
<br>
[code]rm -rf /var/log/audit.d/save.*[/code] 
<br>]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/240/370.page</guid>
				<link>https://forum.andowson.com/posts/preList/240/370.page</link>
				<pubDate><![CDATA[Fri, 2 May 2008 12:10:18]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:[Linux]RHEL 3 /var/log/audit.d底下的檔案造成硬碟空間滿掉</title>
				<description><![CDATA[ 公司目前還有部分主機在跑 REHL 3，而且一定要執行audit服務，只好改用定期刪檔的方式來處理： 
<br>
[code]# remove old save.xxx from /var/log/audit.d every week (2010.10.25 by Andowson) 
<br>
46 4 * * 0 root find /var/log/audit.d -name save.* -mtime +730 -type f -print0 -exec rm -rf {} \;[/code] 
<br>
其中 -mtime +730是找出修改日期大於730天的檔案，也就是save.xxx最長會保留730天，也就是保留兩年。 
<br>
<br>
參考資料： 
<br>
http://sucre.javaeye.com/blog/544164]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/240/916.page</guid>
				<link>https://forum.andowson.com/posts/preList/240/916.page</link>
				<pubDate><![CDATA[Tue, 26 Oct 2010 17:52:49]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>