diff --git a/src/vstart.sh b/src/vstart.sh index 634fb74ac87..1187e86b9ed 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -168,6 +168,7 @@ fi ceph_osd=ceph-osd rgw_frontend="beast" rgw_compression="" +rgw_store="rados" lockdep=${LOCKDEP:-1} spdk_enabled=0 # disable SPDK by default pmem_enabled=0 @@ -229,6 +230,7 @@ options: --rgw_frontend specify the rgw frontend configuration --rgw_arrow_flight start arrow flight frontend --rgw_compression specify the rgw compression plugin + --rgw_store storage backend: rados|dbstore|posix --seastore use seastore as crimson osd backend -b, --bluestore use bluestore as the osd objectstore backend (default) -K, --kstore use kstore as the osd objectstore backend @@ -461,6 +463,10 @@ case $1 in rgw_compression=$2 shift ;; + --rgw_store) + rgw_store=$2 + shift + ;; --kstore_path) kstore_path=$2 shift @@ -692,6 +698,22 @@ done } +do_rgw_dbstore_conf() { + if [ $CEPH_NUM_RGW -gt 1 ]; then + echo "dbstore is not distributed so only works with CEPH_NUM_RGW=1" + exit 1 + fi + + prun mkdir -p "$CEPH_DEV_DIR/rgw/dbstore" + wconf <> "$keyring_fn" + if [ "$CEPH_NUM_MON" -gt 0 ]; then + ceph_adm auth get-or-create $rgw_name \ + mon 'allow rw' \ + osd 'allow rwx' \ + mgr 'allow rw' \ + >> "$keyring_fn" + fi debug echo start rgw on http${CEPH_RGW_HTTPS}://localhost:${current_port} run 'rgw' $current_port $RGWSUDO $CEPH_BIN/radosgw -c $conf_fn \