]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: document mstart.sh and related scripts
authorCasey Bodley <cbodley@redhat.com>
Tue, 15 Oct 2024 15:29:53 +0000 (11:29 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 15 Oct 2024 15:35:51 +0000 (11:35 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/mrgw.sh
src/mrun
src/mstart.sh
src/mstop.sh

index 05739bf015ebc3b2204e394ee5aa252dc4e38756..86bef336867de92918e738d993c8d5d270b06857 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env bash
 
+# Start/restart a radosgw instance on the given mstart.sh cluster.
+
 set -e
 
 rgw_frontend=${RGW_FRONTEND:-"beast"}
index a85221800218b3a577240a354384b7cef4602d87..df7e3542b93a5f85be59d72a138f13dd38b759fd 100755 (executable)
--- a/src/mrun
+++ b/src/mrun
@@ -1,5 +1,7 @@
 #!/usr/bin/env bash
 
+# Run a ceph command against the given mstart.sh cluster.
+
 [ $# -lt 2 ] && echo "usage: $0 <name> <command> [params...]" && exit 1
 
 root=`dirname $0`
index 34b57e1761125ac19ba018cf4e9c4f6d17b99f97..0c512ca9eb8c3fafb9c2370b3f53ebfaa7a29e42 100755 (executable)
@@ -1,5 +1,33 @@
 #!/bin/sh
 
+# Deploy a vstart.sh cluster in a named subdirectory. This makes it possible to
+# start multiple clusters in different subdirectories. See mstop.sh for cleanup.
+#
+# Example:
+#
+# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c1 -n -d
+# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c2 -n -d
+#
+# ~/ceph/build $ ls run
+# c1  c2
+# ~/ceph/build $ ls run/c1
+# asok  ceph.conf  dev  keyring  out
+#
+# ~/ceph/build $ ../src/mrun c1 radosgw-admin user list
+# [
+#     "56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234",
+#     "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
+#     "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
+#     "testacct1user",
+#     "test",
+#     "testacct2root",
+#     "testacct1root",
+#     "testid"
+# ]
+#
+# ~/ceph/build $ ../src/mstop.sh c1
+# ~/ceph/build $ ../src/mstop.sh c2
+
 usage="usage: $0 <name> [vstart options]..\n"
 
 usage_exit() {
index 702d1765941e5f7224b805dd270e8e5ba8fd508c..eec0ca02e42ae521f9835f07f71fd47d8ab8b120 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env bash
 
+# Stop a named cluster started by mstart.sh
+
 set -e
 
 script_root=`dirname $0`