@@ -9,10 +9,10 @@ SMB Service
99.. warning ::
1010
1111 SMB support is under active development and many features may be
12- missing or immature. Additionally, a Manager module to automate
13- SMB clusters and SMB shares is in development. Once that feature
14- is developed it will be the preferred method for managing
15- SMB on ceph .
12+ missing or immature. A Ceph MGR module, named smb, is available to help
13+ organize and manage SMB related featues. Unless the smb module
14+ has been determined to be unsuitable for your needs we recommend using that
15+ module over directly using the smb service spec .
1616
1717
1818Deploying Samba Containers
@@ -78,6 +78,7 @@ features
7878 An empty list is valid. Supported terms:
7979
8080 * ``domain ``: Enable domain member mode
81+ * ``clustered ``: Enable Samba native cluster mode
8182
8283config_uri
8384 A string containing a (standard or de-facto) URI that identifies a
@@ -109,6 +110,30 @@ include_ceph_users:
109110 The cephx keys for each user in the list will automatically be added to
110111 the keyring in the container.
111112
113+ cluster_meta_uri:
114+ A string containing a URI that identifies where the cluster structure
115+ metadata will be stored. Required if ``clustered `` feature is set. Must be
116+ a RADOS pseudo-URI.
117+
118+ cluster_lock_uri:
119+ A string containing a URI that identifies where Samba/CTDB will store a
120+ cluster lock. Required if ``clustered `` feature is set. Must be a RADOS
121+ pseudo-URI.
122+
123+
124+ .. note ::
125+
126+ If one desires clustering between smbd instances (also known as
127+ High-Availability or "transparent state migration") the feature flag
128+ ``clustered `` is needed. If this flag is not specified cephadm may deploy
129+ multiple smb servers but they will lack the coordination needed of an actual
130+ Highly-Avaiable cluster. When the ``clustered `` flag is specified cephadm
131+ will deploy additional containers that manage this coordination.
132+ Additionally, the cluster_meta_uri and cluster_lock_uri values must be
133+ specified. The former is used by cephadm to describe the smb cluster layout
134+ to the samba containers. The latter is used by Samba's CTDB component to
135+ manage an internal cluster lock.
136+
112137
113138Configuring an SMB Service
114139--------------------------
@@ -134,7 +159,7 @@ it accepts.
134159When one has composed a configuration it should be stored in a location
135160that the Samba Container can access. The recommended approach for running
136161Samba Containers within Ceph orchestration is to store the configuration
137- in the Ceph cluster. There are two ways to store the configuration
162+ in the Ceph cluster. There are a few ways to store the configuration
138163in ceph:
139164
140165RADOS
@@ -202,9 +227,5 @@ A non-exhaustive list of important limitations for the SMB service follows:
202227 configured so that it can resolve the Active Directory (AD) domain or the
203228 ``custom_dns `` option may be used. In both cases DNS hosts for the AD domain
204229 must still be reachable from whatever network segment the ceph cluster is on.
205- * Proper clustering/high-availability/"transparent state migration" is not yet
206- supported. If a placement causes more than service to be created these
207- services will act independently and may lead to unexpected behavior if clients
208- access the same files at once.
209230* Services must bind to TCP port 445. Running multiple SMB services on the same
210231 node is not yet supported and will trigger a port-in-use conflict.
0 commit comments