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 |
|
---|
3 | dir=/loc_data
|
---|
4 | if [ "$HOSTNAME" == "daq" ]
|
---|
5 | then
|
---|
6 | dir=/raid10
|
---|
7 | fi
|
---|
8 |
|
---|
9 | diskusage=( `df -P $dir | grep $dir ` )
|
---|
10 | # check if more than X GB are left on /loc_data
|
---|
11 | if [ ${diskusage[3]} -lt 209715200 ] # 200 GB
|
---|
12 | #if [ ${diskusage[3]} -lt 104857600 ] # 100 GB
|
---|
13 | then
|
---|
14 | echo "WARN less than 200 GB left on /loc_data on node "$HOSTNAME
|
---|
15 | df -h $dir
|
---|
16 | fi
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.