From: Casey Bodley Date: Thu, 7 Dec 2023 14:11:12 +0000 (-0500) Subject: vstart: add --rgw_store option for rados|dbstore|posix X-Git-Tag: v19.3.0~413^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F54827%2Fhead;p=ceph.git vstart: add --rgw_store option for rados|dbstore|posix enables dbstore for rgw_backend_store and rgw_config_store, allowing vstart to run without any mons or osds. database files are put under the dev subdirectory when rgw_store=posix, the posix filter is added on top of dbstore Signed-off-by: Casey Bodley --- diff --git a/src/vstart.sh b/src/vstart.sh index 634fb74ac874..1187e86b9ed8 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 \