From: nathan Date: Sat, 28 Oct 2006 00:45:17 +0000 (+0000) Subject: fix some probs with 1.6 X-Git-Tag: v1_7_100~406 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=020fce80cdc623316bf38c1ad2e7bb2672083fd7 fix some probs with 1.6 --- diff --git a/lustre-iokit/ost-survey/ost-survey.sh b/lustre-iokit/ost-survey/ost-survey.sh index 73a3b05..ba438a4 100755 --- a/lustre-iokit/ost-survey/ost-survey.sh +++ b/lustre-iokit/ost-survey/ost-survey.sh @@ -34,8 +34,8 @@ fi test_preq () { # check for a mounted Lustre filesystem - MNT=`grep lustre /proc/mounts | awk '{print $2}'` - if [ -z $MNT ]; then + MNT=`grep ":/lustre" /proc/mounts | awk '{print $2}'` + if [ -z "$MNT" ]; then echo "Mounted Lustre filesystem not found" exit 1 fi @@ -45,8 +45,7 @@ test_preq () { } ost_count () { - # We assume that all devices with 'osc' in the string are OSTs - OSTS=`lctl dl | grep -c osc` + OSTS=$(cat /proc/fs/lustre/lov/lustre-clilov-*/numobd | head -1) } make_dummy () {