Novell Home

My Favorites

Close

Please to see your favorites.

Novell CIFS on a cluster node creates a default share for each mounted NSS volume.

This document (7011321) is provided subject to the disclaimer at the end of this document.

Environment

Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 1
Novell Cluster Services 1.8.4

Situation

Running Novell CIFS on a OES2 / OES11 cluster node advertises default shares for NSS volumes of resources, where the CIFS protocol has not been enabled.
 
When a user-defined CIFS share of a virtual server is identical to the name of the NSS volume of the corresponding resource, then Novell CIFS does not advertise this user-defined share, but the default share for NSS volume instead.

Resolution

When  the creation of a default CIFS share for a NSS volume of a cluster resource is not desired, please insert the following line in the Resource Load Script after the statement : "exit_on_error ncpcon mount {VOLUME_NAME}={VOLUME_ID}" :

ignore_error COUNTER=1; SHARE=`novcifs -sl | grep -o "{VOLUME_NAME}"`; while test "$SHARE" != "{VOLUME_NAME}" -a $COUNTER -le 5; do SHARE=`novcifs -sl | grep -o "{VOLUME_NAME}"`; sleep 3; COUNTER=`expr $COUNTER + 1`; done; novcifs -srn {VOLUME_NAME}


Please note that for each occurrence of the string '{VOLUME_NAME}' in the above line should be replaced with the name of the NSS volume, which is also used in the preceding the 'exit_on_error ncpcon mount {VOLUME_NAME}' statement.

When the CIFS protocol has been enabled with the cluster resource and the name of a user-defined share of the corresponding virtual server is the same as the NSS volume of the resource, then the line should be inserted after the statement "exit_on_error ncpcon mount {VOLUME_NAME}={VOLUME_ID}" and before the statement "exit_on_error novcifs --add '--vserver="{FDN_OF_VIRTUAL_SERVER_OBJECT}"' --ip-addr={CLUSTER_RESPOURCE_IP_ADDRESS}".


For example:

Assuming the resource load script for cluster resource 'CIFS_SERVER' has the following contents:

#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
exit_on_error nss /poolact=CIFS
exit_on_error ncpcon mount CIFSVOL=254
exit_on_error add_secondary_ipaddress 192.168.1.10
exit_on_error ncpcon bind --ncpservername=CLUSTER_CIFS_SERVER --ipaddress=192.168.1.10
exit_on_error novcifs --add '--vserver=".cn=CLUSTER_CIFS_SERVER.o=novell.t=TEST."' --ip-addr=192.168.1.10
exit 0

Then it should look like below after having inserted the suggested line :

#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
exit_on_error nss /poolact=CIFS
exit_on_error ncpcon mount CIFSVOL=254
exit_on_error add_secondary_ipaddress 192.168.1.10
exit_on_error ncpcon bind --ncpservername=CLUSTER_CIFS_SERVER --ipaddress=192.168.1.10
ignore_error COUNTER=1; SHARE=`novcifs -sl | grep -o "CIFSVOL"`; while test "$SHARE" != "CIFSVOL" -a $COUNTER -le 5; do SHARE=`novcifs -sl | grep -o "CIFSVOL"`; sleep 3; COUNTER=`expr $COUNTER + 1`; done; ignore_error novcifs -srn CIFSVOL
exit_on_error novcifs --add '--vserver=".cn=CLUSTER_CIFS_SERVER.o=novell.t=TEST."' --ip-addr=192.168.1.10
exit 0

Cause

When a NSS volume is mounted on an OES for Linux host, ndsd informs cifsd about the mounted volume per /tmp/.ncp2cifs Unix Domain Socket.

As soon as cifsd has been informed by ndsd about the mounted NSS volume, cifsd will create a default share for the volume. The name of the default share is the same as the name of the volume.

Hence, on a cluster node, all mounted NSS volumes are shared by cifsd, regardless to whether the CIFS protocol has been enabled with the cluster resources of the NSS volumes.

In addition, when the CIFS protocol has been enabled for a cluster resource, and user-defined CIFS shares have been configured with the corresponding virtual server object, cifsd will not use the user-defined share, if the name of the user-defined share is the same as the name of the NSS volume. It will only create the default share for the volume instead.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7011321
  • Creation Date:07-NOV-12
  • Modified Date:08-NOV-12
    • NovellCluster Services
      Open Enterprise Server

Did this document solve your problem? Provide Feedback