@@ -82,24 +82,43 @@ Mount Syntax
82
82
83
83
The basic mount syntax is::
84
84
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]]
86
86
87
87
You only need to specify a single monitor, as the client will get the
88
88
full list when it connects. (However, if the monitor you specify
89
89
happens to be down, the mount won't succeed.) The port can be left
90
90
off if the monitor is using the default. So if the monitor is at
91
91
1.2.3.4::
92
92
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
94
94
95
95
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)::
97
99
100
+ # mount -t ceph cephuser@cephfs=/ /mnt/ceph -o mon_addr=mon-addr
98
101
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.
99
110
100
111
Mount Options
101
112
=============
102
113
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
+
103
122
ip=A.B.C.D[:N]
104
123
Specify the IP and/or port the client should bind to locally.
105
124
There is normally not much reason to do this. If the IP is not
0 commit comments