Rate This Document
Findability
Accuracy
Completeness
Readability

Mounting the File System to the Clients

  1. Log in to any client node and check the key used for the client node to access the Ceph cluster.
    1
    cat /etc/ceph/ceph.client.admin.keyring
    

    You only need to run the command once. The keys for server nodes and client nodes are the same.

  2. Create a file system mount point on each client node.
    1
    mkdir /mnt/cephfs
    
  3. Run the following command on each client node:
    1
    mount -t ceph 192.168.3.166:6789,192.168.3.167:6789,192.168.3.168:6789:/ /mnt/cephfs -o name=admin,secret=Key_queried_in_step_1,sync
    

    The default MON port number is 6789. The -o parameter specifies the user name and password for logging in to the cluster.

  4. Check whether the file system is successfully mounted to each client node and whether the file system type is ceph.
    1
    stat -f /mnt/cephfs
    

    For details about the CephFS, see the description in the Ceph open source community.