From 020fce80cdc623316bf38c1ad2e7bb2672083fd7 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 28 Oct 2006 00:45:17 +0000 Subject: [PATCH] fix some probs with 1.6 --- lustre-iokit/ost-survey/ost-survey.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 () { -- 1.8.3.1