#!/bin/bash
#
# lustre This shell script takes care of starting and stopping
-# the lustre services.
+# the lustre services.
#
# chkconfig: - 60 20
# description: Part of the lustre file system.
# config: /etc/sysconfig/lustre
### BEGIN INIT INFO
# Provides: lustre
-# Required-Start: openibd
+# Required-Start: lnet
# Defalt-Start: -
# Default-Stop: 0 1 6
# Description: Lustre init script
assemble_md_device $journal $raidtab 2>/dev/null
fi
+ if mountpt_is_active $label || \
+ device_is_active $label; then
+ echo "$label is already mounted"
+ # no error
+ continue
+ fi
+
if [ "x$devtype" != "xzfs" ] ; then
- if mountpt_is_active $label || \
- device_is_active $label; then
- echo "$label is already mounted"
- # no error
- continue
- fi
if ! mmp_test $dev; then
result=2
continue