Changeset 12554
- Timestamp:
- 11/18/11 04:27:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/CheckDU.sh
r12548 r12554 1 1 #!/bin/bash 2 2 3 diskusage=( `df /loc_data | grep /loc_data` ) 3 dir=/loc_data 4 if [ "$HOSTNAME" == "daq" ] 5 then 6 dir=/raid10 7 fi 8 9 diskusage=( `df -P $dir | grep $dir ` ) 4 10 # check if more than 100 GB are left on /loc_data 5 if [ ${diskusage[ 2]} -lt 104857600 ]11 if [ ${diskusage[3]} -lt 104857600 ] 6 12 then 7 13 echo "WARN less than 100 GB left on /loc_data on node "$HOSTNAME
Note:
See TracChangeset
for help on using the changeset viewer.