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