CEPH-radosgw-admin命令

radosgw-admin对象网关管理命令如下

commands:
  user create                create a new user
  user modify                modify user
  user info                  get user info
  user rm                    remove user
  user suspend               suspend a user
  user enable                re-enable user after suspension
  user check                 check user info
  user stats                 show user stats as accounted by quota subsystem
  caps add                   add user capabilities
  caps rm                    remove user capabilities
  subuser create             create a new subuser
  subuser modify             modify subuser
  subuser rm                 remove subuser
  key create                 create access key
  key rm                     remove access key
  bucket list                list buckets
  bucket limit check         show bucket sharding stats
  bucket link                link bucket to specified user
  bucket unlink              unlink bucket from specified user
  bucket stats               returns bucket statistics
  bucket rm                  remove bucket
  bucket check               check bucket index
  bucket reshard             reshard bucket
  bi get                     retrieve bucket index object entries
  bi put                     store bucket index object entries
  bi list                    list raw bucket index entries
  object rm                  remove object
  object stat                stat an object for its metadata
  object unlink              unlink object from bucket index
  objects expire             run expired objects cleanup
  period delete              delete a period
  period get                 get period info
  period get-current         get current period info
  period pull                pull a period
  period push                push a period
  period list                list all periods
  period update              update the staging period
  period commit              commit the staging period
  quota set                  set quota params
  quota enable               enable quota
  quota disable              disable quota
  realm create               create a new realm
  realm delete               delete a realm
  realm get                  show realm info
  realm get-default          get default realm name
  realm list                 list realms
  realm list-periods         list all realm periods
  realm remove               remove a zonegroup from the realm
  realm rename               rename a realm
  realm set                  set realm info (requires infile)
  realm default              set realm as default
  realm pull                 pull a realm and its current period
  zonegroup add              add a zone to a zonegroup
  zonegroup create           create a new zone group info
  zonegroup default          set default zone group
  zonegroup delete           delete a zone group info
  zonegroup get              show zone group info
  zonegroup modify           modify an existing zonegroup
  zonegroup set              set zone group info (requires infile)
  zonegroup remove           remove a zone from a zonegroup
  zonegroup rename           rename a zone group
  zonegroup list             list all zone groups set on this cluster
  zonegroup placement list   list zonegroup's placement targets
  zonegroup placement add    add a placement target id to a zonegroup
  zonegroup placement modify modify a placement target of a specific zonegroup
  zonegroup placement rm     remove a placement target from a zonegroup
  zonegroup placement default  set a zonegroup's default placement target
  zone create                create a new zone
  zone delete                delete a zone
  zone get                   show zone cluster params
  zone modify                modify an existing zone
  zone set                   set zone cluster params (requires infile)
  zone list                  list all zones set on this cluster
  zone rename                rename a zone
  zone placement list        list zone's placement targets
  zone placement add         add a zone placement target
  zone placement modify      modify a zone placement target
  zone placement rm          remove a zone placement target
  pool add                   add an existing pool for data placement
  pool rm                    remove an existing pool from data placement set
  pools list                 list placement active set
  policy                     read bucket/object policy
  log list                   list log objects
  log show                   dump a log from specific object or (bucket + date
                             + bucket-id)
                             (NOTE: required to specify formatting of date
                             to "YYYY-MM-DD-hh")
  log rm                     remove log object
  usage show                 show usage (by user, date range)
  usage trim                 trim usage (by user, date range)
  gc list                    dump expired garbage collection objects (specify
                             --include-all to list all entries, including unexpired)
  gc process                 manually process garbage
  metadata get               get metadata info
  metadata put               put metadata info
  metadata rm                remove metadata info
  metadata list              list metadata info
  mdlog list                 list metadata log
  mdlog trim                 trim metadata log (use start-date, end-date or
                             start-marker, end-marker)
  mdlog status               read metadata log status
  bilog list                 list bucket index log
  bilog trim                 trim bucket index log (use start-marker, end-marker)
  datalog list               list data log
  datalog trim               trim data log
  datalog status             read data log status
  opstate list               list stateful operations entries (use client_id,
                             op_id, object)
  opstate set                set state on an entry (use client_id, op_id, object, state)
  opstate renew              renew state on an entry (use client_id, op_id, object)
  opstate rm                 remove entry (use client_id, op_id, object)
  replicalog get             get replica metadata log entry
  replicalog update          update replica metadata log entry
  replicalog delete          delete replica metadata log entry
  orphans find               init and run search for leaked rados objects (use job-id, pool)
  orphans finish             clean up search for leaked rados objects
options:
   --tenant=<tenant>         tenant name
   --uid=<id>                user id
   --subuser=<name>          subuser name
   --access-key=<key>        S3 access key
   --email=<email>
   --secret/--secret-key=<key>
                             specify secret key
   --gen-access-key          generate random access key (for S3)
   --gen-secret              generate random secret key
   --key-type=<type>         key type, options are: swift, s3
   --temp-url-key[-2]=<key>  temp url key
   --access=<access>         Set access permissions for sub-user, should be one
                             of read, write, readwrite, full
   --display-name=<name>
   --max_buckets             max number of buckets for a user
   --system                  set the system flag on the user
   --bucket=<bucket>
   --pool=<pool>
   --object=<object>
   --date=<date>
   --start-date=<date>
   --end-date=<date>
   --bucket-id=<bucket-id>
   --shard-id=<shard-id>     optional for mdlog list
                             required for: 
                               mdlog trim
                               replica mdlog get/delete
                               replica datalog get/delete
   --metadata-key=<key>      key to retrieve metadata from with metadata get
   --remote=<remote>         zone or zonegroup id of remote gateway
   --period=<id>             period id
   --epoch=<number>          period epoch
   --commit                  commit the period during 'period update'
   --master                  set as master
   --master-url              master url
   --master-zonegroup=<id>   master zonegroup id
   --master-zone=<id>        master zone id
   --rgw-realm=<realm>       realm name
   --realm-id=<realm id>     realm id
   --realm-new-name=<realm new name> realm new name
   --rgw-zonegroup=<zonegroup>   zonegroup name
   --zonegroup-id=<zonegroup id> zonegroup id
   --rgw-zone=<zone>         name of zone in which radosgw is running
   --zone-id=<zone id>       zone id
   --zone-new-name=<zone>    zone new name
   --source-zone             specify the source zone (for data sync)
   --default                 set entity (realm, zonegroup, zone) as default
   --read-only               set zone as read-only (when adding to zonegroup)
   --placement-id            placement id for zonegroup placement commands
   --tags=<list>             list of tags for zonegroup placement add and modify commands
   --tags-add=<list>         list of tags to add for zonegroup placement modify command
   --tags-rm=<list>          list of tags to remove for zonegroup placement modify command
   --endpoints=<list>        zone endpoints
   --index_pool=<pool>       placement target index pool
   --data_pool=<pool>        placement target data pool
   --data_extra_pool=<pool>  placement target data extra (non-ec) pool
   --placement-index-type=<type>
                             placement target index type (normal, indexless, or #id)
   --fix                     besides checking bucket index, will also fix it
   --check-objects           bucket check: rebuilds bucket index according to
                             actual objects state
   --format=<format>         specify output format for certain operations: xml,
                             json
   --purge-data              when specified, user removal will also purge all the
                             user data
   --purge-keys              when specified, subuser removal will also purge all the
                             subuser keys
   --purge-objects           remove a bucket's objects before deleting it
                             (NOTE: required to delete a non-empty bucket)
   --sync-stats              option to 'user stats', update user stats with current
                             stats reported by user's buckets indexes
   --show-log-entries=<flag> enable/disable dump of log entries on log show
   --show-log-sum=<flag>     enable/disable dump of log summation on log show
   --skip-zero-entries       log show only dumps entries that don't have zero value
                             in one of the numeric field
   --infile=<file>           specify a file to read in when setting data
   --state=<state string>    specify a state for the opstate set command
   --replica-log-type        replica log type (metadata, data, bucket), required for
                             replica log operations
   --categories=<list>       comma separated list of categories, used in usage show
   --caps=<caps>             list of caps (e.g., "usage=read, write; user=read"
   --yes-i-really-mean-it    required for certain operations
   --warnings-only           when specified with bucket limit check, list
                             only buckets nearing or over the current max
                             objects per shard value
   --bypass-gc               when specified with bucket deletion, triggers
                             object deletions by not involving GC
   --inconsistent-index      when specified with bucket deletion and bypass-gc set to true,
                             ignores bucket index consistency

<date> := "YYYY-MM-DD[ hh:mm:ss]"

Quota options:
   --bucket                  specified bucket for quota command
   --max-objects             specify max objects (negative value to disable)
   --max-size                specify max size (in B/K/M/G/T, negative value to disable)
   --quota-scope             scope of quota (bucket, user)

Orphans search options:
   --pool                    data pool to scan for leaked rados objects in
   --num-shards              num of shards to use for keeping the temporary scan info
   --orphan-stale-secs       num of seconds to wait before declaring an object to be an orphan (default: 86400)
   --job-id                  set the job id (for orphans find)
   --max-concurrent-ios      maximum concurrent ios for orphans find (default: 32)

  --conf/-c FILE    read configuration from the given configuration file
  --id/-i ID        set ID portion of my name
  --name/-n TYPE.ID set name
  --cluster NAME    set cluster name (default: ceph)
  --setuser USER    set uid to user or uid (and gid to user's gid)
  --setgroup GROUP  set gid to group or gid
  --version         show version and quit

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 213,711评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 91,079评论 3 387
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 159,194评论 0 349
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,089评论 1 286
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,197评论 6 385
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,306评论 1 292
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,338评论 3 412
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,119评论 0 269
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,541评论 1 306
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,846评论 2 328
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,014评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,694评论 4 337
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,322评论 3 318
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,026评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,257评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,863评论 2 365
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,895评论 2 351

推荐阅读更多精彩内容