1 =======================
2 Mount CephFS using FUSE
3 =======================
5 Before mounting a Ceph File System in User Space (FUSE), ensure that the client
6 host has a copy of the Ceph configuration file and a keyring with CAPS for the
9 #. From your client host, copy the Ceph configuration file from the monitor host
10 to the ``/etc/ceph`` directory. ::
12 sudo mkdir -p /etc/ceph
13 sudo scp {user}@{server-machine}:/etc/ceph/ceph.conf /etc/ceph/ceph.conf
15 #. From your client host, copy the Ceph keyring from the monitor host to
16 to the ``/etc/ceph`` directory. ::
18 sudo scp {user}@{server-machine}:/etc/ceph/ceph.keyring /etc/ceph/ceph.keyring
20 #. Ensure that the Ceph configuration file and the keyring have appropriate
21 permissions set on your client machine (e.g., ``chmod 644``).
23 For additional details on ``cephx`` configuration, see
24 `CEPHX Config Reference`_.
26 To mount the Ceph file system as a FUSE, you may use the ``ceph-fuse`` command.
29 sudo mkdir /home/username/cephfs
30 sudo ceph-fuse -m 192.168.0.1:6789 /home/username/cephfs
32 If you have more than one filesystem, specify which one to mount using
33 the ``--client_mds_namespace`` command line argument, or add a
34 ``client_mds_namespace`` setting to your ``ceph.conf``.
36 See `ceph-fuse`_ for additional details.
38 To automate mounting ceph-fuse, you may add an entry to the system fstab_.
39 Additionally, ``ceph-fuse@.service`` and ``ceph-fuse.target`` systemd units are
40 available. As usual, these unit files declare the default dependencies and
41 recommended execution context for ``ceph-fuse``. An example ceph-fuse mount on
44 sudo systemctl start ceph-fuse@/mnt.service
46 A persistent mount point can be setup via::
48 sudo systemctl enable ceph-fuse@/mnt.service
50 .. _ceph-fuse: ../../man/8/ceph-fuse/
51 .. _fstab: ../fstab/#fuse
52 .. _CEPHX Config Reference: ../../rados/configuration/auth-config-ref