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=AQCWrR9X8I9nCRAAl4fWyoWQD4eH1131lVtJ1w==
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
- Ceph Docs - Mount Ceph FS with the Kernel Driver
- Ceph Docs - Mount Ceph FS as a FUSE
- ServerWorld - How to use Ceph Cluster Storage from Clients.
- Ask Ubuntu - have problem with ceph fs mount
Last updated: 20th June 2021
First published: 16th August 2018
First published: 16th August 2018