mount -t ceph :/subvolume/dir1/dir2 /mnt/mycephfs -o name=fs
If you have more than one file system on your Ceph cluster, you can mount the
-non-default FS on your local FS as follows::
+non-default FS as follows::
- mount -t ceph :/ /mnt/mycephfs2 -o name=fs,mds_namespace=mycephfs2
+ mount -t ceph :/ /mnt/mycephfs2 -o name=fs,fs=mycephfs2
Unmounting CephFS
=================
for autodiscovery of monitor addresses and auth secrets. The default is
to use the standard search path for ceph.conf files.
-:command:`mds_namespace=<fs-name>`
+:command: `fs=<fs-name>`
Specify the non-default file system to be mounted. Not passing this
option mounts the default file system.
+:command: `mds_namespace=<fs-name>`
+ A synonym of "fs=" and its use is deprecated.
+
:command:`mount_timeout`
int (seconds), Default: 60
sudo mount -t ceph {ip-address-of-MON}:{port-number-of-MON}:{path-to-be-mounted} -o name={user-name},secret={secret-key} {mount-point}
If you have multiple file systems on your cluster you would need to pass
-``mds_namespace={fs-name}`` option to ``-o`` option to the ``mount`` command::
+``fs={fs-name}`` option to ``-o`` option to the ``mount`` command::
- sudo mount -t ceph :/ /mnt/kcephfs2 -o name=admin,mds_namespace=mycephfs2
+ sudo mount -t ceph :/ /mnt/kcephfs2 -o name=admin,fs=mycephfs2
Refer `mount.ceph man page`_ and `Mount CephFS using Kernel Driver`_ to read
more about this.
/* ignore */
} else if (strcmp(data, "nofail") == 0) {
/* ignore */
+ } else if (strcmp(data, "fs") == 0) {
+ if (!value || !*value) {
+ fprintf(stderr, "mount option fs requires a value.\n");
+ return -EINVAL;
+ }
+ data = "mds_namespace";
+ skip = false;
} else if (strcmp(data, "secretfile") == 0) {
int ret;