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 \
ceph-mon1.programster.org:6789:/ /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 ceph-mon1.programster.org /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.




Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.