Novell Cluster Services can be configured either during or after OES installation. In a cluster, Novell CIFS for OES is available only in Active/passive mode, which means that CIFS software runs on all nodes in the cluster. When a server fails, the cluster volumes that were mounted on the failed server fail over to that other node. The following sections give details about using Novell CIFS in a cluster environment:
Before setting up Novell CIFS in a cluster environment, ensure that you meet the following prerequisites:
Novell Cluster Services installed on OES 2015 SP1 servers
For information on installing Novell Cluster Services, see Installing, Configuring, and Repairing Novell Cluster Services
in the OES 2015 SP1: Novell Cluster Services for Linux Administration Guide.
For information on managing Novell Cluster Services, see Managing Clusters
in the OES 2015 SP1: Novell Cluster Services for Linux Administration Guide.
Novell CIFS is installed on all the nodes in the cluster to provide high availability
Follow the instructions in Section 4.1, Installing CIFS during the OES Installation and Section 4.2, Installing CIFS after the OES Installation.
Keep in mind the following considerations when you prepare to use CIFS in a cluster.
Novell CIFS is not cluster-aware and is not clustered by default. You must install and configure Novell CIFS on every node in the cluster where you plan to give users CIFS access to the shared cluster resource.
Novell CIFS runs on all nodes in the cluster at any given time.
Novell CIFS is started at boot time on each node in the cluster. A CIFS command is added to the load script and unload script for the shared cluster resource. This allows Novell CIFS to provide or not to provide access to the shared resource through Virtual server IP.
NOTE:In CIFS, all the nodes should have similar server configuration, such as contexts and authentication mode.
The following process indicates how CIFS is enabled and used in a cluster environment:
Creating Shared Pools: To access the shared resources in the cluster environment through the CIFS protocol, you create the shared pools either by using the NSSMU utility, the iManager tool, or the Novell Linux Volume Manager utility.
For requirements and details about configuring shared NSS pools and volumes on Linux, see Configuring and Managing Cluster Resources for Shared NSS Pools and Volumes
in the OES 2015 SP1: Novell Cluster Services for Linux Administration Guide.
For details on creating a pool using Novell Linux Manager using the nlvm create pool command, see NLVM Commands
in the OES 2015 SP1: NLVM Reference.
Creating a Virtual Server: When you cluster-enable an NSS pool, an NCS:NCP Server object is created for the virtual server. This contains the virtual server IP address, the virtual server name, and a comment.
Creating a CIFS Virtual Server: When you cluster-enable an NSS pool and enable that pool for CIFS by selecting CIFS as an advertising protocol, a virtual CIFS server is added to eDirectory. This is the name the CIFS clients use to access the virtual server.
Configuring Monitor Script: Configure resource monitoring to let the cluster resource failover to the next node in the preferred nodes list.
When rcnovell-cifs monitor is invoked, it does the following:
Returns the status of CIFS, if CIFS is already running.
Starts a new instance of CIFS and returns status, if CIFS is not running (dead/etc.).
Each time the monitor script detects that the CIFS service is down and starts the service, a message in the following format is logged in the /var/log/messages file:
CIFS: Monitor routine, in novell-cifs init script, detected CIFS not running,starting CIFS
For more information, see Configuring a Monitor Script for the Shared NSS Pool
in the OES 2015 SP1: Novell Cluster Services for Linux Administration Guide
IMPORTANT: Set the number of Maximum Local Failures permitted to 0. This ensures that if the CIFS server crashes, cluster services will trigger an immediate failover of the resource.
Loading the CIFS Service: When you enable CIFS for a shared NSS pool and when Novell CIFS is started at system boot, the following line is automatically added to the cluster load script for the pool's cluster resource:
novcifs --add --vserver=virtualserverFDN --ip-addr=virtualserverip
For example, novcifs --add '--vserver=".cn=CL-POOL-SERVER.o=novell.t=VALTREE."' --ip-addr=10.10.10.10
This command is executed when the cluster resource is brought online on an active node. You can view the load script for a cluster resource by using the clusters plug-in for iManager. Do not manually modify the load script.
Unloading the CIFS Service: When you CIFS-enable for a shared NSS pool, the following line is automatically added to the cluster unload script for the pool's cluster resource:
novcifs --remove --vserver=virtualserverFDN --ip-addr=virtualserverip
For example, novcifs --remove '--vserver=".cn=CL-POOL-SERVER.o=novell.t=VALTREE."' --ip-addr=10.10.10.10
This command is executed when the cluster resource is taken offline on a node. The virtual server is no longer bound to the Novell CIFS service on that node. You can view the unload script for a cluster resource by using the clusters plug-in for iManager. Do not manually modify the unload script.
CIFS Attributes for the Virtual Server: When you CIFS-enable a shared NSS pool, the following CIFS attributes are added to the NCS:NCP Server object for the virtual server:
nfapCIFSServerName (read access)
nfapCIFSAttach (read access)
nfapCIFSComment (read access)
The CIFS virtual server uses these attributes. The CIFS server proxy user must have default ACL access rights to these attributes, access rights to the virtual server, and be in the same context as the CIFS virtual server.
NOTE:If the CIFS server proxy user is in a different context, the cluster administrator should give access to these virtual server attributes for the proxy user.
This section describes the rights management in cluster. It explains the rights required in CIFS and explains with an example.
In a cluster, each cluster node can have an assigned CIFS Proxy User identity that is used to communicate with eDirectory. As a best practice, the CIFS Proxy User is in the same eDirectory context as the NCP Server object. Typically, this context is the OU where you create the cluster and its cluster resources. If Common Proxy User is selected, the proxy user is always created in the same context as cluster node.
When you add CIFS as an advertising protocol for a cluster pool resource (enabling CIFS on shared NSS pool), the NCS:NCP Server object for the cluster resource will be treated as a CIFS virtual Server object. Following CIFS specific attributes are added to the CIFS virtual server object:
nfapCIFSServerName (read access)
nfapCIFSAttach (read access)
nfapCIFSShares (read access)
nfapCIFSComment (read access)
The CIFS proxy user must have default ACL access rights to these attributes and be in the same context as the CIFS virtual server object.
Apart from the above mentioned CIFS specific attributes, CIFS proxy user must have read access on following attributes of CIFS virtual server object:
NCS:Netware Cluster
NCS:Volume
If you want to do Active Directory integration for the cluster resource, CIFS proxy user must have read access on the "Resource" attribute of CIFS virtual server object and read access on the "Host server" attribute of cluster pool object.
You can grant these rights plus the inherit right at the OU level of the context that contains the cluster. This allows the rights to be inherited automatically for each CIFS Virtual Server object that gets created in the cluster when the CIFS Proxy User is in the same eDirectory context. If the CIFS Proxy Users are not in the same context as the CIFS Virtual Server object, you can set the rights at a higher OU level that includes the contexts for proxy users and the contexts for the CIFS Virtual Server objects. You can alternatively grant the rights for each CIFS Proxy User on the CIFS attributes on every CIFS Virtual Server object. To simplify the rights configuration, you can create an eDirectory group with members being the CIFS Proxy Users of the nodes in the cluster, and then grant the rights for the group.
The following sample use case explains the rights management in clusters.
The CIFS proxy user 1, CIFS proxy user 2, and CIFS proxy user 3 have rights to read the eDirectory CIFS attributes under ou=blr ( CIFS Virtual Server Object 1 and CIFS Virtual Server Object 2). Hence if these virtual servers are hosted in any of these three nodes, the configuration is read by the CIFS service in the corresponding node.
Set up the cluster and add nodes to it.
Install Novell CIFS on each node.
Configure a clustername_CIFS_PROXY_USER_GROUP in eDirectory and add the CIFS Proxy user of each node in the cluster as a member.
Grant the group the eDir read, write, compare, and inherit rights for the CIFS attributes at the cluster OU level.
Configure a pool cluster resource and enable CIFS to create the CIFS Virtual Server object for the resource.
Verify that the CIFS Proxy User on each node is able to read the CIFS attributes and CIFS works as intended.