ceph-fuse --id foo -r /path/to/dir /mnt/mycephfs
If you have more than one FS on your Ceph cluster, use the option
-``--client_mds_namespace`` to mount the non-default FS::
+``--client_fs`` to mount the non-default FS::
- ceph-fuse --id foo --client_mds_namespace mycephfs2 /mnt/mycephfs2
+ ceph-fuse --id foo --client_fs mycephfs2 /mnt/mycephfs2
-You may also add a ``client_mds_namespace`` setting to your ``ceph.conf``
+You may also add a ``client_fs`` setting to your ``ceph.conf``
Unmounting CephFS
=================
sudo ceph-fuse -r {path-to-be-mounted} /mnt/mycephfs
If you have multiple file systems on your cluster you would need to pass
-``--client_mds_namespace {fs-name}`` to the ``ceph-fuse`` command::
+``--client_fs {fs-name}`` to the ``ceph-fuse`` command::
- sudo ceph-fuse /mnt/mycephfs2 --client_mds_namespace mycephfs2
+ sudo ceph-fuse /mnt/mycephfs2 --client_fs mycephfs2
Refer `ceph-fuse man page`_ and `Mount CephFS using FUSE`_ to read more about
this.
fuse_cmd += ["--client_mountpoint={0}".format(mount_path)]
if mount_fs_name is not None:
- fuse_cmd += ["--client_mds_namespace={0}".format(mount_fs_name)]
+ fuse_cmd += ["--client_fs={0}".format(mount_fs_name)]
fuse_cmd += [
'--name', 'client.{id}'.format(id=self.client_id),
prefix += ["--client_mountpoint={0}".format(mount_path)]
if mount_fs_name is not None:
- prefix += ["--client_mds_namespace={0}".format(mount_fs_name)]
+ prefix += ["--client_fs={0}".format(mount_fs_name)]
self.fuse_daemon = self.client_remote.run(args=
prefix + [
std::string resolved_fs_name;
if (fs_name.empty()) {
- resolved_fs_name = cct->_conf.get_val<std::string>("client_mds_namespace");
+ resolved_fs_name = cct->_conf.get_val<std::string>("client_fs");
+ if (resolved_fs_name.empty())
+ // Try the backwards compatibility fs name option
+ resolved_fs_name = cct->_conf.get_val<std::string>("client_mds_namespace");
} else {
resolved_fs_name = fs_name;
}
.set_default(false)
.set_description(""),
- Option("client_mds_namespace", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+ Option("client_fs", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+ .set_flag(Option::FLAG_STARTUP)
.set_default("")
-
.set_description("CephFS file system name to mount")
.set_long_description("Use this with ceph-fuse, or with any process "
"that uses libcephfs. Programs using libcephfs may also pass "
"If no filesystem name is given in mount() or this setting, the default "
"filesystem will be mounted (usually the first created)."),
+ /* Alias for client_fs. Deprecated */
+ Option("client_mds_namespace", Option::TYPE_STR, Option::LEVEL_DEV)
+ .set_flag(Option::FLAG_STARTUP)
+ .set_default(""),
+
Option("fake_statfs_for_testing", Option::TYPE_INT, Option::LEVEL_DEV)
.set_default(0)
.set_description("Set a value for kb and compute kb_used from total of num_bytes"),
*
* An error will be returned if this libcephfs instance is already
* mounted. This function is an alternative to setting the global
- * client_mds_namespace setting. Using this function enables multiple
- * libcephfs instances in the same process to mount different filesystems.
+ * client_fs setting. Using this function enables multiple libcephfs
+ * instances in the same process to mount different filesystems.
*
* The filesystem name is *not* validated in this function. That happens
* during mount(), where an ENOENT error will result if a non-existent