ncpcon nss resync=<VOLUME-NAME> ... FAILED completion

  • 7013350
  • 23-Sep-2013
  • 12-Mar-2020

Environment

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

Situation

Error: "... FAILED completion" when executing "ncpcon nss resync=<VOLUME-NAME>" from a terminal screen
Error: "Invalid command -- type help for a list of supported commands" when executing "nss resync=<VOLUME-NAME>" from ncpcon screen.
Error: "setupNSSVolumes: unable insert NSS volume <VOLUME-NAME> duplicate name" in /var/opt/novell/log/ncpserv.log.
Error: "Volume <VOLUME-NAME> is a NSS volume - remove from ncp server config file" in /var/opt/novell/log/ncpserv.log.
Error: "nssVolumeResynchronize: resyncronize volume <VOLUME-NAME> is not NSS" in /var/opt/novell/log/ncpcon.log.
Error: "nssVolumeResynchronize: resyncronize volume <VOLUME-NAME> failed rc=22" in /var/opt/novell/log/ncpcon.log.

The /etc/opt/novell/ncpserv.conf file contains the following:

VOLUME sys /usr/novell/sys
VOLUME APPS /media/nss/APPS
VOLUME DATA /media/nss/DATA
VOLUME SALES /export/local/sales
VOLUME PS /media/nss/PS
NCP_FILE_SERVER_NAME FileServer1

Resolution

If /etc/opt/novell/ncpserv.conf contain "VOLUME" lines that reference existing nss volumes, remove those lines. NSS volumes will be in the /media/nss path.  DO NOT remove VOLUME lines that reference sys, or other POSIX volumes that are being mounted via ncp.  Save the changed file, and reboot.

For example, the /etc/opt/novell/ncpserv.conf file above needs to be changed from:

VOLUME sys /usr/novell/sys
VOLUME APPS /media/nss/APPS
VOLUME DATA /media/nss/DATA
VOLUME SALES /export/local/sales
VOLUME PS /media/nss/PS
NCP_FILE_SERVER_NAME FileServer1


to

VOLUME sys /usr/novell/sys
VOLUME SALES /export/local/sales
NCP_FILE_SERVER_NAME FileServer1


In this case the APPS, DATA and PS volumes are NSS volumes and should not be included in the NCP configuration.

Cause

Nss volumes are automatically mounted via ncp before ncpserv.conf is processed.  They must not be entered in ncpserv.conf.