Thursday, December 15, 2016

Veritas Cluster Server service in Solaris 10 reports "maintenance"

Problem

Attempting to enable the svc:/system/vcs:default service using svcadm enable vcs, the service transitions to maintenance.

Error Message

svc:/system/vcs:default (Veritas Cluster Server (VCS) Init service)
 State: maintenance since Thu Oct 14 12:15:57 2010
Reason: Start method failed repeatedly, last exited with status 2.
   See: http://sun.com/msg/SMF-8000-KS
   See: man -M /opt/VRTS/man/man1m/ -s 1M vcsconfig
   See: /var/svc/log/system-vcs:default.log
Impact: This service is not running.

Cause

This situation can occur if the '/etc/default/vcs' file is present, but the VCS_START variable has been set to '0' (i.e., do not start or stop VCS via svc:/system/vcs:default) explicitly in /etc/default/vcs.

Solution


Set VCS_START variable to '1' in /etc/default/vcs

LLT service in SMF is showing in maintenance state






After installing VCS on new node and trying to add it to existing cluster llt service may not start through SMF on new node. It will show LLT service is in maintenance status. Due to this rest of cluster services will not start during system boot
However, a manual start on LLT and GAB working fine.
Error Message

LLT service in SMF is showing in maintenance status.
# svcs -xv

svc:/system/llt:default (Veritas Low Latency Transport (LLT) Init service)

 State: maintenance since Thu Jul 29 13:40:32 2010

Reason: Start method failed repeatedly, last exited with status 2.

   See: http://sun.com/msg/SMF-8000-KS

   See: man -M /opt/VRTSllt/man/man1m/ -s 1M lltconfig

   See: /var/svc/log/system-llt:default.log

Impact: 3 dependent services are not running:

        svc:/system/gab:default

        svc:/system/vcs:default

        svc:/system/vxfen:default



LLT is in maintenance state even its dependencies are in Online states.
#svcs -l llt

fmri         svc:/system/llt:default

name         Veritas Low Latency Transport (LLT) Init service

enabled      true

state        maintenance

next_state   none

state_time   Fri Jul 30 02:09:03 2010

logfile      /var/svc/log/system-llt:default.log

restarter    svc:/system/svc/restarter:default

dependency   require_all/none svc:/system/filesystem/local (online)

dependency   optional_all/none svc:/network/initial (online)


Log file /var/svc/log/system-llt:default.log  is showing below errors.

[ Jul 30 02:13:17 Executing start method ("/lib/svc/method/llt start") ]
silent failure
[ Jul 30 02:13:17 Method "start" exited with status 2 ]
Cause

SMF uses /lib/svc/method/llt script to start LLT at boot time and same to stop at shutdown and it needs environment set in "/etc/default/llt"

# cat /etc/default/llt
#
# This file is sourced :
#       from /etc/init.d/llt            for Solaris < 2.10
#       from /lib/svc/method/llt        for Solaris 2.10
#
# Set the two environment variables below as follows:
#
#       1 = start or stop llt
#       0 = do not start or stop llt
#

LLT_START=0
LLT_STOP=0


If LLT_START is set equal to zero, SMF service does not start LLT service at boot time.

Solution

Modified /etc/default/llt and set LLT_START and LLT_STOP to ONE

# cat /etc/default/llt
#
# This file is sourced :
#       from /etc/init.d/llt            for Solaris < 2.10
#       from /lib/svc/method/llt        for Solaris 2.10
#
# Set the two environment variables below as follows:
#
#       1 = start or stop llt
#       0 = do not start or stop llt
#

LLT_START=1
LLT_STOP=1