Whamcloud - gitweb
- make HEAD from b_post_cmd3
[fs/lustre-release.git] / lustre / scripts / lustre_rmmod
1 #!/bin/sh
2 #
3 # remove all lustre modules.  Won't succeed if they're in use, or if you
4 # manually did a 'lctl network up'.
5 ###############################################################################
6
7 SRCDIR=`dirname $0`
8 PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH
9
10 lctl modules | awk '{ print $2 }' | xargs rmmod >/dev/null 2>&1
11 # do it again, in case we tried to unload the lnd's too early
12 lsmod | grep lnet > /dev/null && lctl modules | awk '{ print $2 }' | xargs rmmod