Managing Grid Engine SMF Services

Searching Sun Grid Engine 6.2

Sun Grid Engine Information Center
Administering Sun Grid Engine
Index


Managing Grid Engine SMF Services

See service names and changed behavior with SMF here.

Observing SMF Services

You can use svcs command to query services present on your system.

% svcs
STATE          STIME    FMRI
legacy_run     16:03:54 lrc:/etc/rcS_d/S29wrsmcfg
legacy_run     16:04:11 lrc:/etc/rc2_d/S47pppd
online         16:03:44 svc:/network/loopback:default
online         16:03:47 svc:/system/filesystem/root:default
online         16:03:47 svc:/system/scheduler:default
online         16:03:47 svc:/system/boot-archive:default
online         16:03:48 svc:/system/filesystem/usr:default
online         16:03:49 svc:/network/physical:default
online         16:03:49 svc:/milestone/network:default
...

To query Grid Engine services, you can use mask "*sge*":

% svcs "*sge*"
online         16:03:47 svc:/application/sge/qmaster:prod_cluster
online         16:03:47 svc:/application/sge/qmaster:test_cluster
online         16:03:47 svc:/application/sge/execd:prod_cluster
online         16:03:47 svc:/application/sge/execd:test_cluster

To get a more information about single service use svcs -l <FMRI>:

% svcs -l qmaster:prod_cluster
fmri         svc:/application/sge/qmaster:prod_cluster
name         Sun Grid Engine - QMaster service
enabled      true
state        online
next_state   none
state_time   Sun May 19 21:28:39 2008
logfile      /var/svc/log/application-sge-qmaster:prod_cluster.log
restarter    svc:/system/svc/restarter:default
contract_id  4912 
dependency   require_all/none svc:/milestone/network (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)

You can see that each SMF service has an additional log file. This log file contains information related to the SMF framework and can contain many useful information when service fails.

Controlling SMF services

You may use svcadm command to enable (start), disable (stop) or restart any SMF service. You must have appropriate permissions (solaris.smf.manage.*) to do so (typically root).

Starting qmaster service (will be started on reboot):

% svcadm enable qmaster:prod_cluster

Stopping qmaster service just for now (will be started on reboot):

% svcadm disable -t qmaster:prod_cluster

Stopping qmaster service (will NOT be started on reboot):

% svcadm disable qmaster:prod_cluster

Start qmaster service until next reboot:

% svcadm enable -t qmaster:prod_cluster

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact