Accessing CephFS via FUSE client

The Ceph Filesystem is natively supported by the LINUX kernel; however, if your host is running on a lower kernel version, or if you have any application dependency, then you can always use the FUSE (Filesystem in User Space) client for Ceph to mount CephFS.

How to do it…

  1. Install the Ceph FUSE package on the client-node1 machine:
    # apt-get install -y ceph-fuse
    
  2. Create the CephFS keyring file, /etc/ceph/client.cephfs.keyring, with the following contents:
    [client.cephfs]
    key = AQAGSF5VMIDWHhAAox9s/oHg/6FPzf4xRQV73Q==
  3. Mount CephFS using the Ceph FUSE client:
    # ceph-fuse --keyring /etc/ceph/client.cephfs.keyring --name client.cephfs  -m ceph-node1:6789  /mnt/cephfs
    
    How to do it…
  4. To mount CephFS at the OS boot, add the following lines in the /etc/fstab file on client-node1:
    id=cephfs,keyring=client.cephfs.keyring       /mnt/cephfs fuse.ceph defaults 00
  5. Umount and mount CephFS again:
    # umount /mnt/cephfs
    # mount /mnt/cephfs
    
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.226.255