For example::
- 10.10.10.10:6789:/ /mnt/ceph ceph name=admin,secretfile=/etc/ceph/secret.key,noatime,_netdev 0 2
+ 10.10.10.10:6789:/ /mnt/ceph ceph name=admin,noatime,_netdev 0 2
-.. important:: The ``name`` and ``secret`` or ``secretfile`` options are
- mandatory when you have Ceph authentication running.
+The default for the ``name=`` parameter is ``guest``. 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.
See `User Management`_ for details.
sudo mkdir /mnt/mycephfs
sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs
-To mount the Ceph file system with ``cephx`` authentication enabled, you must
-specify a user name and a secret. ::
+To mount the Ceph file system with ``cephx`` authentication enabled, the kernel
+must authenticate with the cluster. The default ``name=`` option is ``guest``.
+The mount.ceph helper will automatically attempt to find a secret key in the
+keyring.
+
+The secret can also be specified manually with the ``secret=`` option. ::
sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secret=AQATSKdNGBnwLhAAnNDKnH65FmVKpXZJVasUeQ==
approach reads the secret from a file. For example::
sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secretfile=/etc/ceph/admin.secret
-
+
+See `User Management`_ for details on cephx.
+
If you have more than one file system, specify which one to mount using
+
the ``mds_namespace`` option, e.g. ``-o mds_namespace=myfs``.
-
-See `User Management`_ for details on cephx.
To unmount the Ceph file system, you may use the ``umount`` command. For example::