From: Samarah Uriarte Date: Thu, 27 Feb 2025 21:30:50 +0000 (-0600) Subject: vstart: Remove dbstore directory if cluster is started as new X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf51fa1dc9f3ad9bf9d58e08d87ffac25effe950;p=ceph.git vstart: Remove dbstore directory if cluster is started as new Signed-off-by: Samarah Uriarte --- diff --git a/src/vstart.sh b/src/vstart.sh index 8956593a99e..27a898aabe0 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -795,6 +795,10 @@ do_rgw_dbstore_conf() { exit 1 fi + if [ "$new" -eq 1 ]; then + prun rm -rf "$CEPH_DEV_DIR/rgw/dbstore" + fi + prun mkdir -p "$CEPH_DEV_DIR/rgw/dbstore" wconf <