1
1
# TODO help should not fail
3
usage: ceph [options] [commands]
4
ceph [options] [command]
5
ceph -s cluster status summary
6
ceph -w running cluster summary and events
4
8
If no commands are specified, enter interactive mode.
6
(osd|pg|mds) stat -- get monitor subsystem status
11
specify input or output file (for certain commands)
13
print current system status
15
watch system status changes in real time (push)
16
--conf/-c Read configuration from the given configuration file
17
-d Run in foreground, log to stderr.
18
-f Run in foreground, log to usual location.
19
--id/-i set ID portion of my name
20
--name/-n set name (TYPE.ID)
21
--version show version and quit
13
ceph -m <mon-ip-or-host> mon_status
15
AUTHENTICATION (AUTH) COMMANDS
16
ceph auth get-or-create[-key] <name> [capsys1 capval1 [...]]
20
METADATA SERVER (MDS) COMMANDS
22
ceph mds tell <mds-id or *> injectargs '--<switch> <value> [--<switch> <value>...]'
24
MONITOR (MON) COMMANDS
25
ceph mon add <name> <ip>[:<port>]
26
ceph mon delete <name>
28
ceph mon tell <mon-id or *> injectargs '--<switch> <value> [--<switch> <value>...]'
30
OBJECT STORAGE DEVICE (OSD) COMMANDS
31
ceph osd dump [--format=json]
33
ceph osd down <osd-id>
36
ceph osd set <noout|noin|nodown|noup>
37
ceph osd unset <noout|noin|nodown|noup>
40
ceph osd tell <osd-id or *> injectargs '--<switch> <value> [--<switch> <value>...]'
41
ceph osd getcrushmap -o <file>
42
ceph osd getmap -o <file>
43
ceph osd crush set <osd-id> <name> <weight> [<loc1> [<loc2> ...]]
44
ceph osd crush move <bucketname> <loc1> [<loc2> ...]
45
ceph osd crush reweight <name> <weight>
46
ceph osd create [<osd-id>]
47
ceph osd rm <osd-id> [<osd-id>...]
48
ceph osd lost [--yes-i-really-mean-it]
49
ceph osd reweight <osd-id> <weight>
50
ceph osd blacklist add <address>[:source_port] [time]
51
ceph osd blacklist rm <address>[:source_port]
52
ceph osd pool mksnap <pool> <snapname>
53
ceph osd pool rmsnap <pool> <snapname>
54
ceph osd pool create <pool> [<pg_num> [<pgp_num>]]
55
ceph osd pool delete <pool>
56
ceph osd pool rename <pool> <new pool name>
57
ceph osd pool set <pool> <field> <value>
58
ceph osd scrub <osd-id>
59
ceph osd repair <osd-id>
60
ceph osd tell N bench [bytes per write] [total bytes]
62
PLACEMENT GROUP (PG) COMMANDS
69
-o <file> Write out to <file>
70
-i <file> Read input from <file> (for some commands)
71
--conf/-c Read configuration from the given configuration file
72
-d Run in foreground, log to stderr.
73
-f Run in foreground, log to usual location.
74
--id/-i set ID portion of my name
75
--name/-n set name (TYPE.ID)
76
--version show version and quit