- only need to do it once, by connecting to a random monitor, not for
each monitor
- not sure we should try it every time we start the monitor for all time,
as opposed to once after mkfs, or whenever the admin chooses to load
new classes
monaddr=
dobtrfs=1
verbose=0
-start_class=
while echo $1 | grep -q '^-'; do # FIXME: why not '^-'?
case $1 in
do_cmd "$cmd" $runarg
[ -n "$post_start" ] && do_cmd "$post_start"
[ -n "$lockfile" ] && [ "$?" = 0 ] && touch $lockfile
- [ "$type" == "mon" ] && start_class="$start_class $name"
;;
stop)
esac
done
-if [ "$start_class" != "" ]; then
- echo "Loading classes into monitors"
- for name in $start_class; do
- type=`echo $name | cut -c 1-3` # e.g. 'mon', if $item is 'mon1'
- id=`echo $name | cut -c 4- | sed 's/\\.//'`
- num=$id
-
- check_host || continue
-
- # conf file
- if [ "$host" = "$hostname" ]; then
- cur_conf=$conf
- else
- cur_conf="/tmp/ceph.conf.$$"
- fi
- do_cmd "$BINDIR/cclass -c $cur_conf -a"
- done
-fi
-
exit 0