NFS services for Solaris 10 report as UNKNOWN state for the service in Veritas Cluster Server (VCS)

book

Article ID: 100017599

calendar_today

Updated On:

Cause

  • On Solaris 10, the Solaris Management Facility controls NFS services, causing the report of the UNKNOWN state.
  • Starting with Solaris 10, services are no longer controlled by the use of run control(rc) scripts. Instead, services are handled by the Service Management Facility(SMF) which starts services in parallel according to dependencies. This allows the system to boot faster and reduces dependency conflicts.

What does this mean to Veritas Cluster Server users?
 
  • All service configuration information, including NFS Lock daemons, are under SMF control
  • Therefore,they must be taken out of SMF control so VCS can control the service.
  • If the service is not released from SMF control, VCS returns an UNKNOWN state for that particular service.

Resolution

 
All services and their state are kept in a configuration repository. This information can be accessed using the svcs command:

# svcs -a

* Without '-a' the svcs command shows only services which are running or available.
 
  • To remove a service from the configuration repository, use the svccfg delete command.

Example:

#svcs -a | grepnfs
online        May_12  svc:/network/nfs/cbd:default
online        May_12  svc:/network/nfs/client:default
online        May_12  svc:/network/nfs/status:default
online        May_12  svc:/network/nfs/nlockmgr:default
online        May_12  svc:/network/nfs/server:default
online        May_12  svc:/network/nfs/mapid:default
online        May_12   svc:/network/nfs/rquota:default

 
  • To remove the NFS service from SMF control, issue the following commands:

# svccfg delete-f svc: /network/nfs/server:default
#svccfg delete -fsvc:/network/status:default
# svccfgdelete -f svc: /network/nfs/nlockmgr
 
  • Manually restart lockd, statd, and automountd after removing them from SMF control:

#/usr/lib/nfs/lockd &
#/usr/lib/nfs/statd &
#/usr/lib/autofs/automountd &

 
  • To put NFS back under SMF control restore the repository:

#/lib/svc/bin/restore_repository
#boot -seed-
 
 

 

Issue/Introduction

On a Solaris cluster using Veritas Cluster Server (VCS), at times the NFS services would report an UNKNOWN state for the service.