logger_calc_variance: true,
- dout_dir: "out", // if daemonize == true
- dout_sym_dir: "out", // if daemonize == true
- logger_dir: "log",
+ dout_dir: "/var/log/ceph", // if daemonize == true
+ dout_sym_dir: "/var/log/ceph", // if daemonize == true
+ logger_dir: "/var/log/ceph/stat",
conf_file: "ceph.conf",
dump_conf: false,
let ramjournal=0
norestart="--norestart"
+conf="workingdir.conf"
+
while [ $# -ge 1 ]; do
case $1 in
-d | --debug )
MOUNTOPTIONS="-o notreelog,flushoncommit"
if [ $debug -eq 0 ]; then
- CMON_ARGS="--debug_mon 10 --debug_ms 1"
- COSD_ARGS=""
- CMDS_ARGS="--file_layout_pg_size 3 --debug_ms 1"
+ CMON_ARGS="--conf_file $conf --debug_mon 10 --debug_ms 1"
+ COSD_ARGS="--conf_file $conf "
+ CMDS_ARGS="--conf_file $conf --file_layout_pg_size 3 --debug_ms 1"
else
echo "** going verbose **"
- CMON_ARGS="--lockdep 1 --debug_mon 20 --debug_ms 1 --debug_paxos 20"
- COSD_ARGS="--lockdep 1 --debug_osd 20 --debug_journal 20 --debug_filestore 0 --debug_ms 1" # --debug_journal 20 --debug_osd 20 --debug_filestore 20 --debug_ebofs 20
- CMDS_ARGS="--file_layout_pg_size 3 --lockdep 1 --mds_cache_size 500 --mds_log_max_segments 2 --debug_ms 1 --debug_mds 20 --mds_thrash_fragments 0 --mds_thrash_exports 0"
+ 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 20 --debug_journal 20 --debug_filestore 0 --debug_ms 1" # --debug_journal 20 --debug_osd 20 --debug_filestore 20 --debug_ebofs 20
+ CMDS_ARGS="--conf_file $conf --file_layout_pg_size 3 --lockdep 1 --mds_cache_size 500 --mds_log_max_segments 2 --debug_ms 1 --debug_mds 20 --mds_thrash_fragments 0 --mds_thrash_exports 0"
fi
valgrind=""
MON_ADDR=""
+conf="workingdir.conf"
+
usage="usage: $0 [option]... [mon] [mds] [osd]\n"
usage=$usage"options:\n"
usage=$usage"\t-d, --debug\n"
ARGS="-f"
if [ $debug -eq 0 ]; then
- CMON_ARGS="--debug_mon 10 --debug_ms 1"
- COSD_ARGS=""
- CMDS_ARGS="--debug_ms 1"
+ CMON_ARGS="--conf_file $conf --debug_mon 10 --debug_ms 1"
+ COSD_ARGS="--conf_file $conf "
+ CMDS_ARGS="--conf_file $conf --debug_ms 1"
else
echo "** going verbose **"
- 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"
+ 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"
fi
if [ "$MON_ADDR" != "" ]; then
test -d out || mkdir out
$SUDO rm -f out/*
+test -d log && rm log/*
test -d gmon && $SUDO rm -rf gmon/*
--- /dev/null
+#
+# specify log, stat paths relative to the current directory. useful
+# when running out of the directory you've compiled in.
+#
+[global]
+ dout dir = out
+ dout sym dir = out
+ logger dir = log