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

b=12649

i=Nathan
i=Brian

CLIENTONLY fix
parent 22e5236d
No related branches found
No related tags found
No related merge requests found
...@@ -160,17 +160,17 @@ load_modules() { ...@@ -160,17 +160,17 @@ load_modules() {
echo Loading modules from $LUSTRE echo Loading modules from $LUSTRE
load_module ../lnet/libcfs/libcfs load_module ../lnet/libcfs/libcfs
[ -z "$LNETOPTS" ] && \ [ -f /etc/modprobe.conf ] && MODPROBECONF=/etc/modprobe.conf
LNETOPTS=$(awk '/^options lnet/ { print $0}' /etc/modprobe.conf | sed 's/^options lnet //g') [ -f /etc/modprobe.d/Lustre ] && MODPROBECONF=/etc/modprobe.d/Lustre
[ -z "$LNETOPTS" -a -n "$MODPROBECONF" ] && \
LNETOPTS=$(awk '/^options lnet/ { print $0}' $MODPROBECONF | sed 's/^options lnet //g')
echo "lnet options: '$LNETOPTS'" echo "lnet options: '$LNETOPTS'"
# note that insmod will ignore anything in modprobe.conf # note that insmod will ignore anything in modprobe.conf
load_module ../lnet/lnet/lnet $LNETOPTS load_module ../lnet/lnet/lnet $LNETOPTS
LNETLND=${LNETLND:-"socklnd/ksocklnd"} LNETLND=${LNETLND:-"socklnd/ksocklnd"}
load_module ../lnet/klnds/$LNETLND load_module ../lnet/klnds/$LNETLND
[ "$FSTYPE" = "ldiskfs" ] && load_module ../ldiskfs/ldiskfs/ldiskfs
load_module lvfs/lvfs load_module lvfs/lvfs
load_module obdclass/obdclass load_module obdclass/obdclass
load_module lvfs/fsfilt_$FSTYPE
load_module ptlrpc/ptlrpc load_module ptlrpc/ptlrpc
load_module ptlrpc/gss/ptlrpc_gss load_module ptlrpc/gss/ptlrpc_gss
# Now, some modules depend on lquota without USE_QUOTA check, # Now, some modules depend on lquota without USE_QUOTA check,
...@@ -183,17 +183,22 @@ load_modules() { ...@@ -183,17 +183,22 @@ load_modules() {
load_module mdc/mdc load_module mdc/mdc
load_module osc/osc load_module osc/osc
load_module lov/lov load_module lov/lov
load_module mds/mds load_module mgc/mgc
load_module mdd/mdd if [ -z "$CLIENTONLY" ]; then
load_module mdt/mdt load_module mgs/mgs
load_module cmm/cmm load_module mds/mds
load_module osd/osd load_module mdd/mdd
load_module ost/ost load_module mdt/mdt
load_module obdfilter/obdfilter [ "$FSTYPE" = "ldiskfs" ] && load_module ../ldiskfs/ldiskfs/ldiskfs
load_module lvfs/fsfilt_$FSTYPE
load_module cmm/cmm
load_module osd/osd
load_module ost/ost
load_module obdfilter/obdfilter
fi
load_module llite/lustre load_module llite/lustre
load_module llite/llite_lloop load_module llite/llite_lloop
load_module mgc/mgc
load_module mgs/mgs
rm -f $TMP/ogdb-`hostname` rm -f $TMP/ogdb-`hostname`
$LCTL modules > $TMP/ogdb-`hostname` $LCTL modules > $TMP/ogdb-`hostname`
# 'mount' doesn't look in $PATH, just sbin # 'mount' doesn't look in $PATH, just sbin
...@@ -828,6 +833,7 @@ stopall() { ...@@ -828,6 +833,7 @@ stopall() {
# assume client mount is local # assume client mount is local
grep " $MOUNT " /proc/mounts && zconf_umount `hostname` $MOUNT $* grep " $MOUNT " /proc/mounts && zconf_umount `hostname` $MOUNT $*
grep " $MOUNT2 " /proc/mounts && zconf_umount `hostname` $MOUNT2 $* grep " $MOUNT2 " /proc/mounts && zconf_umount `hostname` $MOUNT2 $*
[ "$CLIENTONLY" ] && return
for num in `seq $MDSCOUNT`; do for num in `seq $MDSCOUNT`; do
stop mds$num -f stop mds$num -f
done done
......
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