Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 14.04 - Mount Ceph Filesystem

Kernel Based Mount

Install necessary Packages

sudo apt install ceph-common ceph-fs-common -y


sudo mount -t ceph \ /mnt/mycephfs \
-o name=admin,secret=AQCWrR9X8I9nCRAAl4fWyoWQD4eH1131lVtJ1w==

The secret can be found as the value of key in the ceph.client.admin.keyring file in your ceph cluster nodes.

Mount As FUSE

Install necessary Packages

sudo apt-get install ceph-fuse

Copy files

You need to copy the ceph.conf and ceph.client.admin.keyring files from the monitor's /etc/ceph.conf folder to your client's /etc/ceph.conf folder.

sudo scp [ceph user]@[ceph monitor hostname]:/etc/ceph/ceph.conf /etc/ceph/ceph.conf
sudo scp [ceph user]@[ceph monitor hostname]:/etc/ceph/ceph.client.admin.keyring /etc/ceph/ceph.client.admin.keyring


Once your client has the necessary files, mount the Ceph Filesystem with the following command:

sudo ceph-fuse /path/to/mount

If you want to manually specify the monitor's address, you can use -m like as follows:

sudo ceph-fuse -m /path/to/mount

Additional Note

Because I used directories for my OSDs rather than using empty disks, my Ceph mount was showing a significant % of utilization. Don't be alarmed if you get the same.


Last updated: 16th August 2018
First published: 16th August 2018