2009-01-17 18:06:03 +00:00
|
|
|
#!/bin/bash
|
2008-03-19 17:49:37 +00:00
|
|
|
|
|
|
|
./stop.sh
|
|
|
|
rm core*
|
|
|
|
|
|
|
|
test -d out || mkdir out
|
|
|
|
rm out/*
|
|
|
|
|
|
|
|
# figure machine's ip
|
|
|
|
HOSTNAME=`hostname`
|
|
|
|
IP=`host $HOSTNAME | cut -d ' ' -f 4`
|
|
|
|
[ "$CEPH_BIN" == "" ] && CEPH_BIN=.
|
|
|
|
|
|
|
|
echo hostname $HOSTNAME
|
|
|
|
echo "ip $IP"
|
|
|
|
if [ `echo $IP | grep '^127\\.'` ]
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo "WARNING: hostname resolves to loopback; remote hosts will not be able to"
|
|
|
|
echo " connect. either adjust /etc/hosts, or edit this script to use your"
|
|
|
|
echo " machine's real IP."
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
# shared args
|
2008-05-13 15:30:51 +00:00
|
|
|
ARGS="-d --debug_ms 1"
|
2008-03-19 17:49:37 +00:00
|
|
|
|
|
|
|
# monitor
|
|
|
|
$CEPH_BIN/cmon $ARGS mondata/mon0 --debug_mon 20 --debug_ms 1
|
|
|
|
|
|
|
|
# osds
|
|
|
|
for osd in 0 1 2 3
|
|
|
|
do
|
2008-05-13 15:30:51 +00:00
|
|
|
$CEPH_BIN/cosd $ARGS dev/osd$osd
|
2008-03-19 17:49:37 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# mds
|
2008-05-13 15:30:51 +00:00
|
|
|
$CEPH_BIN/cmds $ARGS
|
2008-03-19 17:49:37 +00:00
|
|
|
|
|
|
|
echo "started. stop.sh to stop. see out/* (e.g. 'tail -f out/????') for debug output."
|
|
|
|
|