Skip to content
Snippets Groups Projects
Commit 4e962ce1 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=14471

i=Adilger
i=grev
replace proc with lctl [set|get]_param
parent 0f250ca3
No related branches found
No related tags found
No related merge requests found
...@@ -26,12 +26,12 @@ display_elapsed_time() { ...@@ -26,12 +26,12 @@ display_elapsed_time() {
debug_client_on() debug_client_on()
{ {
echo -1 > /proc/sys/lnet/debug lctl set_param -n debug=-1
} }
debug_client_off() debug_client_off()
{ {
echo 0x3f0400 > /proc/sys/lnet/debug lctl set_param -n debug=0x3f0400
} }
MNT=${MNT:-/mnt/lustre} MNT=${MNT:-/mnt/lustre}
......
...@@ -26,12 +26,12 @@ display_elapsed_time() { ...@@ -26,12 +26,12 @@ display_elapsed_time() {
debug_client_on() debug_client_on()
{ {
echo -1 > /proc/sys/lnet/debug lctl set_param -n debug=-1
} }
debug_client_off() debug_client_off()
{ {
echo 0x3f0400 > /proc/sys/lnet/debug lctl set_param -n debug=0x3f0400
} }
MNT=${MNT:-/mnt/lustre} MNT=${MNT:-/mnt/lustre}
......
...@@ -140,7 +140,7 @@ for NAME in $CONFIGS; do ...@@ -140,7 +140,7 @@ for NAME in $CONFIGS; do
mkdir -p $BONDIR mkdir -p $BONDIR
$LFS setstripe -c -1 $BONDIR $LFS setstripe -c -1 $BONDIR
sync sync
MIN=`cat /proc/fs/lustre/osc/*/kbytesavail | sort -n | head -n1` MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
SPACE=$(( OSTCOUNT * MIN )) SPACE=$(( OSTCOUNT * MIN ))
[ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4)) [ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
log "min OST has ${MIN}kB available, using ${SIZE}kB file size" log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
...@@ -166,7 +166,7 @@ for NAME in $CONFIGS; do ...@@ -166,7 +166,7 @@ for NAME in $CONFIGS; do
mkdir -p $IOZDIR mkdir -p $IOZDIR
$LFS setstripe -c -1 $IOZDIR $LFS setstripe -c -1 $IOZDIR
sync sync
MIN=`cat /proc/fs/lustre/osc/*/kbytesavail | sort -n | head -n1` MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
SPACE=$(( OSTCOUNT * MIN )) SPACE=$(( OSTCOUNT * MIN ))
[ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4)) [ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
log "min OST has ${MIN}kB available, using ${SIZE}kB file size" log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
...@@ -298,8 +298,8 @@ for NAME in $CONFIGS; do ...@@ -298,8 +298,8 @@ for NAME in $CONFIGS; do
$SETUP $SETUP
export LIBLUSTRE_MOUNT_POINT=$MOUNT2 export LIBLUSTRE_MOUNT_POINT=$MOUNT2
export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
export LIBLUSTRE_TIMEOUT=`cat /proc/sys/lustre/timeout` export LIBLUSTRE_TIMEOUT=`lctl get_param -n timeout`
#export LIBLUSTRE_DEBUG_MASK=`cat /proc/sys/lnet/debug` #export LIBLUSTRE_DEBUG_MASK=`lctl get_param -n debug`
if [ -x $LIBLUSTRETESTS/sanity ]; then if [ -x $LIBLUSTRETESTS/sanity ]; then
mkdir -p $MOUNT2 mkdir -p $MOUNT2
echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment