ceph 命令行手册

 General usage:
 ==============
usage: ceph [-h] [-c CEPHCONF] [-i INPUT_FILE] [-o OUTPUT_FILE]
            [--setuser SETUSER] [--setgroup SETGROUP] [--id CLIENT_ID]
            [--name CLIENT_NAME] [--cluster CLUSTER]
            [--admin-daemon ADMIN_SOCKET] [-s] [-w] [--watch-debug]
            [--watch-info] [--watch-sec] [--watch-warn] [--watch-error]
            [--watch-channel WATCH_CHANNEL] [--version] [--verbose]
            [--concise] [-f {json,json-pretty,xml,xml-pretty,plain}]
            [--connect-timeout CLUSTER_TIMEOUT]

Ceph administration tool

optional arguments:
  -h, --help            request mon help
  -c CEPHCONF, --conf CEPHCONF
                        ceph configuration file
  -i INPUT_FILE, --in-file INPUT_FILE
                        input file, or "-" for stdin
  -o OUTPUT_FILE, --out-file OUTPUT_FILE
                        output file, or "-" for stdout
  --setuser SETUSER     set user file permission
  --setgroup SETGROUP   set group file permission
  --id CLIENT_ID, --user CLIENT_ID
                        client id for authentication
  --name CLIENT_NAME, -n CLIENT_NAME
                        client name for authentication
  --cluster CLUSTER     cluster name
  --admin-daemon ADMIN_SOCKET
                        submit admin-socket commands ("help" for help
  -s, --status          show cluster status
  -w, --watch           watch live cluster changes
  --watch-debug         watch debug events
  --watch-info          watch info events
  --watch-sec           watch security events
  --watch-warn          watch warn events
  --watch-error         watch error events
  --watch-channel WATCH_CHANNEL
                        which log channel to follow when using -w/--watch. One
                        of ['cluster', 'audit', '*'
  --version, -v         display version
  --verbose             make verbose
  --concise             make less verbose
  -f {json,json-pretty,xml,xml-pretty,plain}, --format {json,json-pretty,xml,xml-pretty,plain}
  --connect-timeout CLUSTER_TIMEOUT
                        set a timeout for connecting to the cluster

 Local commands:
 ===============

ping            Send simple presence/life test to a mon
                         may be 'mon.*' for all mons
daemon {type.id|path} 
                        Same as --admin-daemon, but auto-find admin socket
daemonperf {type.id | path} [stat-pats] [priority] [] []
daemonperf {type.id | path} list|ls [stat-pats] [priority]
                        Get selected perf stats from daemon/admin socket
                        Optional shell-glob comma-delim match string stat-pats
                        Optional selection priority (can abbreviate name):
                         critical, interesting, useful, noninteresting, debug
                        List shows a table of all available stats
                        Run  times (default forever),
                         once per  seconds (default 1)


 Monitor commands:
 =================
auth add  { [...]}                                                                                add auth info for  from input file, or random key if no input is given, and/or any caps specified in the
                                                                                                                       command
auth caps   [...]                                                                                 update caps for  from caps specified in the command
auth export {}                                                                                                write keyring for requested entity, or master keyring if none given
auth get                                                                                                      write keyring file with requested key
auth get-key                                                                                                  display requested key
auth get-or-create  { [...]}                                                                      add auth info for  from input file, or random key if no input given, and/or any caps specified in the command
auth get-or-create-key  { [...]}                                                                  get, or add, key for  from system/caps pairs specified in the command.  If key already exists, any given caps
                                                                                                                       must match the existing caps for that key.
auth import                                                                                                           auth import: read keyring file from -i 
auth ls                                                                                                               list authentication state
auth print-key                                                                                                display requested key
auth print_key                                                                                                display requested key
auth rm                                                                                                       remove all caps for 
balancer dump                                                                                                   Show an optimization plan
balancer eval {