Last change
on this file since 12558 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 |
|
---|
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 | fi
|
---|
16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.