start_osd=1
fi
-ARGS="-f"
+ARGS="-d -c $conf"
if [ $debug -eq 0 ]; then
- CMON_ARGS="--conf_file $conf --debug_mon 10 --debug_ms 1"
- COSD_ARGS="--conf_file $conf "
- CMDS_ARGS="--conf_file $conf --debug_ms 1"
+ CMON_ARGS="--debug_mon 10 --debug_ms 1"
+ COSD_ARGS=""
+ CMDS_ARGS="--debug_ms 1"
else
echo "** going verbose **"
- CMON_ARGS="--conf_file $conf --lockdep 1 --debug_mon 20 --debug_ms 1 --debug_paxos 20"
- COSD_ARGS="--conf_file $conf --lockdep 1 --debug_osd 25 --debug_journal 20 --debug_filestore 10 --debug_ms 1" # --debug_journal 20 --debug_osd 20 --debug_filestore 20 --debug_ebofs 20
- CMDS_ARGS="--conf_file $conf --lockdep 1 --mds_cache_size 500 --mds_log_max_segments 2 --debug_ms 1 --debug_mds 20 --mds_thrash_fragments 0 --mds_thrash_exports 1"
+ CMON_ARGS="--lockdep 1 --debug_mon 20 --debug_ms 1 --debug_paxos 20"
+ COSD_ARGS="--lockdep 1 --debug_osd 25 --debug_journal 20 --debug_filestore 10 --debug_ms 1" # --debug_journal 20 --debug_osd 20 --debug_filestore 20 --debug_ebofs 20
+ CMDS_ARGS="--lockdep 1 --mds_cache_size 500 --mds_log_max_segments 2 --debug_ms 1 --debug_mds 20 --mds_thrash_fragments 0 --mds_thrash_exports 1"
fi
if [ "$MON_ADDR" != "" ]; then
# start monitors
if [ $start_mon -ne 0 ]; then
for f in `seq 0 $((CEPH_NUM_MON-1))`; do
- echo $valgrind $CEPH_BIN/cmon $ARGS $CMON_ARGS mondata/mon$f &
- $valgrind $CEPH_BIN/cmon -p out/mon$f.pid $ARGS $CMON_ARGS mondata/mon$f &
+ echo $valgrind $CEPH_BIN/cmon mondata/mon$f $ARGS $CMON_ARGS
+ $valgrind $CEPH_BIN/cmon -p out/mon$f.pid mondata/mon$f $ARGS $CMON_ARGS
done
sleep 1
fi
$SUDO $CEPH_BIN/cosd --mkfs_for_osd $osd dev/osd$osd # --debug_journal 20 --debug_osd 20 --debug_filestore 20 --debug_ebofs 20
fi
echo start osd$osd
- echo $valgrind $SUDO $CEPH_BIN/cosd -m $IP:$CEPH_PORT dev/osd$osd $ARGS $COSD_ARGS &
- $valgrind $SUDO $CEPH_BIN/cosd -p out/osd$f.pid -m $IP:$CEPH_PORT dev/osd$osd $ARGS $COSD_ARGS &
+ echo $valgrind $SUDO $CEPH_BIN/cosd -m $IP:$CEPH_PORT dev/osd$osd $ARGS $COSD_ARGS
+ $valgrind $SUDO $CEPH_BIN/cosd -p out/osd$f.pid -m $IP:$CEPH_PORT dev/osd$osd $ARGS $COSD_ARGS
# echo valgrind --leak-check=full --show-reachable=yes $CEPH_BIN/cosd dev/osd$osd --debug_ms 1 --debug_osd 20 --debug_filestore 10 --debug_ebofs 20 #1>out/o$osd #& #--debug_osd 40
done
fi
if [ $start_mds -eq 1 ]; then
for mds in `seq 0 $((CEPH_NUM_MDS-1))`
do
- echo $valgrind $CEPH_BIN/cmds $ARGS $CMDS_ARGS &
- $valgrind $CEPH_BIN/cmds $ARGS $CMDS_ARGS &
+ echo $valgrind $CEPH_BIN/cmds $ARGS $CMDS_ARGS
+ $valgrind $CEPH_BIN/cmds $ARGS $CMDS_ARGS
#valgrind --tool=massif $CEPH_BIN/cmds $ARGS --mds_log_max_segments 2 --mds_thrash_fragments 0 --mds_thrash_exports 0 > m #--debug_ms 20
#$CEPH_BIN/cmds -d $ARGS --mds_thrash_fragments 0 --mds_thrash_exports 0 #--debug_ms 20