Skip to content

Commit 4d1491d

Browse files
authored
Merge pull request ceph#60711 from soumyakoduri/wip-skoduri-dbstore
rgw: Update README for DBStore and Posix drivers Reviewed-by: Casey Bodley <[email protected]>
2 parents 3a35aeb + 4e130af commit 4d1491d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/rgw/driver/dbstore/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,21 @@ Add below cmake option (enabled by default)
1515

1616

1717
## Running Test cluster
18-
Edit ceph.conf to add below option
18+
Edit ceph.conf to add below options
1919

2020
[client]
2121
rgw backend store = dbstore
2222
rgw config store = dbstore
2323

24-
Start vstart cluster
24+
To start the `vstart` cluster, run the following cmd:
2525

26-
MON=1 RGW=1 ../src/vstart.sh -o rgw_backend_store=dbstore -o rgw_config_store=dbstore -n -d
26+
MON=0 OSD=0 MDS=0 MGR=0 RGW=1 ../src/vstart.sh -n -d --rgw_store dbstore
2727

28-
The above vstart command brings up RGW server on dbstore. It creates default zonegroup, zone and few default users (eg., testid) to be used for s3 operations.
28+
The above `vstart` command brings up the RGW server on DBStore without the need for MONs or OSDs. It creates a default zonegroup, zone, and few default users (e.g., `testid`) to be used for S3 operations, and generates database files in the `dev` subdirectory, by default, to store them.
2929

30-
`radosgw-admin` can be used to create and remove other users, zonegroups and zones.
31-
32-
33-
By default, dbstore creates .db file *'/var/lib/ceph/radosgw/dbstore-default_ns.db'* to store the data and *'/var/lib/ceph/radosgw/dbstore-config.db'* file to store the configuration. This can be configured using below options in ceph.conf
30+
`radosgw-admin` command can be used to create and remove other users, zonegroups and zones.
3431

32+
The location and prefix for the database files can be configured using the following options:
3533
[client]
3634
dbstore db dir = <path for the directory for storing the db backend store data>
3735
dbstore db name prefix = <prefix to the file names created by db backend store>

src/rgw/driver/posix/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Edit ceph.conf to add below option
2323
rgw config store = dbstore
2424
rgw filter = posix
2525

26-
Start vstart cluster
26+
To start the `vstart` cluster, run the following cmd:
2727

28-
MON=0 OSD=0 MDS=0 MGR=0 RGW=1 ../src/vstart.sh -o rgw_backend_store=dbstore -o rgw_config_store=dbstore -o rgw_filter=posix -n -d
28+
MON=0 OSD=0 MDS=0 MGR=0 RGW=1 ../src/vstart.sh -n -d --rgw_store posix
2929

30-
The above vstart command brings up RGW server on POSIXDriver. It creates default zonegroup, zone and few default users (eg., testid) to be used for s3 operations.
30+
The above vstart command brings up RGW server on POSIXDriver. It creates default zonegroup, zone and few default users (e.g., testid) to be used for s3 operations.
3131

32-
`radosgw-admin` can be used to create and remove other users, zonegroups and zones.
32+
`radosgw-admin` command can be used to create and remove other users, zonegroups and zones.
3333

34-
By default, the directory exported is *'/tmp/rgw_posix_driver'*. This can be changed with the `rgw_posix_base_path` option, either in ceph.conf or on the vstart command line above.
34+
By default, the directory exported, *'rgw_posix_driver'*, is created in the `dev` subdirectory. This can be changed with the `rgw_posix_base_path` option.
3535

36-
The POSIXDriver keeps a LMDB based cache of directories, so that it can provide ordered listings. This directory lives in `rgw_posix_database_root`, which by default is in *'/var/lib/ceph/radosgw'*
36+
The POSIXDriver keeps a LMDB based cache of directories, so that it can provide ordered listings. This directory lives in `rgw_posix_database_root`, which by default is created in the `dev` subdirectory
3737

0 commit comments

Comments
 (0)