Issue Number | 3670 |
---|---|
Summary | Monitor Disk Space on FTP App Server |
Created | 2013-09-26 11:56:15 |
Issue Type | New Feature |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2014-01-15 12:37:00 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.113730 |
On the development FTP app server we ran out of disk space. Obviously, there is no monitoring software in place to warn low disk space, so I'd like to create a cronjob to monitor and remove older data sets from DEV and QA. On PROD we may just want to monitor the disk usage.
I had created a few cronjobs on DEV and QA to remove data files older
than 28 days but the disk space is too tight on both systems to keep 4
weeks of data and the publishing job failed on both machines due to
limited disk space.
I've adjusted the cronjobs to only keep 3 weeks of data for now and will
continue monitoring disk usage.
Since we're still running out of disk space even when limiting the amount of data retained to a minimum I have now requested additional disk space for both, DEV and QA.
I've added the following cronjob to QA under cdroperator:
5 11 * * sun (df -h /usr/local | mail -s "CBIIT-QA: Local Disk Usage" cdroperator)
I'm waiting for the DEV machine to be available again to setup the cronjob on that machine.
The same cronjob that's running on QA has been installed on DEV.
The following cronjob will have to be installed on the PROD server:
5 11 * * sun (df -h /usr/local | mail -s "CBIIT-PROD: Local Disk Usage" cdroperator)
The cronjob has been tested on DEV and QA.
I had another cronjob to be updated, so I included this issue in my ticket for CBIIT (WEBTEAM-2337).
The ticket has been completed. I will leave it open until Monday as the cronjob would run Sunday morning.
The cronjob ran successfully on PROD. Closing issue.
Elapsed: 0:00:00.001253