Skip to content

Commit

Permalink
Merge pull request ceph#61082 from zdover23/wip-doc-2024-12-14-backpo…
Browse files Browse the repository at this point in the history
…rt-61077-to-quincy

quincy: doc/cephfs: edit 3rd 3rd of mount-using-kernel-driver
  • Loading branch information
anthonyeleven authored Dec 13, 2024
2 parents a7ff861 + 3a12d87 commit 12b0f65
Showing 1 changed file with 28 additions and 16 deletions.
44 changes: 28 additions & 16 deletions doc/cephfs/mount-using-kernel-driver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,40 @@ Backward Compatibility
======================
The old syntax is supported for backward compatibility.

To mount CephFS with the kernel driver::
To mount CephFS with the kernel driver, run the following commands:

mkdir /mnt/mycephfs
mount -t ceph :/ /mnt/mycephfs -o name=admin
.. prompt:: bash #

The key-value argument right after option ``-o`` is CephX credential;
``name`` is the username of the CephX user we are using to mount CephFS.
mkdir /mnt/mycephfs
mount -t ceph :/ /mnt/mycephfs -o name=admin

To mount a non-default FS ``cephfs2``, in case the cluster has multiple FSs::
The key-value argument right after the option ``-o`` is the CephX credential.
``name`` is the username of the CephX user that is mounting CephFS.

mount -t ceph :/ /mnt/mycephfs -o name=admin,fs=cephfs2
To mount a non-default FS (in this example, ``cephfs2``), run commands of the following form. These commands are to be used in cases in which the cluster
has multiple file systems:

or
.. prompt:: bash #

mount -t ceph :/ /mnt/mycephfs -o name=admin,mds_namespace=cephfs2
mount -t ceph :/ /mnt/mycephfs -o name=admin,fs=cephfs2

.. note:: The option ``mds_namespace`` is deprecated. Use ``fs=`` instead when using the old syntax for mounting.
or

.. prompt:: bash #

mount -t ceph :/ /mnt/mycephfs -o name=admin,mds_namespace=cephfs2

.. note:: The option ``mds_namespace`` is deprecated. Use ``fs=`` instead when
using the old syntax for mounting.

Unmounting CephFS
=================
To unmount the Ceph file system, use the ``umount`` command as usual::
To unmount the Ceph file system, use the ``umount`` command, as in this
example:

.. prompt:: bash #

umount /mnt/mycephfs
umount /mnt/mycephfs

.. tip:: Ensure that you are not within the file system directories before
executing this command.
Expand All @@ -148,11 +159,12 @@ For example::

[email protected]=/ /mnt/ceph ceph mon_addr=192.168.0.1:6789,noatime,_netdev 0 0

If the ``secret`` or ``secretfile`` options are not specified then the mount helper
will attempt to find a secret for the given ``name`` in one of the configured keyrings.
If the ``secret`` or ``secretfile`` options are not specified, the mount
helper will attempt to find a secret for the given ``name`` in one of the
configured keyrings.

See `User Management`_ for details on CephX user management and mount.ceph_
manual for more options it can take. For troubleshooting, see
See `User Management`_ for details on CephX user management and the mount.ceph_
manual for a list of the options it recognizes. For troubleshooting, see
:ref:`kernel_mount_debugging`.

.. _fstab: ../fstab/#kernel-driver
Expand Down

0 comments on commit 12b0f65

Please sign in to comment.