Once we are done adding capabilities, we will use ceph auth import to update -or- create our user entry. I personally like this way of updating the capabilities for a user for two reasons. First, it allows me to backup clients CAPS, most importantly, It allows me to not accidentally override their CAPS with ceph auth caps command.

1

$ ceph auth import -i /etc/ceph/ceph.client.test_user.keyring

Creating the CephFS share

If you don’t already have CephFS mounted somewhere to be able to create directories, lets mount the root directory now. Then create a subdirectory names test_folder.

Note – If you want to set user quotas on directory, use ceph-fuse when mounting. So far its the only way I’ve been able to get quotas to work.

1

2

3

$ mkdir /mnt/cephfs

$ ceph-fuse /mnt/cephfs

$ mkdir /mnt/cephfs/test_folder

Lets set a quota on test_folder.

1

2

$ cd /mnt/cephfs/

$ setfattr -n ceph.quota.max_bytes -v 107300000000 test_folder

Lets mount up the test folder to ensure quotas worked.

1

2

3

4

$ ceph-fuse -r /test_folder /mnt/cephfs

$ df -h

~~~

ceph-fuse 100G 0 100G 0% /mnt/cephfs

Next, install packages for ceph-fuse

1

$ yum install ceph-fuse

Create Mount Points

Copy over your client key you made on the admin node, and ceph.conf, to “/etc/ceph/“Then we will make two directories that will be use for mounting CephFS.Personally I like to keep the mount directory and Ceph directory name the same.

1

2

$ mkdir /etc/cephfs_root

$ mkdir /etc/test_folder

Make this a persistent mount by adding entries in “/etc/fstab”. Change the information as needed.

Fin

There you have it, you should now have a fully working CephFS share. I hope this helps out peeps and makes like a little easier. If this even helped out one admin, then it was well worth it. If you have any questions, or need to hire a Ceph Engineer, free to contact me at magusnebula@gmail.com!