A.9 ncs_ncpserv.py Script (Creating an NCP Virtual Server Object for a Clustered LVM Volume Group)

The /opt/novell/ncs/bin/ncs_ncpserv.py script creates a virtual NCP Server object (NCS:NCP Server) in eDirectory, and associates it with none, one, or multiple NCP volumes that you specify. It automatically renames the NCP Volume objects to use the cluster name instead of the server name where the NCP volume was created. NCP clients access files on the Linux POSIX volume via the virtual server name.

A.9.1 Syntax

At the command prompt on the master node of the cluster, enter the following command as the root user:

/opt/novell/ncs/bin/ncs_ncpserv.py -c <lx_volume_name> -i <resource_ip_address> 
     [-v <ncp_volume_name| "ncp_volume_name1:ncp_volume_name2:..."> ]

A.9.2 Options

-c <lx_volume_name>

Create a virtual NCP Server object for the specified volume.

-i <resource_ip_address>

Specify a unique static IP address to use for the cluster resource.

-v <ncp_volume_name | "ncp_volume_name1:ncp_volume_name2:...">

Use this option to specify one or multiple volumes on the Linux cluster resource that need a virtual NCP Server object to be created and bound to the specified IP address. If the -v option is not specified, all of the NCP volumes that currently exist on the Linux POSIX cluster resource are bound to the IP address.

If you enter multiple volume names, use colons to delimit the names and put quotation marks around the list of names. Volume names can be listed by the volume name (MY_NNCP_VOL06) or by the volume distinguished name (cn=CLUS_02_MY_NNCP_VOL06,o=novell), or any combination of the two methods.

A.9.3 Examples

In the following examples, the resource IP address is 10.10.10.44, the cluster name is cluster1 and the cluster context is ou=clusters,o=mycompany.

Example 1

To specify a single NCP volume named USERS on the lxvol44 cluster resource, enter

./ncs_ncpserv.py -c lxvol44 -i 10.10.10.44 -v USERS

The following confirmation message is displayed:

NCP Server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' created.

Object 'cn=servername_USERS,ou=clusters,o=mycompany' renamed to 'cn=cluster1_USERS,ou=clusters,o=mycompany'.
The volume name you need to use in the scripts is: USERS
NCP server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' and volume 'cn=cluster1_USERS,ou=clusters,o=mycompany' are linked with each other.

Example 2

To specify multiple NCP volumes on the lxvol44 cluster resource, enter

./ncs_ncpserv.py -c lxvol44 -i 10.10.10.44 -v "USERS:MY_NCP_VOL06:cn=servername_MY_NCP_VOL07,ou=clusters,o=novell"

The following confirmation message is displayed:

NCP Server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' created.

Object 'cn=servername_USERS,ou=clusters,o=mycompany' renamed to 'cn=cluster1_USERS,ou=clusters,o=mycompany'.
The volume name you need to use in the scripts is: USERS
NCP server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' and volume 'cn=cluster1_USERS,ou=clusters,o=mycompany' are linked with each other.

Object 'cn=servername_MY_NCP_VOL06,ou=clusters,o=mycompany' renamed to 'cn=cluster1_MY_NCP_VOL06,ou=clusters,o=mycompany'.
The volume name you need to use in the scripts is: MY_NCP_VOL06
NCP server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' and volume 'cn=cluster_MY_NCP_VOL06,ou=clusters,o=mycompany' are linked with each other.

Object 'cn=servername_MY_NCP_VOL07,ou=clusters,o=mycompany' renamed to 'cn=cluster1_MY_NCP_VOL07,ou=clusters,o=mycompany'.
The volume name you need to use in the scripts is: MY_NCP_VOL07
NCP server 'cn=cluster1_lxvol44_server,ou=clusters,o=mycompany' and volume 'cn=cluster_MY_NCP_VOL07,ou=clusters,o=mycompany' are linked with each other.