]> git.proxmox.com Git - pve-docs.git/blame_incremental - pve-storage-rbd.adoc
ceph: follow up rewords & fixes
[pve-docs.git] / pve-storage-rbd.adoc
... / ...
CommitLineData
1[[ceph_rados_block_devices]]
2Ceph RADOS Block Devices (RBD)
3------------------------------
4ifdef::wiki[]
5:pve-toplevel:
6:title: Storage: RBD
7endif::wiki[]
8
9Storage pool type: `rbd`
10
11http://ceph.com[Ceph] is a distributed object store and file system
12designed to provide excellent performance, reliability and
13scalability. RADOS block devices implement a feature rich block level
14storage, and you get the following advantages:
15
16* thin provisioning
17* resizable volumes
18* distributed and redundant (striped over multiple OSDs)
19* full snapshot and clone capabilities
20* self healing
21* no single point of failure
22* scalable to the exabyte level
23* kernel and user space implementation available
24
25NOTE: For smaller deployments, it is also possible to run Ceph
26services directly on your {pve} nodes. Recent hardware has plenty
27of CPU power and RAM, so running storage services and VMs on same node
28is possible.
29
30[[storage_rbd_config]]
31Configuration
32~~~~~~~~~~~~~
33
34This backend supports the common storage properties `nodes`,
35`disable`, `content`, and the following `rbd` specific properties:
36
37monhost::
38
39List of monitor daemon IPs. Optional, only needed if Ceph is not running on the
40PVE cluster.
41
42pool::
43
44Ceph pool name.
45
46username::
47
48RBD user Id. Optional, only needed if Ceph is not running on the PVE cluster.
49
50krbd::
51
52Enforce access to rados block devices through the krbd kernel module. Optional.
53
54NOTE: Containers will use `krbd` independent of the option value.
55
56.Configuration Example for a external Ceph cluster (`/etc/pve/storage.cfg`)
57----
58rbd: ceph-external
59 monhost 10.1.1.20 10.1.1.21 10.1.1.22
60 pool ceph-external
61 content images
62 username admin
63----
64
65TIP: You can use the `rbd` utility to do low-level management tasks.
66
67Authentication
68~~~~~~~~~~~~~~
69
70If you use `cephx` authentication, you need to copy the keyfile from your
71external Ceph cluster to a Proxmox VE host.
72
73Create the directory `/etc/pve/priv/ceph` with
74
75 mkdir /etc/pve/priv/ceph
76
77Then copy the keyring
78
79 scp <cephserver>:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/<STORAGE_ID>.keyring
80
81The keyring must be named to match your `<STORAGE_ID>`. Copying the
82keyring generally requires root privileges.
83
84If Ceph is installed locally on the PVE cluster, this is done automatically by
85'pveceph' or in the GUI.
86
87Storage Features
88~~~~~~~~~~~~~~~~
89
90The `rbd` backend is a block level storage, and implements full
91snapshot and clone functionality.
92
93.Storage features for backend `rbd`
94[width="100%",cols="m,m,3*d",options="header"]
95|==============================================================================
96|Content types |Image formats |Shared |Snapshots |Clones
97|images rootdir |raw |yes |yes |yes
98|==============================================================================
99
100ifdef::wiki[]
101
102See Also
103~~~~~~~~
104
105* link:/wiki/Storage[Storage]
106
107endif::wiki[]
108