CephFS: How Ceph’s Distributed File System Works and When to Use It
CephFS is the file system of Ceph: a POSIX file system, with directories, permissions and file locking, that many machines can mount at the same time while the data is spread across the disks of the whole cluster. It is the oldest of Ceph’s three interfaces, older than RBD for block and RGW for S3, and it is what you use when several servers need to see the same files, from shared home directories to HPC scratch space or the volumes of a Kubernetes cluster.

How CephFS works
CephFS splits every file into two parts that live in different places. The file contents are stored as objects in a data pool, and clients read and write them directly against the disks that hold them, with no gateway in the middle, which is why throughput grows as you add servers. The directory tree, file names, sizes and permissions live in a separate metadata pool, and that part is served by the Metadata Server (MDS), a daemon that keeps the hot part of the tree in memory and coordinates which client can do what with each file.
The MDS doesn’t store anything on its own disk: it writes its changes to a journal in the metadata pool, so if the server running it dies, a standby MDS replays that journal and takes over. Each file system runs one active MDS by default. You can add more active MDS daemons, each handling part of the directory tree, but that only helps when many clients work in different directories at once; a single application on a single client rarely benefits.
Creating a CephFS file system
On a cluster managed by cephadm, one command creates the file system, its two pools and the MDS daemons:
ceph fs volume create cephfs
Then you create a client user restricted to the file system (and, if you want, to one directory of it), and copy a minimal configuration file and that key to the client machine:
# on a cluster node
ceph config generate-minimal-conf > ceph.conf
ceph fs authorize cephfs client.app / rw > ceph.client.app.keyring
# on the client, after copying both files to /etc/ceph
mount -t ceph app@.cephfs=/ /mnt/cephfs
That uses the Linux kernel client, which is the fastest option and the one the Ceph documentation recommends for most cases. There is also a FUSE client (ceph-fuse), slower but easier to keep at the same version as the cluster, which is useful on machines with old kernels. To mount it at boot, the same device string goes into /etc/fstab with the _netdev option, so the system waits for the network.
What you get beyond a shared folder
- Snapshots of any directory, taken by creating a folder inside
.snap, and scheduled with retention rules through thesnap_schedulemanager module. - Quotas per directory, by size or number of files, set as extended attributes (
setfattr -n ceph.quota.max_bytes -v 500Gi /mnt/cephfs/projects). - Subvolumes, independent directory trees managed by Ceph, which is how the Kubernetes CSI driver and OpenStack Manila hand out shared volumes.
- Several file systems on one cluster, each with its own pools and MDS.
Machines that can’t run a Ceph client, Windows desktops or appliances that only speak NFS, can reach the same files through an NFS gateway. We explain how to make that gateway highly available in our article on CephFS NFS with Ganesha, and how CephFS compares with a classic NFS server and with IBM Storage Scale in CephFS vs NFS.
Where CephFS gets slow, and why
The metadata pool on hard disks. Every ls, stat or file creation goes through the metadata pool, so if it shares spinning disks with the data, the whole file system feels slow even when throughput looks fine. The Ceph documentation recommends putting it on dedicated SSD or NVMe and keeping at least three replicas, because losing that pool can make the entire file system unreachable. It is small, so doing it properly is cheap.
Erasure coding on the default data pool. CephFS keeps a small object for every file in the first data pool it was created with, and updates it often. If that pool uses erasure coding, those small writes are slow. The usual layout is a replicated default pool and a second, erasure-coded pool for bulk data, assigned to the directories that need it through file layouts.
Millions of small files on one MDS. Workloads that create, list and delete huge numbers of small files (build systems, mail stores, some AI datasets) put all the pressure on the MDS, not on the disks. The first steps are giving the MDS enough RAM for its cache and watching for warnings such as clients failing to respond to cache pressure; only then does it make sense to add active MDS daemons and spread directories between them.
No standby MDS. With a single MDS and no standby, the file system stops when that daemon or its server does. Ceph raises a health warning in that situation, and it is worth taking seriously: a standby costs one more daemon and some RAM.
Old kernels on the clients. The kernel client ships with the Linux kernel, not with Ceph, so a client on an old distribution may be years behind the cluster. If a problem only appears on some clients, trying the FUSE client is a quick way to tell whether the kernel is to blame.
Assuming a path restriction isolates tenants. Restricting a client to /projects/a limits what it can see in the directory tree, but the client still talks to the data pool directly. To separate untrusted clients completely, their data also has to go into its own RADOS namespace with matching permissions.
When CephFS fits, and when it doesn’t
CephFS fits when many machines need the same files and the volume grows beyond what one server can hold: shared storage for HPC and AI clusters, home directories, media and render pipelines, or ReadWriteMany volumes in Kubernetes. It is also a natural choice if you already run Ceph for virtual machines and want files from the same cluster; if you are still choosing storage for those virtual machines, we compare Ceph vs ZFS separately. It fits less well for a single database, which is better served by a block device (RBD), or for data that applications already store as objects over S3, where RGW is the simpler path.
Frequently asked questions
What is the difference between CephFS and RBD?
RBD is a block device for one machine at a time, usually a virtual machine disk. CephFS is a file system that many machines mount at once and see the same files.
Can Windows clients use CephFS?
Yes, with the ceph-dokan client, or more commonly through an NFS or SMB gateway, so Windows clients don’t need any Ceph software.
Does CephFS support snapshots and quotas?
Yes. Snapshots work on any directory and can be scheduled with the snap_schedule module, and quotas limit bytes or files per directory.
How many MDS daemons do I need?
One active MDS and at least one standby is enough for many workloads. More active MDS daemons help when many clients work on separate directories at the same time.
Keep reading
-

How to learn Ceph | The reality that NOBODY is telling
A three-phase path to learning Ceph with the hours each one takes, the mistakes that slow you down most and the courses to take a cluster into production.
-

Ceph Storage News 2026: Latest Releases, Features & Roadmap
What changes between Squid (v19) and Tentacle (v20): Crimson OSD, RGW performance, CephFS with NFS-Ganesha and when it makes sense to upgrade.
-

Ceph vs ZFS: Which One Fits Your Storage, and When to Use Both
Ceph vs ZFS: one is a cluster, the other lives on one server. What each does when a node dies, what hardware they need and which to choose for Proxmox.
If you need a hand with CephFS
We design, deploy and support Ceph clusters with CephFS, RBD and RGW. On CephFS that means putting the metadata pool and the default data pool on the right disks from day one, sizing the MDS for the number of files you really have, and growing the file system without stopping the applications on top of it. Our Ceph consulting and support page explains how we work, including 24/7 on-call for production incidents. If your team will run the cluster, start with how to learn Ceph, and for the storage side of AI and HPC clusters, see our comparison of Ceph, Lustre and DAOS.
