source: trunk/DataCheck/CheckDU.sh@ 12617

Last change on this file since 12617 was 12558, checked in by Daniela Dorner, 13 years ago
changed limit to 200 GB
  • Property svn:executable set to *
File size: 338 bytes
Line 
1#!/bin/bash
2
3dir=/loc_data
4if [ "$HOSTNAME" == "daq" ]
5then
6 dir=/raid10
7fi
8
9diskusage=( `df -P $dir | grep $dir ` )
10# check if more than X GB are left on /loc_data
11if [ ${diskusage[3]} -lt 209715200 ] # 200 GB
12#if [ ${diskusage[3]} -lt 104857600 ] # 100 GB
13then
14 echo "WARN less than 200 GB left on /loc_data on node "$HOSTNAME
15fi
16
Note: See TracBrowser for help on using the repository browser.