]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-cephfs.adoc
pvecm: fix wrong quorum numbers
[pve-docs.git] / pve-storage-cephfs.adoc
CommitLineData
669bce8b
AA
1[[storage_cephfs]]
2Ceph Filesystem (CephFS)
3------------------------
4ifdef::wiki[]
5:pve-toplevel:
6:title: Storage: CephFS
7endif::wiki[]
8
9Storage pool type: `cephfs`
10
6a8897ca
TL
11CephFS implements a POSIX-compliant filesystem using a http://ceph.com[Ceph]
12storage cluster to store its data. As CephFS builds on Ceph it shares most of
13its properties, this includes redundancy, scalability, self healing and high
14availability.
15
16TIP: {pve} can xref:chapter_pveceph[manage ceph setups], which makes
17configuring a CephFS storage easier. As recent hardware has plenty of CPU power
18and RAM, running storage services and VMs on same node is possible without a
19big performance impact.
669bce8b 20
2ecb5f80
AA
21To use the CephFS storage plugin you need update the debian stock Ceph client.
22Add our Ceph repository xref:sysadmin_package_repositories_ceph[Ceph repository].
23Once added, run an `apt update` and `apt dist-upgrade` cycle to get the newest
24packages.
25
26You need to make sure that there is no other Ceph repository configured,
27otherwise the installation will fail or there will be mixed package
28versions on the node, leading to unexpected behavior.
29
669bce8b
AA
30[[storage_cephfs_config]]
31Configuration
32~~~~~~~~~~~~~
33
34This backend supports the common storage properties `nodes`,
35`disable`, `content`, and the following `cephfs` specific properties:
36
37monhost::
38
6a8897ca
TL
39List of monitor daemon addresses. Optional, only needed if Ceph is not running
40on the PVE cluster.
669bce8b
AA
41
42path::
43
44The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
45
46username::
47
6a8897ca
TL
48Ceph user id. Optional, only needed if Ceph is not running on the PVE cluster
49where it defaults to `admin`.
669bce8b
AA
50
51subdir::
52
53CephFS subdirectory to mount. Optional, defaults to `/`.
54
55fuse::
56
57Access CephFS through FUSE, instead of the kernel client. Optional, defaults
58to `0`.
59
60.Configuration Example for a external Ceph cluster (`/etc/pve/storage.cfg`)
61----
62cephfs: cephfs-external
63 monhost 10.1.1.20 10.1.1.21 10.1.1.22
64 path /mnt/pve/cephfs-external
65 content backup
66 username admin
67----
6a8897ca
TL
68NOTE: Don't forget to setup the client secret key file if cephx was not turned
69off.
669bce8b
AA
70
71Authentication
72~~~~~~~~~~~~~~
73
6a8897ca
TL
74If you use the, by-default enabled, `cephx` authentication, you need to copy
75the secret from your external Ceph cluster to a Proxmox VE host.
669bce8b
AA
76
77Create the directory `/etc/pve/priv/ceph` with
78
79 mkdir /etc/pve/priv/ceph
80
81Then copy the secret
82
fdbb2634 83 scp cephfs.secret <proxmox>:/etc/pve/priv/ceph/<STORAGE_ID>.secret
669bce8b
AA
84
85The secret must be named to match your `<STORAGE_ID>`. Copying the
86secret generally requires root privileges. The file must only contain the
6a8897ca
TL
87secret key itself, opposed to the `rbd` backend which also contains a
88`[client.userid]` section.
669bce8b 89
fdbb2634
AA
90A secret can be received from the ceph cluster (as ceph admin) by issuing the
91following command. Replace the `userid` with the actual client ID configured to
118dceac 92access the cluster. For further ceph user management see the Ceph docs
fdbb2634
AA
93footnote:[Ceph user management http://docs.ceph.com/docs/luminous/rados/operations/user-management/].
94
95 ceph auth get-key client.userid > cephfs.secret
96
6a8897ca
TL
97If Ceph is installed locally on the PVE cluster, i.e., setup with `pveceph`,
98this is done automatically.
669bce8b
AA
99
100Storage Features
101~~~~~~~~~~~~~~~~
102
103The `cephfs` backend is a POSIX-compliant filesystem on top of a Ceph cluster.
104
105.Storage features for backend `cephfs`
106[width="100%",cols="m,m,3*d",options="header"]
107|==============================================================================
c2c8eb89
DC
108|Content types |Image formats |Shared |Snapshots |Clones
109|vztmpl iso backup snippets |none |yes |yes^[1]^ |no
669bce8b 110|==============================================================================
6a8897ca
TL
111^[1]^ Snapshots, while no known bugs, cannot be guaranteed to be stable yet, as
112they lack testing.
669bce8b
AA
113
114ifdef::wiki[]
115
116See Also
117~~~~~~~~
118
119* link:/wiki/Storage[Storage]
120
121endif::wiki[]
122