]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: start 3 mdss
authorSage Weil <sage@newdream.net>
Thu, 18 Dec 2008 19:31:43 +0000 (11:31 -0800)
committerSage Weil <sage@newdream.net>
Tue, 23 Dec 2008 19:45:21 +0000 (11:45 -0800)
src/vstart.sh

index ef16d900ab4b6b6c74e3568aefc2f74bdb85357c..0f382848c5602a1c3f94fdf7f5cf1ad0a1c9afa6 100755 (executable)
@@ -2,7 +2,7 @@
 
 [ "$CEPH_NUM_MON" == "" ] && CEPH_NUM_MON=3
 [ "$CEPH_NUM_OSD" == "" ] && CEPH_NUM_OSD=3
-[ "$CEPH_NUM_MDS" == "" ] && CEPH_NUM_MDS=1
+[ "$CEPH_NUM_MDS" == "" ] && CEPH_NUM_MDS=3
 
 let new=0
 let debug=0
@@ -80,7 +80,7 @@ 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 0"
+       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
@@ -181,6 +181,7 @@ if [ $start_mds -eq 1 ]; then
 #$CEPH_BIN/cmds -d $ARGS --mds_thrash_fragments 0 --mds_thrash_exports 0 #--debug_ms 20
 #$CEPH_BIN/ceph mds set_max_mds 2
        done
+       ./ceph mds set_max_mds $CEPH_NUM_MDS
 fi
 
 echo "started.  stop.sh to stop.  see out/* (e.g. 'tail -f out/????') for debug output."