-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HYD-1263 Load lustre modules prior to any mounts
Original-Change-Id: Iff9c792475e59a6347471b79a5af1d177e23ab31
- Loading branch information
Brian J. Murrell
committed
Aug 17, 2012
1 parent
7335875
commit 5c18725
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
# | ||
# lustre This loads the lustre modules | ||
# | ||
# chkconfig: 2345 11 99 | ||
# description: This loads the Lustre modules. | ||
|
||
|
||
PATH=/sbin:/bin:/usr/bin:/usr/sbin | ||
|
||
# Source function library. | ||
. /etc/init.d/functions | ||
|
||
# Check that we are root ... so non-root users stop here | ||
test $EUID = 0 || exit 4 | ||
|
||
RETVAL=0 | ||
|
||
start(){ | ||
echo -n "Loading Lustre module stack..." | ||
/sbin/modprobe lustre | ||
RETVAL=$? | ||
echo | ||
return $RETVAL | ||
} | ||
|
||
# See how we were called. | ||
case "$1" in | ||
start) | ||
start | ||
;; | ||
stop) | ||
: | ||
;; | ||
*) | ||
echo $"Usage: $0 {start|stop}" | ||
RETVAL=3 | ||
esac | ||
|
||
exit $RETVAL |