]> git.proxmox.com Git - pve-docs.git/blame - pve-storage-cephfs.adoc
output-format.adoc: fix typo
[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
AA
20
21[[storage_cephfs_config]]
22Configuration
23~~~~~~~~~~~~~
24
25This backend supports the common storage properties `nodes`,
26`disable`, `content`, and the following `cephfs` specific properties:
27
28monhost::
29
6a8897ca
TL
30List of monitor daemon addresses. Optional, only needed if Ceph is not running
31on the PVE cluster.
669bce8b
AA
32
33path::
34
35The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
36
37username::
38
6a8897ca
TL
39Ceph user id. Optional, only needed if Ceph is not running on the PVE cluster
40where it defaults to `admin`.
669bce8b
AA
41
42subdir::
43
44CephFS subdirectory to mount. Optional, defaults to `/`.
45
46fuse::
47
48Access CephFS through FUSE, instead of the kernel client. Optional, defaults
49to `0`.
50
51.Configuration Example for a external Ceph cluster (`/etc/pve/storage.cfg`)
52----
53cephfs: cephfs-external
54 monhost 10.1.1.20 10.1.1.21 10.1.1.22
55 path /mnt/pve/cephfs-external
56 content backup
57 username admin
58----
6a8897ca
TL
59NOTE: Don't forget to setup the client secret key file if cephx was not turned
60off.
669bce8b
AA
61
62Authentication
63~~~~~~~~~~~~~~
64
6a8897ca
TL
65If you use the, by-default enabled, `cephx` authentication, you need to copy
66the secret from your external Ceph cluster to a Proxmox VE host.
669bce8b
AA
67
68Create the directory `/etc/pve/priv/ceph` with
69
70 mkdir /etc/pve/priv/ceph
71
72Then copy the secret
73
74 scp <cephserver>:/etc/ceph/cephfs.secret /etc/pve/priv/ceph/<STORAGE_ID>.secret
75
76The secret must be named to match your `<STORAGE_ID>`. Copying the
77secret generally requires root privileges. The file must only contain the
6a8897ca
TL
78secret key itself, opposed to the `rbd` backend which also contains a
79`[client.userid]` section.
669bce8b 80
6a8897ca
TL
81If Ceph is installed locally on the PVE cluster, i.e., setup with `pveceph`,
82this is done automatically.
669bce8b
AA
83
84Storage Features
85~~~~~~~~~~~~~~~~
86
87The `cephfs` backend is a POSIX-compliant filesystem on top of a Ceph cluster.
88
89.Storage features for backend `cephfs`
90[width="100%",cols="m,m,3*d",options="header"]
91|==============================================================================
92|Content types |Image formats |Shared |Snapshots |Clones
6a8897ca 93|vztmpl iso backup |none |yes |yes^[1]^ |no
669bce8b 94|==============================================================================
6a8897ca
TL
95^[1]^ Snapshots, while no known bugs, cannot be guaranteed to be stable yet, as
96they lack testing.
669bce8b
AA
97
98ifdef::wiki[]
99
100See Also
101~~~~~~~~
102
103* link:/wiki/Storage[Storage]
104
105endif::wiki[]
106