summaryrefslogtreecommitdiff
path: root/man/rados.8
blob: 29b55c6869c24750878ca8fe5a89bdeab1bc68a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.TH RADOS 8
.SH NAME
rados \- rados object storage utility
.SH SYNOPSIS
.B rados
[ \fB\-m\fI monaddr\fR ]
[ mkpool  | rmpool \fI foo]
[ \fB\-p\fP | \fB\-\-pool\fI pool\fR ]
[ \fB\-s\fP | \fB\-\-snap\fI snap\fR ]
[ \fB\-i\fI infile\fR ]
[ \fB\-o\fI outfile\fR ]
\fIcommand ...\fR

.SH DESCRIPTION
.B rados
is a utility for interacting with a Ceph object storage cluster (RADOS), part of the
Ceph distributed file system.
.SH OPTIONS
.TP
\fB\-p\fI pool\fR, \fB\-\-pool \fIpool\fR
Interact with the given \fIpool\fP.  Required by most commands.
.TP
\fB\-s\fI snap\fR, \fB\-\-snap \fIsnap\fR
Read from the given pool snapshot.  Valid for all pool-specific read operations.
.TP
\fB\-i \fIinfile\fP
will specify an input file to be passed along as a payload with the \fIcommand\fP to the
monitor cluster.  This is only used for specific monitor commands.
.TP
\fB\-o \fIoutfile\fP
will write any payload returned by the monitor cluster with its reply to \fIoutfile\fP.
Only specific monitor commands (e.g. \fIosd getmap\fP) return a payload.
.TP
\fB\-c\fI ceph.conf\fR, \fB\-\-conf=\fIceph.conf\fR
Use \fIceph.conf\fP configuration file instead of the default \fI/etc/ceph/ceph.conf\fP
to determine monitor addresses during startup.
.TP
\fB\-m\fI monaddress[:port]\fR
Connect to specified monitor (instead of looking through \fIceph.conf\fR).
.SH GLOBAL COMMANDS
.TP
\fBlspools\fI
List object pools
.TP
\fBdf\fI
Show utilization statistics, including disk usage (bytes) and object counts, over the entire system
and broken down by pool.
.TP
\fBmkpool\fI foo
Create a pool with name foo.
.TP
\fBrmpool\fI foo
Delete the pool foo (and all its data)
.SH POOL SPECIFIC COMMANDS
.TP
\fBget \fIname\fP \fIoutfile\fP
Read object \fIname\fP from the cluster and write it to \fIoutfile\fP.
.TP
\fBput \fIname\fP \fIinfile\fP
Write object \fIname\fP to the cluster with contents from \fIinfile\fP.
.TP
\fBrm \fIname\fP
Remove object \fIname\fP.
.TP
\fBls \fIoutfile\fP
List objects in given pool and write to \fIoutfile\fP.
.TP
\fBlssnap\fP
List snapshots for given pool.
.TP
\fBmksnap \fIfoo\fP
Create pool snapshot named \fIfoo\fP.
.TP
\fBrmsnap \fIfoo\fP
Remove pool snapshot names \fIfoo\fP.
.TP
\fBbench \fIseconds\fP \fImode\fP [ \fB-b \fIobjsize\fP ] [ \fB-t threads\fP ]
Benchmark for \fIseconds\fP.  The \fImode\fP can be write or read.  The default object size is 4 KB, and the
default number of simulated threads (parallel writes) is 16.
.SH EXAMPLES
To view cluster utilization:
.IP
rados df
.PP
To get a list object in pool \fIfoo\FP sent to stdout:
.IP
rados -p foo ls -
.PP
To write an object:
.IP
rados -p foo put myobject blah.txt
.PP
To create a snapshot:
.IP
rados -p foo mksnap mysnap
.PP
To delete the object:
.IP
rados -p foo rm myobject
.PP
To read a previously snapshotted version of an object:
.IP
rados -p foo -s mysnap get myobject blah.txt.old
.PP
.SH AVAILABILITY
.B rados
is part of the Ceph distributed file system.  Please refer to the Ceph wiki at
http://ceph.newdream.net/wiki for more information.
.SH SEE ALSO
.BR ceph (8)