A.11 NCPCON Mount Command for NCP and NSS Volumes

Use the ncpcon mount command to mount an NCP volume or NSS volume on your Linux server. This command makes the volume accessible to NCP clients.

A.11.1 Syntax

mount < all | volume_name | volume_name=volume_id,path=/volume_mntpoint > 

Replace volume_name with the name of the NSS volume or NCP volume, such as VOL1. To mount all local NCP and NSS volumes, replace volume_name with all. A clustered NCP volume or NSS volume is mounted when its cluster resource is brought online.

Replace volume_id with a value from 0 to 254 as the server volume ID. It is not necessary to manually specify a volume ID for a locally mounted volume. NCP automatically assigns unique volume IDs to locally mounted NCP volumes and NSS volumes in increasing order, from 0 to 254. IDs 0 and 1 are reserved for the sys and _admin volumes. When the command is used in a cluster resource script, the volume ID must be specified to ensure that the volume ID is unique across all cluster nodes where the volume will be mounted. By convention in clusters, the volume IDs are assigned in decreasing order, from 254 to 0.

A.11.2 NCP Volume Examples

For an NCP volume created on a Linux POSIX file system, replace /volume_mntpoint with the Linux path of the mount point for the NCP share. Typically, this path is mount point of the Linux volume; that is, the NCP share is created at the root of the Linux volume. The path must exist on all nodes in the cluster.

If an NCP volume is mounted locally, the mount path is stored in the /etc/fstab file, so it is not necessary to specify a mount path. For example:

ncpcon mount VOL1

The mount path for the NCP volume is required when you use the command in a cluster resource load script. For example, if you use NSSMU to create and NCP enable a clustered Linux LVM volume myvol with a mount point of /usr/novell/myvol, the NCP volume name (share name) is MYVOL, and the resource load script includes the following definitions for variables used in the command:

# define the mount point path of the Linux volume

# define the NCP volume name

exit_on_error ncpcon mount $NCP_VOL=253,path=$MOUNT_PATH

A.11.3 NSS Volume Examples

For an NSS volume, the default mount path is /media/nss/<nss_volume_name>. For example, if you create an NSS volume named USERS, the default mount path is /media/nss/USERS. If you use the default path for NSS volumes, it is not necessary to include the path option for local mounts:

ncpcon mount USERS

The default path is also not required in a cluster script, but a volume ID that is unique across all cluster nodes must be specified:

exit_on_error ncpcon mount USERS=252

In a cluster, you cannot rename the mount point path. The default mount point path of /media/nss/<volume_name> applies.

exit_on_error ncpcon mount <volumename>=<volume_ID>

For example:

exit_on_error ncpcon mount USERS=252

The volume is mounted at /media/nss/USERS.

You can specify mount options for the NSS volume by using the /opt switch in the command. For example, you can specify the name space to use by using the /opt=ns=<long|unix|dos|mac> command.

# specify the name space to use when mounting the volume
exit_on_error ncpcon mount USERS=252 /opt=ns=unix

A.11.4 Other Examples

ncpcon mount sys
ncpcon mount all