]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-rbd.adoc
scan-adoc-refs: fix title change via attribute
[pve-docs.git] / pve-storage-rbd.adoc
CommitLineData
aa039b0f
DM
1Ceph RADOS Block Devices (RBD)
2------------------------------
fc3425bd 3include::attributes.txt[]
5f09af76
DM
4ifdef::wiki[]
5:pve-toplevel:
cb84ed18 6:title: Storage: RBD
5f09af76
DM
7endif::wiki[]
8
aa039b0f
DM
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
5eba0743 23* kernel and user space implementation available
aa039b0f
DM
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
30Configuration
31~~~~~~~~~~~~~
32
33This backend supports the common storage properties `nodes`,
34`disable`, `content`, and the following `rbd` specific properties:
35
36monhost::
37
38List of monitor daemon IPs.
39
40pool::
41
42Ceph pool name.
43
44username::
45
46RBD user Id.
47
48krbd::
49
50Access rbd through krbd kernel module. This is required if you want to
51use the storage for containers.
52
8c1189b6 53.Configuration Example (`/etc/pve/storage.cfg`)
aa039b0f
DM
54----
55rbd: ceph3
56 monhost 10.1.1.20 10.1.1.21 10.1.1.22
57 pool ceph3
58 content images
59 username admin
60----
61
8c1189b6 62TIP: You can use the `rbd` utility to do low-level management tasks.
aa039b0f
DM
63
64Authentication
65~~~~~~~~~~~~~~
66
8c1189b6 67If you use `cephx` authentication, you need to copy the keyfile from
aa039b0f
DM
68Ceph to Proxmox VE host.
69
8c1189b6 70Create the directory `/etc/pve/priv/ceph` with
aa039b0f
DM
71
72 mkdir /etc/pve/priv/ceph
73
74Then copy the keyring
75
76 scp <cephserver>:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/<STORAGE_ID>.keyring
77
78The keyring must be named to match your `<STORAGE_ID>`. Copying the
79keyring generally requires root privileges.
80
81Storage Features
82~~~~~~~~~~~~~~~~
83
84The `rbd` backend is a block level storage, and implements full
85snapshot and clone functionality.
86
87.Storage features for backend `rbd`
88[width="100%",cols="m,m,3*d",options="header"]
89|==============================================================================
90|Content types |Image formats |Shared |Snapshots |Clones
91|images rootdir |raw |yes |yes |yes
92|==============================================================================
93
deb4673f
DM
94ifdef::wiki[]
95
96See Also
97~~~~~~~~
98
f532afb7 99* link:/wiki/Storage[Storage]
deb4673f
DM
100
101endif::wiki[]
102