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

b=15876

i=Adilger

skip LFSCK test for remote MDS also
parent dc1c901c
No related branches found
No related tags found
No related merge requests found
......@@ -244,20 +244,19 @@ for NAME in $CONFIGS; do
SANITYN="done"
fi
remote_mds && log "Remote MDS, skipping LFSCK test" && LFSCK=no
remote_ost && log "Remote OST, skipping LFSCK test" && LFSCK=no
if [ "$LFSCK" != "no" -a -x /usr/sbin/lfsck ]; then
title lfsck
E2VER=`e2fsck -V 2>&1 | head -n 1 | cut -d' ' -f 2`
if grep -q obdfilter /proc/fs/lustre/devices; then
if [ `echo $E2VER | cut -d. -f2` -ge 39 ] && \
[ "`echo $E2VER | grep cfs`" -o \
"`echo $E2VER | grep sun`" ]; then
bash lfscktest.sh
else
e2fsck -V
echo "e2fsck does not support lfsck, skipping"
fi
if [ `echo $E2VER | cut -d. -f2` -ge 39 ] && \
[ "`echo $E2VER | grep cfs`" -o \
"`echo $E2VER | grep sun`" ]; then
bash lfscktest.sh
else
echo "remote OST, skipping test"
e2fsck -V
echo "e2fsck does not support lfsck, skipping"
fi
LFSCK="done"
fi
......
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