]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: add --memstore option 935/head
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 12 Dec 2013 17:31:53 +0000 (09:31 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 12 Dec 2013 17:31:53 +0000 (09:31 -0800)
for setting memstore backed osds

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/vstart.sh

index 22a32cbe132b9e803660d19d28ce789b5f6261e8..c10ed8c4c6d9e6c0914bbfea20ad483c50f0fec6 100755 (executable)
@@ -37,6 +37,7 @@ nodaemon=0
 smallmds=0
 overwrite_conf=1
 cephx=1 #turn cephx on by default
+memstore=0
 
 MON_ADDR=""
 
@@ -142,6 +143,9 @@ case $1 in
     -k )
            overwrite_conf=0
            ;;
+    --memstore )
+           memstore=1
+           ;;
     -o )
            extra_conf="$extra_conf     $2
 "
@@ -221,6 +225,10 @@ if [ -n "$MON_ADDR" ]; then
        CMDS_ARGS=" -m "$MON_ADDR
 fi
 
+if [ "$memstore" -eq 1 ]; then
+    COSDMEMSTORE='
+       osd objectstore = memstore'
+fi
 
 # lockdep everywhere?
 # export CEPH_ARGS="--lockdep 1"
@@ -339,6 +347,7 @@ $DAEMONOPTS
         osd scrub load threshold = 5.0
         osd debug op order = true
 $COSDDEBUG
+$COSDMEMSTORE
 $extra_conf
 [mon]
         mon pg warn min per osd = 10