Revision 7ed400f0 doc/install.rst

b/doc/install.rst
69 69
You can also use file-based storage only, without LVM, but this setup is
70 70
not detailed in this document.
71 71

  
72
If you choose to use RBD-based instances, there's no need for LVM
73
provisioning. However, this feature is experimental, and is not
74
recommended for production clusters.
75

  
72 76
While you can use an existing system, please note that the Ganeti
73 77
installation is intrusive in terms of changes to the system
74 78
configuration, and it's best to use a newly-installed system without
......
300 304
       }
301 305
     }
302 306

  
307
Installing RBD
308
+++++++++++++++
309

  
310
Recommended on all nodes: RBD_ is required if you want to create
311
instances with RBD disks residing inside a RADOS cluster (make use of
312
the rbd disk template). RBD-based instances can failover or migrate to
313
any other node in the ganeti cluster, enabling you to exploit of all
314
Ganeti's high availabilily (HA) features.
315

  
316
.. attention::
317
   Be careful though: rbd is still experimental! For now it is
318
   recommended only for testing purposes.  No sensitive data should be
319
   stored there.
320

  
321
.. _RBD: http://ceph.newdream.net/
322

  
323
You will need the ``rbd`` and ``libceph`` kernel modules, the RBD/Ceph
324
userspace utils (ceph-common Debian package) and an appropriate
325
Ceph/RADOS configuration file on every VM-capable node.
326

  
327
You will also need a working RADOS Cluster accessible by the above
328
nodes.
329

  
330
RADOS Cluster
331
~~~~~~~~~~~~~
332

  
333
You will need a working RADOS Cluster accesible by all VM-capable nodes
334
to use the RBD template. For more information on setting up a RADOS
335
Cluster, refer to the `official docs <http://ceph.newdream.net/>`_.
336

  
337
If you want to use a pool for storing RBD disk images other than the
338
default (``rbd``), you should first create the pool in the RADOS
339
Cluster, and then set the corresponding rbd disk parameter named
340
``pool``.
341

  
342
Kernel Modules
343
~~~~~~~~~~~~~~
344

  
345
Unless your distribution already provides it, you might need to compile
346
the ``rbd`` and ``libceph`` modules from source. You will need Linux
347
Kernel 3.2 or above for the kernel modules. Alternatively you will have
348
to build them as external modules (from Linux Kernel source 3.2 or
349
above), if you want to run a less recent kernel, or your kernel doesn't
350
include them.
351

  
352
Userspace Utils
353
~~~~~~~~~~~~~~~
354

  
355
The RBD template has been tested with ``ceph-common`` v0.38 and
356
above. We recommend using the latest version of ``ceph-common``.
357

  
358
.. admonition:: Debian
359

  
360
   On Debian, you can just install the RBD/Ceph userspace utils with
361
   the following command::
362

  
363
      apt-get install ceph-common
364

  
365
Configuration file
366
~~~~~~~~~~~~~~~~~~
367

  
368
You should also provide an appropriate configuration file
369
(``ceph.conf``) in ``/etc/ceph``. For the rbd userspace utils, you'll
370
only need to specify the IP addresses of the RADOS Cluster monitors.
371

  
372
.. admonition:: ceph.conf
373

  
374
   Sample configuration file::
375

  
376
    [mon.a]
377
           host = example_monitor_host1
378
           mon addr = 1.2.3.4:6789
379
    [mon.b]
380
           host = example_monitor_host2
381
           mon addr = 1.2.3.5:6789
382
    [mon.c]
383
           host = example_monitor_host3
384
           mon addr = 1.2.3.6:6789
385

  
386
For more information, please see the `Ceph Docs
387
<http://ceph.newdream.net/docs/latest/>`_
388

  
303 389
Other required software
304 390
+++++++++++++++++++++++
305 391

  

Also available in: Unified diff