]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: put the OSD journal in the normal location
authorSage Weil <sage@redhat.com>
Wed, 6 Jan 2016 21:19:14 +0000 (16:19 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:12 +0000 (14:06 -0500)
Also, drop the ability to run without a journal.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/ceph_objectstore_tool.py
src/vstart.sh

index 01b0f756eea165036d3d418027526cbc00c9735a..e79857a109cf73cd91e515b5734c8fba0115c750 100755 (executable)
@@ -592,7 +592,7 @@ def main(argv):
     pid = os.getpid()
     TESTDIR = "/tmp/test.{pid}".format(pid=pid)
     DATADIR = "/tmp/data.{pid}".format(pid=pid)
-    CFSD_PREFIX = "./ceph-objectstore-tool --data-path " + OSDDIR + "/{osd} --journal-path " + OSDDIR + "/{osd}.journal "
+    CFSD_PREFIX = "./ceph-objectstore-tool --data-path " + OSDDIR + "/{osd} "
     PROFNAME = "testecprofile"
 
     os.environ['CEPH_CONF'] = CEPH_CONF
@@ -872,7 +872,7 @@ def main(argv):
     cmd = (CFSD_PREFIX + "--op import --file {FOO}").format(osd=ONEOSD, FOO=OTHERFILE)
     ERRORS += test_failure(cmd, "file: {FOO}: No such file or directory".format(FOO=OTHERFILE))
 
-    cmd = "./ceph-objectstore-tool --data-path BAD_DATA_PATH --journal-path " + OSDDIR + "/{osd}.journal --op list".format(osd=ONEOSD)
+    cmd = "./ceph-objectstore-tool --data-path BAD_DATA_PATH --op list".format(osd=ONEOSD)
     ERRORS += test_failure(cmd, "data-path: BAD_DATA_PATH: No such file or directory")
 
     cmd = "./ceph-objectstore-tool --journal-path BAD_JOURNAL_PATH --op dump-journal"
@@ -892,7 +892,7 @@ def main(argv):
     ERRORS += test_failure(cmd, "Need a valid --type e.g. filestore, memstore")
 
     # Don't specify a data-path
-    cmd = "./ceph-objectstore-tool --journal-path {dir}/{osd}.journal --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
+    cmd = "./ceph-objectstore-tool --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
     ERRORS += test_failure(cmd, "Must provide --data-path")
 
     cmd = (CFSD_PREFIX + "--op remove").format(osd=ONEOSD)
index 6db22ddc216e87c70317683713f63ed7f1cd854c..44e20a6a814f5e29e9374d938104af97901b0214 100755 (executable)
@@ -106,7 +106,6 @@ cephx=1 #turn cephx on by default
 cache=""
 memstore=0
 bluestore=0
-journal=1
 
 MON_ADDR=""
 
@@ -133,7 +132,6 @@ usage=$usage"\t-X disable cephx\n"
 usage=$usage"\t--hitset <pool> <hit_set_type>: enable hitset tracking\n"
 usage=$usage"\t-e : create an erasure pool\n";
 usage=$usage"\t-o config\t\t add extra config parameters to all sections\n"
-usage=$usage"\t-J no journal\t\tdisable filestore journal\n"
 usage=$usage"\t--mon_num specify ceph monitor count\n"
 usage=$usage"\t--osd_num specify ceph osd count\n"
 usage=$usage"\t--mds_num specify ceph mds count\n"
@@ -238,9 +236,6 @@ case $1 in
     -X )
            cephx=0
            ;;
-    -J )
-           journal=0
-           ;;
     -k )
            overwrite_conf=0
            ;;
@@ -469,11 +464,6 @@ cat <<EOF >> $conf_fn
        auth client required = none
 EOF
 fi
-                        if [ $journal -eq 1 ]; then
-                           journal_path="$CEPH_DEV_DIR/osd\$id.journal"
-                       else
-                           journal_path=""
-                       fi
                        cat <<EOF >> $conf_fn
 
 [client]
@@ -494,7 +484,7 @@ $extra_conf
 [osd]
 $DAEMONOPTS
         osd data = $CEPH_DEV_DIR/osd\$id
-        osd journal = $journal_path
+        osd journal = $CEPH_DEV_DIR/osd\$id/journal
         osd journal size = 100
         osd class tmp = out
         osd class dir = $OBJCLASS_PATH