summaryrefslogtreecommitdiff
path: root/man/mkcephfs.8
blob: f0ab80d2cccd49e4b1fcc0390416111c8251454e (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
.TH "MKCEPHFS" "8" "September 27, 2012" "dev" "Ceph"
.SH NAME
mkcephfs \- create a ceph file system
.
.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
..
.\" Man page generated from reStructuredText.
.
.SH SYNOPSIS
.nf
\fBmkcephfs\fP \-c \fIceph.conf\fP [ \-\-mkbtrfs ] [ \-a, \-\-all\-hosts [ \-k
\fI/path/to/admin.keyring\fP ] ]
.fi
.sp
.SH DESCRIPTION
.sp
\fBmkcephfs\fP is used to create an empty Ceph file system, possibly
spanning multiple hosts. The ceph.conf file describes the composition
of the entire Ceph cluster, including which hosts are participating,
which daemons run where, and which paths are used to store file system
data or metadata.
.sp
The mkcephfs tool can be used in two ways. If \-a is used, it will use
ssh and scp to connect to remote hosts on your behalf and do the setup
of the entire cluster. This is the easiest solution, but can also be
inconvenient (if you don\(aqt have ssh to connect without prompting for
passwords) or slow (if you have a large cluster).
.sp
Alternatively, you can run each setup phase manually. First, you need
to prepare a monmap that will be shared by each node:
.sp
.nf
.ft C
# prepare
master# mkdir /tmp/foo
master# mkcephfs \-c /etc/ceph/ceph.conf \e
  \-\-prepare\-monmap \-d /tmp/foo
.ft P
.fi
.sp
Share the \fB/tmp/foo\fP directory with other nodes in whatever way is
convenient for you. On each OSD and MDS node:
.sp
.nf
.ft C
osdnode# mkcephfs \-\-init\-local\-daemons osd \-d /tmp/foo
mdsnode# mkcephfs \-\-init\-local\-daemons mds \-d /tmp/foo
.ft P
.fi
.sp
Collect the contents of the /tmp/foo directories back onto a single
node, and then:
.sp
.nf
.ft C
master# mkcephfs \-\-prepare\-mon \-d /tmp/foo
.ft P
.fi
.sp
Finally, distribute \fB/tmp/foo\fP to all monitor nodes and, on each of
those nodes:
.sp
.nf
.ft C
monnode# mkcephfs \-\-init\-local\-daemons mon \-d /tmp/foo
.ft P
.fi
.SH OPTIONS
.INDENT 0.0
.TP
.B \-a, \-\-allhosts
Performs the necessary initialization steps on all hosts in the
cluster, executing commands via SSH.
.UNINDENT
.INDENT 0.0
.TP
.B \-c ceph.conf, \-\-conf=ceph.conf
Use the given conf file instead of the default \fB/etc/ceph/ceph.conf\fP.
.UNINDENT
.INDENT 0.0
.TP
.B \-k /path/to/keyring
When \fB\-a\fP is used, we can specify a location to copy the
client.admin keyring, which is used to administer the cluster. The
default is \fB/etc/ceph/keyring\fP (or whatever is specified in the
config file).
.UNINDENT
.INDENT 0.0
.TP
.B \-\-mkbtrfs
Create and mount the any btrfs file systems specified in the
ceph.conf for OSD data storage using mkfs.btrfs. The "btrfs devs"
and (if it differs from "osd data") "btrfs path" options must be
defined.
.sp
\fBNOTE\fP Btrfs is still considered experimental.  This option
can ease some configuration pain, but is the use of btrfs is not
required when \fBosd data\fP directories are mounted manually by the
adminstrator.
.sp
\fBNOTE\fP This option is deprecated and will be removed in a future
release.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-no\-copy\-conf
By default, mkcephfs with \-a will copy the new configuration to
/etc/ceph/ceph.conf on each node in the cluster.  This option
disables that behavior.
.UNINDENT
.SH SUBCOMMANDS
.sp
The sub\-commands performed during cluster setup can be run individually with
.INDENT 0.0
.TP
.B \-\-prepare\-monmap \-d dir \-c ceph.conf
Create an initial monmap with a random fsid/uuid and store it and
the ceph.conf in dir.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-init\-local\-daemons type \-d dir
Initialize any daemons of type type on the local host using the
monmap in dir.  For types osd and mds, the resulting authentication
keys will be placed in dir.  For type mon, the initial data files
generated by \-\-prepare\-mon (below) are expected in dir.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-prepare\-mon \-d dir
Prepare the initial monitor data based on the monmap, OSD, and MDS
authentication keys collected in dir, and put the result in dir.
.UNINDENT
.SH AVAILABILITY
.sp
\fBmkcephfs\fP is part of the Ceph distributed file system. Please refer
to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
information.
.SH SEE ALSO
.sp
\fBceph\fP(8),
\fBmonmaptool\fP(8),
\fBosdmaptool\fP(8),
\fBcrushtool\fP(8)
.SH COPYRIGHT
2012, Inktank Storage, Inc.
.\" Generated by docutils manpage writer.
.