|
Sun Grid Engine Information Center Managing Grid Engine SMF ServicesSee service names and changed behavior with SMF here. Observing SMF ServicesYou 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 servicesYou 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 |