source: trunk/DataCheck/CheckDU.sh@ 12633

Last change on this file since 12633 was 12631, checked in by Daniela Dorner, 13 years ago
added output of df -h
  • Property svn:executable set to *
File size: 352 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
15 df -h $dir
16fi
17
Note: See TracBrowser for help on using the repository browser.