2013-07-04 12:08:41 +00:00
|
|
|
=================================
|
|
|
|
Deploying a development cluster
|
|
|
|
=================================
|
|
|
|
|
|
|
|
In order to develop on ceph, a Ceph utility,
|
|
|
|
*vstart.sh*, allows you to deploy fake local cluster for development purpose.
|
|
|
|
|
|
|
|
Usage
|
|
|
|
=====
|
|
|
|
|
2015-06-18 14:05:43 +00:00
|
|
|
It allows to deploy a fake local cluster on your machine for development purpose. It starts rgw, mon, osd and/or mds, or all of them if not specified.
|
2013-07-04 12:08:41 +00:00
|
|
|
|
|
|
|
To start your development cluster, type the following::
|
|
|
|
|
2017-03-22 15:33:30 +00:00
|
|
|
vstart.sh [OPTIONS]...
|
2013-07-04 12:08:41 +00:00
|
|
|
|
|
|
|
In order to stop the cluster, you can type::
|
|
|
|
|
|
|
|
./stop.sh
|
|
|
|
|
|
|
|
Options
|
|
|
|
=======
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -b, --bluestore
|
|
|
|
|
|
|
|
Use bluestore as the objectstore backend for osds.
|
|
|
|
|
|
|
|
.. option:: --cache <pool>
|
|
|
|
|
|
|
|
Set a cache-tier for the specified pool.
|
|
|
|
|
|
|
|
.. option:: -d, --debug
|
|
|
|
|
|
|
|
Launch in debug mode.
|
|
|
|
|
|
|
|
.. option:: -e
|
|
|
|
|
|
|
|
Create an erasure pool.
|
|
|
|
|
|
|
|
.. option:: -f, --filestore
|
|
|
|
|
|
|
|
Use filestore as the osd objectstore backend.
|
|
|
|
|
|
|
|
.. option:: --hitset <pool> <hit_set_type>
|
|
|
|
|
|
|
|
Enable hitset tracking.
|
|
|
|
|
2013-07-04 12:08:41 +00:00
|
|
|
.. option:: -i ip_address
|
|
|
|
|
|
|
|
Bind to the specified *ip_address* instead of guessing and resolve from hostname.
|
|
|
|
|
|
|
|
.. option:: -k
|
|
|
|
|
|
|
|
Keep old configuration files instead of overwritting theses.
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -K, --kstore
|
|
|
|
|
|
|
|
Use kstore as the osd objectstore backend.
|
|
|
|
|
2013-07-04 12:08:41 +00:00
|
|
|
.. option:: -l, --localhost
|
|
|
|
|
|
|
|
Use localhost instead of hostanme.
|
|
|
|
|
|
|
|
.. option:: -m ip[:port]
|
|
|
|
|
|
|
|
Specifies monitor *ip* address and *port*.
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --memstore
|
|
|
|
|
|
|
|
Use memstore as the objectstore backend for osds
|
|
|
|
|
|
|
|
.. option:: --multimds <count>
|
|
|
|
|
|
|
|
Allow multimds with maximum active count.
|
|
|
|
|
2013-07-04 12:08:41 +00:00
|
|
|
.. option:: -n, --new
|
|
|
|
|
|
|
|
Create a new cluster.
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -N, --not-new
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Reuse existing cluster config (default).
|
2013-07-04 12:08:41 +00:00
|
|
|
|
|
|
|
.. option:: --nodaemon
|
|
|
|
|
|
|
|
Use ceph-run as wrapper for mon/osd/mds.
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --nolockdep
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Disable lockdep
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -o <config>
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Add *config* to all sections in the ceph configuration.
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --rgw_port <port>
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Specify ceph rgw http listen port.
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --rgw_frontend <frontend>
|
|
|
|
|
|
|
|
Specify the rgw frontend configuration (default is civetweb).
|
2013-07-04 12:08:41 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --rgw_compression <compression_type>
|
|
|
|
|
|
|
|
Specify the rgw compression plugin (default is disabled).
|
|
|
|
|
|
|
|
.. option:: --smallmds
|
|
|
|
|
|
|
|
Configure mds with small limit cache size.
|
|
|
|
|
|
|
|
.. option:: --short
|
|
|
|
|
|
|
|
Short object names only; necessary for ext4 dev
|
2013-07-04 12:08:41 +00:00
|
|
|
|
|
|
|
.. option:: --valgrind[_{osd,mds,mon}] 'valgrind_toolname [args...]'
|
|
|
|
|
|
|
|
Launch the osd/mds/mon/all the ceph binaries using valgrind with the specified tool and arguments.
|
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: --without-dashboard
|
2016-01-18 10:57:42 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Do not run using mgr dashboard.
|
2016-01-18 10:57:42 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -x
|
2016-01-18 10:57:42 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Enable cephx (on by default).
|
2016-01-18 10:57:42 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
.. option:: -X
|
2016-01-18 10:57:42 +00:00
|
|
|
|
2018-06-07 07:05:28 +00:00
|
|
|
Disable cephx.
|
2016-01-18 10:57:42 +00:00
|
|
|
|
|
|
|
|
2013-07-04 12:08:41 +00:00
|
|
|
Environment variables
|
|
|
|
=====================
|
|
|
|
|
2013-07-08 20:19:21 +00:00
|
|
|
{OSD,MDS,MON,RGW}
|
2013-07-04 12:08:41 +00:00
|
|
|
|
|
|
|
Theses environment variables will contains the number of instances of the desired ceph process you want to start.
|
|
|
|
|
2013-07-08 20:19:21 +00:00
|
|
|
Example: ::
|
|
|
|
|
|
|
|
OSD=3 MON=3 RGW=1 vstart.sh
|
2016-03-18 13:01:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
============================================================
|
|
|
|
Deploying multiple development clusters on the same machine
|
|
|
|
============================================================
|
|
|
|
|
|
|
|
In order to bring up multiple ceph clusters on the same machine, *mstart.sh* a
|
|
|
|
small wrapper around the above *vstart* can help.
|
|
|
|
|
|
|
|
Usage
|
|
|
|
=====
|
|
|
|
|
|
|
|
To start multiple clusters, you would run mstart for each cluster you would want
|
|
|
|
to deploy, and it will start monitors, rgws for each cluster on different ports
|
|
|
|
allowing you to run multiple mons, rgws etc. on the same cluster. Invoke it in
|
|
|
|
the following way::
|
|
|
|
|
|
|
|
mstart.sh <cluster-name> <vstart options>
|
|
|
|
|
|
|
|
For eg::
|
|
|
|
|
2018-06-07 06:21:05 +00:00
|
|
|
./mstart.sh cluster1 -n
|
2016-03-18 13:01:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
For stopping the cluster, you do::
|
|
|
|
|
|
|
|
./mstop.sh <cluster-name>
|