2012-09-27 21:23:42 +00:00
|
|
|
.TH "MKCEPHFS" "8" "September 27, 2012" "dev" "Ceph"
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH NAME
|
2009-09-02 17:29:42 +00:00
|
|
|
mkcephfs \- create a ceph file system
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
|
|
|
.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
|
|
|
|
..
|
2012-09-27 21:23:42 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
2011-09-09 23:25:14 +00:00
|
|
|
.
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH SYNOPSIS
|
2011-09-09 23:25:14 +00:00
|
|
|
.nf
|
2012-09-27 21:23:42 +00:00
|
|
|
\fBmkcephfs\fP \-c \fIceph.conf\fP [ \-\-mkbtrfs ] [ \-a, \-\-all\-hosts [ \-k
|
2011-09-09 23:25:14 +00:00
|
|
|
\fI/path/to/admin.keyring\fP ] ]
|
|
|
|
.fi
|
|
|
|
.sp
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH DESCRIPTION
|
2011-09-09 23:25:14 +00:00
|
|
|
.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,
|
2011-05-06 21:21:53 +00:00
|
|
|
which daemons run where, and which paths are used to store file system
|
|
|
|
data or metadata.
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2011-05-06 21:21:53 +00:00
|
|
|
passwords) or slow (if you have a large cluster).
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Alternatively, you can run each setup phase manually. First, you need
|
|
|
|
to prepare a monmap that will be shared by each node:
|
|
|
|
.sp
|
2011-05-06 21:21:53 +00:00
|
|
|
.nf
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft C
|
2011-05-06 21:21:53 +00:00
|
|
|
# prepare
|
|
|
|
master# mkdir /tmp/foo
|
2011-09-09 23:25:14 +00:00
|
|
|
master# mkcephfs \-c /etc/ceph/ceph.conf \e
|
|
|
|
\-\-prepare\-monmap \-d /tmp/foo
|
|
|
|
.ft P
|
2011-05-06 21:21:53 +00:00
|
|
|
.fi
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2011-05-06 21:21:53 +00:00
|
|
|
.nf
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft C
|
|
|
|
osdnode# mkcephfs \-\-init\-local\-daemons osd \-d /tmp/foo
|
|
|
|
mdsnode# mkcephfs \-\-init\-local\-daemons mds \-d /tmp/foo
|
|
|
|
.ft P
|
2011-05-06 21:21:53 +00:00
|
|
|
.fi
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Collect the contents of the /tmp/foo directories back onto a single
|
|
|
|
node, and then:
|
|
|
|
.sp
|
2011-05-06 21:21:53 +00:00
|
|
|
.nf
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft C
|
|
|
|
master# mkcephfs \-\-prepare\-mon \-d /tmp/foo
|
|
|
|
.ft P
|
2011-05-06 21:21:53 +00:00
|
|
|
.fi
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
Finally, distribute \fB/tmp/foo\fP to all monitor nodes and, on each of
|
|
|
|
those nodes:
|
|
|
|
.sp
|
2011-05-06 21:21:53 +00:00
|
|
|
.nf
|
2011-09-09 23:25:14 +00:00
|
|
|
.ft C
|
|
|
|
monnode# mkcephfs \-\-init\-local\-daemons mon \-d /tmp/foo
|
|
|
|
.ft P
|
2011-05-06 21:21:53 +00:00
|
|
|
.fi
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH OPTIONS
|
2011-09-09 23:25:14 +00:00
|
|
|
.INDENT 0.0
|
2009-03-10 21:39:54 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-a, \-\-allhosts
|
|
|
|
Performs the necessary initialization steps on all hosts in the
|
|
|
|
cluster, executing commands via SSH.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-03-10 21:39:54 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2009-03-10 21:39:54 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2011-05-06 21:31:57 +00:00
|
|
|
config file).
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2009-03-10 21:39:54 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-mkbtrfs
|
2009-03-10 21:39:54 +00:00
|
|
|
Create and mount the any btrfs file systems specified in the
|
2011-09-09 23:25:14 +00:00
|
|
|
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.
|
2012-04-11 23:00:14 +00:00
|
|
|
.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.
|
2011-09-09 23:25:14 +00:00
|
|
|
.UNINDENT
|
2011-10-17 17:49:46 +00:00
|
|
|
.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
|
2011-05-06 21:21:53 +00:00
|
|
|
.SH SUBCOMMANDS
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
The sub\-commands performed during cluster setup can be run individually with
|
|
|
|
.INDENT 0.0
|
2011-05-06 21:21:53 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-prepare\-monmap \-d dir \-c ceph.conf
|
2011-05-06 21:31:57 +00:00
|
|
|
Create an initial monmap with a random fsid/uuid and store it and
|
2011-09-09 23:25:14 +00:00
|
|
|
the ceph.conf in dir.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2011-05-06 21:21:53 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.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
|
2011-05-06 21:21:53 +00:00
|
|
|
.TP
|
2011-09-09 23:25:14 +00:00
|
|
|
.B \-\-prepare\-mon \-d dir
|
2011-05-06 21:21:53 +00:00
|
|
|
Prepare the initial monitor data based on the monmap, OSD, and MDS
|
2011-09-09 23:25:14 +00:00
|
|
|
authentication keys collected in dir, and put the result in dir.
|
|
|
|
.UNINDENT
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH AVAILABILITY
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBmkcephfs\fP is part of the Ceph distributed file system. Please refer
|
2012-09-27 21:23:42 +00:00
|
|
|
to the Ceph documentation at \fI\%http://ceph.com/docs\fP for more
|
2011-09-09 23:25:14 +00:00
|
|
|
information.
|
2009-03-10 21:39:54 +00:00
|
|
|
.SH SEE ALSO
|
2011-09-09 23:25:14 +00:00
|
|
|
.sp
|
|
|
|
\fBceph\fP(8),
|
|
|
|
\fBmonmaptool\fP(8),
|
|
|
|
\fBosdmaptool\fP(8),
|
|
|
|
\fBcrushtool\fP(8)
|
|
|
|
.SH COPYRIGHT
|
2012-09-27 21:23:42 +00:00
|
|
|
2012, Inktank Storage, Inc.
|
2011-09-09 23:25:14 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|