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