O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

In order for our client to have access to Ceph FS, we need to configure the client for accessing the cluster and mounting Ceph FS. Let's review how this is done:

  1. Check your client's Linux kernel version:
        root@client-node1 # uname -r
  1. Create a mount point directory in which you want to mount the filesystem:
        # mkdir /mnt/cephfs
  1. Get the keys for the client.cephfs user, which we created in the last section. Execute the following command from the Ceph monitor node to get the user keys:
        # ceph auth get-key client.cephfs
  1. Mount Ceph FS using the native Linux mount call with the following syntax:

Syntax: # mount -t ceph <monitor _IP:Monitor_port>:/ <mount_point_name> -o name=admin,secret=<admin_user_key>

 # mount -t ceph ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required