Skip to content

Commit e1b9eb5

Browse files
vshankaridryomov
authored andcommitted
doc: document new CephFS mount device syntax
Signed-off-by: Venky Shankar <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 2167f2c commit e1b9eb5

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

Documentation/filesystems/ceph.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,43 @@ Mount Syntax
8282

8383
The basic mount syntax is::
8484

85-
# mount -t ceph monip[:port][,monip2[:port]...]:/[subdir] mnt
85+
# mount -t ceph [email protected]_name=/[subdir] mnt -o mon_addr=monip1[:port][/monip2[:port]]
8686

8787
You only need to specify a single monitor, as the client will get the
8888
full list when it connects. (However, if the monitor you specify
8989
happens to be down, the mount won't succeed.) The port can be left
9090
off if the monitor is using the default. So if the monitor is at
9191
1.2.3.4::
9292

93-
# mount -t ceph 1.2.3.4:/ /mnt/ceph
93+
# mount -t ceph [email protected]=/ /mnt/ceph -o mon_addr=1.2.3.4
9494

9595
is sufficient. If /sbin/mount.ceph is installed, a hostname can be
96-
used instead of an IP address.
96+
used instead of an IP address and the cluster FSID can be left out
97+
(as the mount helper will fill it in by reading the ceph configuration
98+
file)::
9799

100+
# mount -t ceph cephuser@cephfs=/ /mnt/ceph -o mon_addr=mon-addr
98101

102+
Multiple monitor addresses can be passed by separating each address with a slash (`/`)::
103+
104+
# mount -t ceph cephuser@cephfs=/ /mnt/ceph -o mon_addr=192.168.1.100/192.168.1.101
105+
106+
When using the mount helper, monitor address can be read from ceph
107+
configuration file if available. Note that, the cluster FSID (passed as part
108+
of the device string) is validated by checking it with the FSID reported by
109+
the monitor.
99110

100111
Mount Options
101112
=============
102113

114+
mon_addr=ip_address[:port][/ip_address[:port]]
115+
Monitor address to the cluster. This is used to bootstrap the
116+
connection to the cluster. Once connection is established, the
117+
monitor addresses in the monitor map are followed.
118+
119+
fsid=cluster-id
120+
FSID of the cluster (from `ceph fsid` command).
121+
103122
ip=A.B.C.D[:N]
104123
Specify the IP and/or port the client should bind to locally.
105124
There is normally not much reason to do this. If the IP is not

0 commit comments

Comments
 (0)