Merge pull request #14087 from jcsp/wip-doc-fscid

doc: how to specify filesystem for cephfs clients

 Reviewed-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
John Spray 2017-04-13 17:42:13 +01:00 committed by GitHub
commit e1b4327d67
3 changed files with 10 additions and 3 deletions

View File

@ -52,7 +52,8 @@ an *active* state. For example, in a single MDS system:
e5: 1/1/1 up {0=a=up:active} e5: 1/1/1 up {0=a=up:active}
Once the filesystem is created and the MDS is active, you are ready to mount Once the filesystem is created and the MDS is active, you are ready to mount
the filesystem: the filesystem. If you have created more than one filesystem, you will
choose which to use when mounting.
- `Mount CephFS`_ - `Mount CephFS`_
- `Mount CephFS as FUSE`_ - `Mount CephFS as FUSE`_

View File

@ -1,8 +1,7 @@
========================= =========================
Mount Ceph FS as a FUSE Mount Ceph FS using FUSE
========================= =========================
For Ceph version 0.55 and later, ``cephx`` authentication is on by default.
Before mounting a Ceph File System in User Space (FUSE), ensure that the client Before mounting a Ceph File System in User Space (FUSE), ensure that the client
host has a copy of the Ceph configuration file and a keyring with CAPS for the host has a copy of the Ceph configuration file and a keyring with CAPS for the
Ceph metadata server. Ceph metadata server.
@ -30,6 +29,10 @@ For example::
sudo mkdir /home/usernname/cephfs sudo mkdir /home/usernname/cephfs
sudo ceph-fuse -m 192.168.0.1:6789 /home/username/cephfs sudo ceph-fuse -m 192.168.0.1:6789 /home/username/cephfs
If you have more than one filesystem, specify which one to mount using
the ``--client_mds_namespace`` command line argument, or add a
``client_mds_namespace`` setting to your ``ceph.conf``.
See `ceph-fuse`_ for additional details. See `ceph-fuse`_ for additional details.
To automate mounting ceph-fuse, you may add an entry to the system fstab_. To automate mounting ceph-fuse, you may add an entry to the system fstab_.

View File

@ -19,6 +19,9 @@ 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 sudo mount -t ceph 192.168.0.1:6789:/ /mnt/mycephfs -o name=admin,secretfile=/etc/ceph/admin.secret
If you have more than one filesystem, specify which one to mount using
the ``mds_namespace`` option, e.g. ``-o mds_namespace=myfs``.
See `User Management`_ for details on cephx. See `User Management`_ for details on cephx.
To unmount the Ceph file system, you may use the ``umount`` command. For example:: To unmount the Ceph file system, you may use the ``umount`` command. For example::