]> git.proxmox.com Git - pve-docs.git/blob - pve-storage-rbd.adoc
dblatex-custom.sty: fix spacing in descriptionlabel
[pve-docs.git] / pve-storage-rbd.adoc
1 Ceph RADOS Block Devices (RBD)
2 ------------------------------
3 include::attributes.txt[]
4 ifdef::wiki[]
5 :pve-toplevel:
6 :title: Storage: RBD
7 endif::wiki[]
8
9 Storage pool type: `rbd`
10
11 http://ceph.com[Ceph] is a distributed object store and file system
12 designed to provide excellent performance, reliability and
13 scalability. RADOS block devices implement a feature rich block level
14 storage, 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
25 NOTE: For smaller deployments, it is also possible to run Ceph
26 services directly on your {pve} nodes. Recent hardware has plenty
27 of CPU power and RAM, so running storage services and VMs on same node
28 is possible.
29
30 Configuration
31 ~~~~~~~~~~~~~
32
33 This backend supports the common storage properties `nodes`,
34 `disable`, `content`, and the following `rbd` specific properties:
35
36 monhost::
37
38 List of monitor daemon IPs.
39
40 pool::
41
42 Ceph pool name.
43
44 username::
45
46 RBD user Id.
47
48 krbd::
49
50 Access rbd through krbd kernel module. This is required if you want to
51 use the storage for containers.
52
53 .Configuration Example (`/etc/pve/storage.cfg`)
54 ----
55 rbd: 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
62 TIP: You can use the `rbd` utility to do low-level management tasks.
63
64 Authentication
65 ~~~~~~~~~~~~~~
66
67 If you use `cephx` authentication, you need to copy the keyfile from
68 Ceph to Proxmox VE host.
69
70 Create the directory `/etc/pve/priv/ceph` with
71
72 mkdir /etc/pve/priv/ceph
73
74 Then copy the keyring
75
76 scp <cephserver>:/etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph/<STORAGE_ID>.keyring
77
78 The keyring must be named to match your `<STORAGE_ID>`. Copying the
79 keyring generally requires root privileges.
80
81 Storage Features
82 ~~~~~~~~~~~~~~~~
83
84 The `rbd` backend is a block level storage, and implements full
85 snapshot 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
94 ifdef::wiki[]
95
96 See Also
97 ~~~~~~~~
98
99 * link:/wiki/Storage[Storage]
100
101 endif::wiki[]
102