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

Mount

sudo mount -t ceph \
  ceph-mon1.programster.org:6789:/ /mnt/mycephfs \
  -o name=admin,secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==

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

Mount

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.

References

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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch