Skip to content

Commit b6cb908

Browse files
committed
rgw: document mstart.sh and related scripts
Signed-off-by: Casey Bodley <[email protected]>
1 parent 4718bfe commit b6cb908

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

src/mrgw.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Start/restart a radosgw instance on the given mstart.sh cluster.
4+
35
set -e
46

57
rgw_frontend=${RGW_FRONTEND:-"beast"}

src/mrun

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Run a ceph command against the given mstart.sh cluster.
4+
35
[ $# -lt 2 ] && echo "usage: $0 <name> <command> [params...]" && exit 1
46

57
root=`dirname $0`

src/mstart.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
#!/bin/sh
22

3+
# Deploy a vstart.sh cluster in a named subdirectory. This makes it possible to
4+
# start multiple clusters in different subdirectories. See mstop.sh for cleanup.
5+
#
6+
# Example:
7+
#
8+
# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c1 -n -d
9+
# ~/ceph/build $ MON=1 OSD=1 RGW=1 MDS=0 MGR=0 ../src/mstart.sh c2 -n -d
10+
#
11+
# ~/ceph/build $ ls run
12+
# c1 c2
13+
# ~/ceph/build $ ls run/c1
14+
# asok ceph.conf dev keyring out
15+
#
16+
# ~/ceph/build $ ../src/mrun c1 radosgw-admin user list
17+
# [
18+
# "56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234",
19+
# "testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
20+
# "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
21+
# "testacct1user",
22+
# "test",
23+
# "testacct2root",
24+
# "testacct1root",
25+
# "testid"
26+
# ]
27+
#
28+
# ~/ceph/build $ ../src/mstop.sh c1
29+
# ~/ceph/build $ ../src/mstop.sh c2
30+
331
usage="usage: $0 <name> [vstart options]..\n"
432

533
usage_exit() {

src/mstop.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Stop a named cluster started by mstart.sh
4+
35
set -e
46

57
script_root=`dirname $0`

0 commit comments

Comments
 (0)