From: Sage Weil Date: Wed, 6 Jan 2016 21:19:14 +0000 (-0500) Subject: vstart.sh: put the OSD journal in the normal location X-Git-Tag: v10.0.4~154^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5d106ff1ea4ebb02e8dd98a4a05967c44c3bb22;p=ceph.git vstart.sh: put the OSD journal in the normal location Also, drop the ability to run without a journal. Signed-off-by: Sage Weil --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index 01b0f756eea1..e79857a109cf 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -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) diff --git a/src/vstart.sh b/src/vstart.sh index 6db22ddc216e..44e20a6a814f 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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 : 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 <> $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 <> $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