2 Ceph Filesystem (CephFS)
3 ------------------------
6 :title: Storage: CephFS
9 Storage pool type: `cephfs`
11 CephFS implements a POSIX-compliant filesystem using a http://ceph.com[Ceph]
12 storage cluster to store its data. As CephFS builds on Ceph it shares most of
13 its properties, this includes redundancy, scalability, self healing and high
16 TIP: {pve} can xref:chapter_pveceph[manage ceph setups], which makes
17 configuring a CephFS storage easier. As recent hardware has plenty of CPU power
18 and RAM, running storage services and VMs on same node is possible without a
19 big performance impact.
21 To use the CephFS storage plugin you need update the debian stock Ceph client.
22 Add our Ceph repository xref:sysadmin_package_repositories_ceph[Ceph repository].
23 Once added, run an `apt update` and `apt dist-upgrade` cycle to get the newest
26 You need to make sure that there is no other Ceph repository configured,
27 otherwise the installation will fail or there will be mixed package
28 versions on the node, leading to unexpected behavior.
30 [[storage_cephfs_config]]
34 This backend supports the common storage properties `nodes`,
35 `disable`, `content`, and the following `cephfs` specific properties:
39 List of monitor daemon addresses. Optional, only needed if Ceph is not running
44 The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
48 Ceph user id. Optional, only needed if Ceph is not running on the PVE cluster
49 where it defaults to `admin`.
53 CephFS subdirectory to mount. Optional, defaults to `/`.
57 Access CephFS through FUSE, instead of the kernel client. Optional, defaults
60 .Configuration Example for a external Ceph cluster (`/etc/pve/storage.cfg`)
62 cephfs: cephfs-external
63 monhost 10.1.1.20 10.1.1.21 10.1.1.22
64 path /mnt/pve/cephfs-external
68 NOTE: Don't forget to setup the client secret key file if cephx was not turned
74 If you use the, by-default enabled, `cephx` authentication, you need to copy
75 the secret from your external Ceph cluster to a Proxmox VE host.
77 Create the directory `/etc/pve/priv/ceph` with
79 mkdir /etc/pve/priv/ceph
83 scp cephfs.secret <proxmox>:/etc/pve/priv/ceph/<STORAGE_ID>.secret
85 The secret must be named to match your `<STORAGE_ID>`. Copying the
86 secret generally requires root privileges. The file must only contain the
87 secret key itself, opposed to the `rbd` backend which also contains a
88 `[client.userid]` section.
90 A secret can be received from the ceph cluster (as ceph admin) by issuing the
91 following command. Replace the `userid` with the actual client ID configured to
92 access the cluster. For further ceph user management see the Ceph docs
93 footnote:[Ceph user management http://docs.ceph.com/docs/luminous/rados/operations/user-management/].
95 ceph auth get-key client.userid > cephfs.secret
97 If Ceph is installed locally on the PVE cluster, i.e., setup with `pveceph`,
98 this is done automatically.
103 The `cephfs` backend is a POSIX-compliant filesystem on top of a Ceph cluster.
105 .Storage features for backend `cephfs`
106 [width="100%",cols="m,m,3*d",options="header"]
107 |==============================================================================
108 |Content types |Image formats |Shared |Snapshots |Clones
109 |vztmpl iso backup snippets |none |yes |yes^[1]^ |no
110 |==============================================================================
111 ^[1]^ Snapshots, while no known bugs, cannot be guaranteed to be stable yet, as
119 * link:/wiki/Storage[Storage]