2013-12-07 21:07:38 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2015-01-22 18:23:50 +00:00
|
|
|
.TH "RADOSGW-ADMIN" "8" "January 22, 2015" "dev" "Ceph"
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH NAME
|
2011-10-03 18:25:44 +00:00
|
|
|
radosgw-admin \- rados REST gateway user administration utility
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
|
|
|
.
|
2013-12-07 21:07:38 +00:00
|
|
|
.nr rst2man-indent-level 0
|
|
|
|
.
|
|
|
|
.de1 rstReportMargin
|
|
|
|
\\$1 \\n[an-margin]
|
|
|
|
level \\n[rst2man-indent-level]
|
|
|
|
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
-
|
|
|
|
\\n[rst2man-indent0]
|
|
|
|
\\n[rst2man-indent1]
|
|
|
|
\\n[rst2man-indent2]
|
|
|
|
..
|
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
|
|
|
..
|
|
|
|
.de UNINDENT
|
|
|
|
. RE
|
|
|
|
.\" indent \\n[an-margin]
|
|
|
|
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.nr rst2man-indent-level -1
|
|
|
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
|
|
..
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
2013-12-07 21:07:38 +00:00
|
|
|
\fBradosgw\-admin\fP \fIcommand\fP [ \fIoptions\fP \fI\&...\fP ]
|
2011-09-09 23:25:14 +00:00
|
|
|
.fi
|
|
|
|
.sp
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2012-02-17 22:11:18 +00:00
|
|
|
\fBradosgw\-admin\fP is a RADOS gateway user administration utility. It
|
2011-09-09 23:25:14 +00:00
|
|
|
allows creating and modifying users.
|
2011-04-18 00:40:46 +00:00
|
|
|
.SH COMMANDS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2015-01-22 18:23:50 +00:00
|
|
|
\fBradosgw\-admin\fP utility uses many commands for administration purpose
|
|
|
|
which are as follows:
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBuser create\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Create a new user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBuser modify\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Modify a user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBuser info\fP
|
2012-09-27 21:23:42 +00:00
|
|
|
Display information of a user, and any potentially available
|
2015-01-22 18:23:50 +00:00
|
|
|
subusers and keys.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBuser rm\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove a user.
|
|
|
|
.TP
|
|
|
|
.B \fBuser suspend\fP
|
|
|
|
Suspend a user.
|
|
|
|
.TP
|
|
|
|
.B \fBuser enable\fP
|
|
|
|
Re\-enable user after suspension.
|
|
|
|
.TP
|
|
|
|
.B \fBuser check\fP
|
|
|
|
Check user info.
|
|
|
|
.TP
|
|
|
|
.B \fBuser stats\fP
|
|
|
|
Show user stats as accounted by quota subsystem.
|
|
|
|
.TP
|
|
|
|
.B \fBcaps add\fP
|
|
|
|
Add user capabilities.
|
|
|
|
.TP
|
|
|
|
.B \fBcaps rm\fP
|
|
|
|
Remove user capabilities.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \fBsubuser create\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Create a new subuser (primarily useful for clients using the Swift API).
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBsubuser modify\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Modify a subuser.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBsubuser rm\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove a subuser.
|
|
|
|
.TP
|
|
|
|
.B \fBkey create\fP
|
|
|
|
Create access key.
|
|
|
|
.TP
|
|
|
|
.B \fBkey rm\fP
|
|
|
|
Remove access key.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBbucket list\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
List all buckets.
|
|
|
|
.TP
|
|
|
|
.B \fBbucket link\fP
|
|
|
|
Link bucket to specified user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBbucket unlink\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Unlink bucket from specified user.
|
|
|
|
.TP
|
|
|
|
.B \fBbucket stats\fP
|
|
|
|
Returns bucket statistics.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
2012-10-16 01:18:18 +00:00
|
|
|
.B \fBbucket rm\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove a bucket.
|
|
|
|
.TP
|
|
|
|
.B \fBbucket check\fP
|
|
|
|
Check bucket index.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2012-10-16 01:18:18 +00:00
|
|
|
.B \fBobject rm\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove an object.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2015-01-22 18:23:50 +00:00
|
|
|
.B \fBobject unlink\fP
|
|
|
|
Unlink object from bucket index.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2015-01-22 18:23:50 +00:00
|
|
|
.B \fBquota set\fP
|
|
|
|
Set quota params.
|
|
|
|
.TP
|
|
|
|
.B \fBquota enable\fP
|
|
|
|
Enable quota.
|
|
|
|
.TP
|
|
|
|
.B \fBquota disable\fP
|
|
|
|
Disable quota.
|
|
|
|
.TP
|
|
|
|
.B \fBregion get\fP
|
|
|
|
Show region info.
|
|
|
|
.TP
|
|
|
|
.B \fBregions list\fP
|
|
|
|
List all regions set on this cluster.
|
|
|
|
.TP
|
|
|
|
.B \fBregion set\fP
|
|
|
|
Set region info (requires infile).
|
|
|
|
.TP
|
|
|
|
.B \fBregion default\fP
|
|
|
|
Set default region.
|
|
|
|
.TP
|
|
|
|
.B \fBregion\-map get\fP
|
|
|
|
Show region\-map.
|
|
|
|
.TP
|
|
|
|
.B \fBregion\-map set\fP
|
|
|
|
Set region\-map (requires infile).
|
|
|
|
.TP
|
|
|
|
.B \fBzone get\fP
|
|
|
|
Show zone cluster params.
|
|
|
|
.TP
|
|
|
|
.B \fBzone set\fP
|
|
|
|
Set zone cluster params (requires infile).
|
|
|
|
.TP
|
|
|
|
.B \fBzone list\fP
|
|
|
|
List all zones set on this cluster.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2012-10-16 01:18:18 +00:00
|
|
|
.B \fBpool add\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Add an existing pool for data placement.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBpool rm\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove an existing pool from data placement set.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBpools list\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
List placement active set.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \fBpolicy\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Display bucket/object policy.
|
|
|
|
.TP
|
|
|
|
.B \fBlog list\fP
|
|
|
|
List log objects.
|
2011-09-09 23:25:14 +00:00
|
|
|
.TP
|
|
|
|
.B \fBlog show\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Dump a log from specific object or (bucket + date + bucket\-id).
|
|
|
|
.TP
|
|
|
|
.B \fBlog rm\fP
|
|
|
|
Remove log object.
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBusage show\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Show the usage information (with optional user and date range).
|
2012-09-27 21:23:42 +00:00
|
|
|
.TP
|
|
|
|
.B \fBusage trim\fP
|
2015-01-22 18:23:50 +00:00
|
|
|
Trim usage information (with optional user and date range).
|
|
|
|
.TP
|
|
|
|
.B \fBtemp remove\fP
|
|
|
|
Remove temporary objects that were created up to specified date
|
|
|
|
(and optional time).
|
|
|
|
.TP
|
|
|
|
.B \fBgc list\fP
|
|
|
|
Dump expired garbage collection objects (specify \-\-include\-all to list all
|
|
|
|
entries, including unexpired).
|
|
|
|
.TP
|
|
|
|
.B \fBgc process\fP
|
|
|
|
Manually process garbage.
|
|
|
|
.TP
|
|
|
|
.B \fBmetadata get\fP
|
|
|
|
Get metadata info.
|
|
|
|
.TP
|
|
|
|
.B \fBmetadata put\fP
|
|
|
|
Put metadata info.
|
|
|
|
.TP
|
|
|
|
.B \fBmetadata rm\fP
|
|
|
|
Remove metadata info.
|
|
|
|
.TP
|
|
|
|
.B \fBmetadata list\fP
|
|
|
|
List metadata info.
|
|
|
|
.TP
|
|
|
|
.B \fBmdlog list\fP
|
|
|
|
List metadata log.
|
|
|
|
.TP
|
|
|
|
.B \fBmdlog trim\fP
|
|
|
|
Trim metadata log.
|
|
|
|
.TP
|
|
|
|
.B \fBbilog list\fP
|
|
|
|
List bucket index log.
|
|
|
|
.TP
|
|
|
|
.B \fBbilog trim\fP
|
|
|
|
Trim bucket index log (use start\-marker, end\-marker).
|
|
|
|
.TP
|
|
|
|
.B \fBdatalog list\fP
|
|
|
|
List data log.
|
|
|
|
.TP
|
|
|
|
.B \fBdatalog trim\fP
|
|
|
|
Trim data log.
|
|
|
|
.TP
|
|
|
|
.B \fBopstate list\fP
|
|
|
|
List stateful operations entries (use client_id, op_id, object).
|
|
|
|
.TP
|
|
|
|
.B \fBopstate set\fP
|
|
|
|
Set state on an entry (use client_id, op_id, object, state).
|
|
|
|
.TP
|
|
|
|
.B \fBopstate renew\fP
|
|
|
|
Renew state on an entry (use client_id, op_id, object).
|
|
|
|
.TP
|
|
|
|
.B \fBopstate rm\fP
|
|
|
|
Remove entry (use client_id, op_id, object).
|
|
|
|
.TP
|
|
|
|
.B \fBreplicalog get\fP
|
|
|
|
Get replica metadata log entry.
|
|
|
|
.TP
|
|
|
|
.B \fBreplicalog delete\fP
|
|
|
|
Delete replica metadata log entry.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-c ceph.conf, \-\-conf=ceph.conf
|
2015-01-22 18:23:50 +00:00
|
|
|
Use \fBceph.conf\fP configuration file instead of the default
|
2011-09-09 23:25:14 +00:00
|
|
|
\fB/etc/ceph/ceph.conf\fP to determine monitor addresses during
|
|
|
|
startup.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-m monaddress[:port]
|
|
|
|
Connect to specified monitor (instead of looking through ceph.conf).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-uid=uid
|
2012-09-27 21:23:42 +00:00
|
|
|
The radosgw user ID.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2015-01-22 18:23:50 +00:00
|
|
|
.B \-\-subuser=<name>
|
|
|
|
Name of the subuser.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-email=email
|
|
|
|
The e\-mail address of the user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-display\-name=name
|
2009-10-28 18:51:46 +00:00
|
|
|
Configure the display name of the user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2015-01-22 18:23:50 +00:00
|
|
|
.B \-\-access\-key=<key>
|
|
|
|
S3 access key.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-gen\-access\-key
|
|
|
|
Generate random access key (for S3).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-secret=secret
|
|
|
|
The secret associated with a given key.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-gen\-secret
|
|
|
|
Generate random secret key.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-key\-type=<type>
|
|
|
|
key type, options are: swift, S3.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-temp\-url\-key[\-2]=<key>
|
|
|
|
Temporary url key.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-system
|
|
|
|
Set the system flag on the user.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-bucket=bucket
|
2009-10-28 18:51:46 +00:00
|
|
|
Specify the bucket name.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-10-28 18:51:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-object=object
|
2009-10-28 18:51:46 +00:00
|
|
|
Specify the object name.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-date=yyyy\-mm\-dd
|
2015-01-22 18:23:50 +00:00
|
|
|
The date needed for some commands.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \-\-start\-date=yyyy\-mm\-dd
|
2015-01-22 18:23:50 +00:00
|
|
|
The start date needed for some commands.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2012-09-27 21:23:42 +00:00
|
|
|
.B \-\-end\-date=yyyy\-mm\-dd
|
2015-01-22 18:23:50 +00:00
|
|
|
The end date needed for some commands.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-shard\-id=<shard\-id>
|
|
|
|
Optional for mdlog list. Required for \fBmdlog trim\fP,
|
|
|
|
\fBreplica mdlog get/delete\fP, \fBreplica datalog get/delete\fP\&.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-04-18 00:40:46 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-auth\-uid=auid
|
2015-01-22 18:23:50 +00:00
|
|
|
The librados auid.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-purge\-data
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove user data before user removal.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-purge\-keys
|
|
|
|
When specified, subuser removal will also purge all the subuser keys.
|
2012-09-27 21:23:42 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-purge\-objects
|
2015-01-22 18:23:50 +00:00
|
|
|
Remove all objects before bucket removal.
|
2012-09-27 21:23:42 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-lazy\-remove
|
2015-01-22 18:23:50 +00:00
|
|
|
Defer removal of object tail.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-metadata\-key=<key>
|
|
|
|
Key to retrieve metadata from with \fBmetadata get\fP\&.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-rgw\-region=<region>
|
|
|
|
Region in which radosgw is running.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-rgw\-zone=<zone>
|
|
|
|
Zone in which radosgw is running.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-fix
|
|
|
|
Besides checking bucket index, will also fix it.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-check\-objects
|
|
|
|
bucket check: Rebuilds bucket index according to actual objects state.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-format=<format>
|
|
|
|
Specify output format for certain operations: xml, json.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-sync\-stats
|
|
|
|
Option to \(aquser stats\(aq, update user stats with current stats reported by
|
|
|
|
user\(aqs buckets indexes.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-show\-log\-entries=<flag>
|
|
|
|
Enable/disable dump of log entries on log show.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-show\-log\-sum=<flag>
|
|
|
|
Enable/disable dump of log summation on log show.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-skip\-zero\-entries
|
|
|
|
Log show only dumps entries that don\(aqt have zero value in one of the numeric
|
|
|
|
field.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-infile
|
|
|
|
Specify a file to read in when setting data.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-state=<state string>
|
|
|
|
Specify a state for the opstate set command.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-replica\-log\-type
|
|
|
|
Replica log type (metadata, data, bucket), required for replica log
|
|
|
|
operations.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-categories=<list>
|
|
|
|
Comma separated list of categories, used in usage show.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-caps=<caps>
|
|
|
|
List of caps (e.g., "usage=read, write; user=read".
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-yes\-i\-really\-mean\-it
|
|
|
|
Required for certain operations.
|
|
|
|
.UNINDENT
|
|
|
|
.SH QUOTA OPTIONS
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-bucket
|
|
|
|
Specified bucket for quota command.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-max\-objects
|
|
|
|
Specify max objects (negative value to disable).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-max\-size
|
|
|
|
Specify max size (in bytes, negative value to disable).
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
|
|
|
.B \-\-quota\-scope
|
|
|
|
Scope of quota (bucket, user).
|
2012-09-27 21:23:42 +00:00
|
|
|
.UNINDENT
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH EXAMPLES
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Generate a new user:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +00:00
|
|
|
$ radosgw\-admin user create \-\-display\-name="johnny rotten" \-\-uid=johnny
|
|
|
|
{ "user_id": "johnny",
|
|
|
|
"rados_uid": 0,
|
|
|
|
"display_name": "johnny rotten",
|
|
|
|
"email": "",
|
|
|
|
"suspended": 0,
|
|
|
|
"subusers": [],
|
|
|
|
"keys": [
|
|
|
|
{ "user": "johnny",
|
|
|
|
"access_key": "TCICW53D9BQ2VGC46I44",
|
|
|
|
"secret_key": "tfm9aHMI8X76L3UdgE+ZQaJag1vJQmE6HDb5Lbrz"}],
|
|
|
|
"swift_keys": []}
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Remove a user:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +00:00
|
|
|
$ radosgw\-admin user rm \-\-uid=johnny
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
Remove a user and all associated buckets with their contents:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin user rm \-\-uid=johnny \-\-purge\-data
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Remove a bucket:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-02-17 22:11:18 +00:00
|
|
|
$ radosgw\-admin bucket unlink \-\-bucket=foo
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2012-09-27 21:23:42 +00:00
|
|
|
Show the logs of a bucket from April 1st, 2012:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin log show \-\-bucket=foo \-\-date=2012=04\-01
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
Show usage information for user from March 1st to (but not including) April 1st, 2012:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin usage show \-\-uid=johnny \e
|
|
|
|
\-\-start\-date=2012\-03\-01 \-\-end\-date=2012\-04\-01
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
Show only summary of usage information for all users:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
|
|
|
$ radosgw\-admin usage show \-\-show\-log\-entries=false
|
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2012-09-27 21:23:42 +00:00
|
|
|
.sp
|
|
|
|
Trim usage information for user until March 1st, 2012:
|
2013-12-07 21:07:38 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.INDENT 3.5
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ft C
|
2012-09-27 21:23:42 +00:00
|
|
|
$ radosgw\-admin usage trim \-\-uid=johnny \-\-end\-date=2012\-04\-01
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft P
|
|
|
|
.fi
|
2013-12-07 21:07:38 +00:00
|
|
|
.UNINDENT
|
|
|
|
.UNINDENT
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
2015-01-22 14:53:46 +00:00
|
|
|
\fBradosgw\-admin\fP is part of Ceph, a massively scalable, open-source, distributed storage system. Please
|
2012-09-27 21:23:42 +00:00
|
|
|
refer to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
|
2011-09-09 23:25:14 +00:00
|
|
|
information.
|
2009-10-28 18:51:46 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP(8)
|
2015-01-22 18:23:50 +00:00
|
|
|
\fBradosgw\fP(8)
|
2011-09-09 23:25:14 +00:00
|
|
|
.SH COPYRIGHT
|
2014-01-12 16:48:00 +00:00
|
|
|
2010-2014, Inktank Storage, Inc. and contributors. Licensed under Creative Commons BY-SA
|
2011-09-09 23:25:14 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|