- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: cron job every minute increases root file size...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 02:58 AM
тАО01-23-2008 02:58 AM
Re: cron job every minute increases root file size, it is going to be full if continues
What do you have inside of script_del?
which files do you have into lvol3? oracle DBs, logs, indexes?
check open files by
lsof |grep pp3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 03:33 AM
тАО01-23-2008 03:33 AM
Re: cron job every minute increases root file size, it is going to be full if continues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 04:29 AM
тАО01-23-2008 04:29 AM
Re: cron job every minute increases root file size, it is going to be full if continues
start monitor pps3 filesystem as I suggested.
In addition - I guess that "script_del" is cleaning out old files/logs.
How you do it? You should be aware that you cannot just remove files which is opened by some running process. In this case application is continues to write to the inode even file is deleted.
Can you compare and send us output of "du -s /pp3" and "df /pp3"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 07:26 AM
тАО01-23-2008 07:26 AM
Re: cron job every minute increases root file size, it is going to be full if continues
In brief, I have an input file with some records which may occur many times. What I want is to remove every line which is more than three time in the input file and create a new file with the deleted record.
I have thus created the following script by creating some temp files. Perhaps this is not the correct way to handle temp files.
#count number of string occurence in CA file
#and if > than 3 create a record in CA1 file
sort -k 1 /pp3/input >> /pp3/input.sorted
uniq -c /pp3/input.sorted >> /pp3/input.sorted.uniq
awk '{if ($1>2) print $2}' /pp3/input.sorted.uniq >> /pp3test/output.uniq
awk '{print $2}' /pp3/input.sorted.uniq >> /pp3/input.sorted.uniq1
awk -F"|" '
BEGIN {
while( getline < "/pp3/output.uniq" )
{ arr[$0]=1 }
}
arr[$0] != 1 { print }
' /pp3/input.sorted > /pp3/input.sorted1
rm /pp3/input.sorted.uniq
rm /pp3/input.sorted.uniq
rm /pp3/input.sorted
mv /pp3/input.sorted1 /pp3test/input.sorted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 07:51 AM
тАО01-23-2008 07:51 AM
Re: cron job every minute increases root file size, it is going to be full if continues
but anyway - can you check big & new files on /pp3 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 10:44 AM
тАО01-23-2008 10:44 AM
SolutionYou have posted this thread in BOTH HP-UX and LINUX! That's not helpful and wastes effort:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1196439
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 10:30 PM
тАО01-23-2008 10:30 PM
Re: cron job every minute increases root file size, it is going to be full if continues
The problem is that I intially posted in the Linux (but I wanted hp-ux) but I could not find it through the search, so I thought it was not actually posted.
But anyway, I think I have finally found the cause of the problem.
The problem is that in the HP9000 the audit option was ON, so the audit files were increasing every time the cron job was executed. Since the job includes several system commands, which are monitored by the audit, the problem was that a week after the root disk space (where the audit log was located) was significantly minimized.
So I turned the audit OFF and rotated the logs and now it seems that everything is OK.
Thanks everyone for your effort and immediate resonse. I do appreciate.
Now it's time to assign points!!!
Thanks.
George.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2008 10:37 PM
тАО01-23-2008 10:37 PM
Re: cron job every minute increases root file size, it is going to be full if continues
So I turned the audit OFF and rotated the logs and now it seems that everything is OK.
- « Previous
-
- 1
- 2
- Next »