2018-06-25 18:51:09 +02:00
[[storage_cephfs]]
Ceph Filesystem (CephFS)
------------------------
ifdef::wiki[]
:pve-toplevel:
:title: Storage: CephFS
endif::wiki[]
Storage pool type: `cephfs`
2018-07-05 17:09:55 +02:00
CephFS implements a POSIX-compliant filesystem using a http://ceph.com[Ceph]
storage cluster to store its data. As CephFS builds on Ceph it shares most of
its properties, this includes redundancy, scalability, self healing and high
availability.
TIP: {pve} can xref:chapter_pveceph[manage ceph setups], which makes
configuring a CephFS storage easier. As recent hardware has plenty of CPU power
and RAM, running storage services and VMs on same node is possible without a
big performance impact.
2018-06-25 18:51:09 +02:00
[[storage_cephfs_config]]
Configuration
~~~~~~~~~~~~~
This backend supports the common storage properties `nodes`,
`disable`, `content`, and the following `cephfs` specific properties:
monhost::
2018-07-05 17:09:55 +02:00
List of monitor daemon addresses. Optional, only needed if Ceph is not running
on the PVE cluster.
2018-06-25 18:51:09 +02:00
path::
The local mount point. Optional, defaults to `/mnt/pve/<STORAGE_ID>/`.
username::
2018-07-05 17:09:55 +02:00
Ceph user id. Optional, only needed if Ceph is not running on the PVE cluster
where it defaults to `admin`.
2018-06-25 18:51:09 +02:00
subdir::
CephFS subdirectory to mount. Optional, defaults to `/`.
fuse::
Access CephFS through FUSE, instead of the kernel client. Optional, defaults
to `0`.
.Configuration Example for a external Ceph cluster (`/etc/pve/storage.cfg`)
----
cephfs: cephfs-external
monhost 10.1.1.20 10.1.1.21 10.1.1.22
path /mnt/pve/cephfs-external
content backup
username admin
----
2018-07-05 17:09:55 +02:00
NOTE: Don't forget to setup the client secret key file if cephx was not turned
off.
2018-06-25 18:51:09 +02:00
Authentication
~~~~~~~~~~~~~~
2018-07-05 17:09:55 +02:00
If you use the, by-default enabled, `cephx` authentication, you need to copy
the secret from your external Ceph cluster to a Proxmox VE host.
2018-06-25 18:51:09 +02:00
Create the directory `/etc/pve/priv/ceph` with
mkdir /etc/pve/priv/ceph
Then copy the secret
scp <cephserver>:/etc/ceph/cephfs.secret /etc/pve/priv/ceph/<STORAGE_ID>.secret
The secret must be named to match your `<STORAGE_ID>`. Copying the
secret generally requires root privileges. The file must only contain the
2018-07-05 17:09:55 +02:00
secret key itself, opposed to the `rbd` backend which also contains a
`[client.userid]` section.
2018-06-25 18:51:09 +02:00
2018-07-05 17:09:55 +02:00
If Ceph is installed locally on the PVE cluster, i.e., setup with `pveceph`,
this is done automatically.
2018-06-25 18:51:09 +02:00
Storage Features
~~~~~~~~~~~~~~~~
The `cephfs` backend is a POSIX-compliant filesystem on top of a Ceph cluster.
.Storage features for backend `cephfs`
[width="100%",cols="m,m,3*d",options="header"]
|==============================================================================
|Content types |Image formats |Shared |Snapshots |Clones
2018-07-05 17:09:55 +02:00
|vztmpl iso backup |none |yes |yes^[1]^ |no
2018-06-25 18:51:09 +02:00
|==============================================================================
2018-07-05 17:09:55 +02:00
^[1]^ Snapshots, while no known bugs, cannot be guaranteed to be stable yet, as
they lack testing.
2018-06-25 18:51:09 +02:00
ifdef::wiki[]
See Also
~~~~~~~~
* link:/wiki/Storage[Storage]
endif::wiki[]