CDR Tickets

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
Description

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.

Comment entered 2013-12-09 14:41:20 by Englisch, Volker (NIH/NCI) [C]

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.

Comment entered 2013-12-17 11:45:43 by Englisch, Volker (NIH/NCI) [C]

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.

Comment entered 2014-01-14 15:24:53 by Englisch, Volker (NIH/NCI) [C]

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.

Comment entered 2014-01-15 12:37:00 by Englisch, Volker (NIH/NCI) [C]

The same cronjob that's running on QA has been installed on DEV.

Comment entered 2014-01-15 13:13:42 by Englisch, Volker (NIH/NCI) [C]

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)
Comment entered 2014-01-15 13:14:10 by Englisch, Volker (NIH/NCI) [C]

The cronjob has been tested on DEV and QA.

Comment entered 2014-01-24 15:17:14 by Englisch, Volker (NIH/NCI) [C]

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.

Comment entered 2014-01-27 12:25:04 by Englisch, Volker (NIH/NCI) [C]

The cronjob ran successfully on PROD. Closing issue.

Elapsed: 0:00:00.001253