-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ceph#61082 from zdover23/wip-doc-2024-12-14-backpo…
…rt-61077-to-quincy quincy: doc/cephfs: edit 3rd 3rd of mount-using-kernel-driver
- Loading branch information
Showing
1 changed file
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|