1 ======================================
2 Mount Ceph FS with the Kernel Driver
3 ======================================
5 To mount the Ceph file system you may use the ``mount`` command if you know the
6 monitor host IP address(es), or use the ``mount.ceph`` utility to resolve the
7 monitor host name(s) into IP address(es) for you. For example::
9 sudo mkdir /mnt/mycephfs
10 sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs
12 To mount the Ceph file system with ``cephx`` authentication enabled, you must
13 specify a user name and a secret. ::
15 sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secret=AQATSKdNGBnwLhAAnNDKnH65FmVKpXZJVasUeQ==
17 The foregoing usage leaves the secret in the Bash history. A more secure
18 approach reads the secret from a file. For example::
20 sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secretfile=/etc/ceph/admin.secret
22 If you have more than one filesystem, specify which one to mount using
23 the ``mds_namespace`` option, e.g. ``-o mds_namespace=myfs``.
25 See `User Management`_ for details on cephx.
27 To unmount the Ceph file system, you may use the ``umount`` command. For example::
29 sudo umount /mnt/mycephfs
31 .. tip:: Ensure that you are not within the file system directories before
32 executing this command.
34 See `mount.ceph`_ for details.
36 .. _mount.ceph: ../../man/8/mount.ceph/
37 .. _User Management: ../../rados/operations/user-management/