[GE users] SGE SMF manifest

Peter Eriksson peter at ifm.liu.se
Fri Jan 18 07:58:21 GMT 2008


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Please find enclosed the SMF manifest I use here. You'll need to
search&replace "/pkg/sge/current" with your path to the SGE root.

- Peter


Mulley, Nikhil wrote:
> [I am changing the subject to reflect the topic, for the later ease of
> better search results]
> 
> I know, in 6.2 release scheduler is going to be integrated into the
> qmaster as the thread, that is going to ease some extent of handling the
> SMF way of the SGE binaries. 
> 
> I would really love to see the SMF manifest specification for the SGE,
> perhaps for my SGE v6.1 installation.
> I am hating to see my scheduler going awry and dying these days and it
> is bad to realize it at some point later myself to give kick in the
> scheduler. It would have been really useful to have the scheduler
> automatically start itself cause of courtesy SMF.
> 
> I am in the process of writing a manifest myself for SGE v6.1, but it
> would be really useful to see if somework has been done already on this
> that I could entail in my version of the document.
> 
> Andreas/Lubos, could you please redirect me to the specification
> document, if possible.
> 
> Thanks again,
> Nikhil
> 
> -----Original Message-----
> From: Lubomir.Petrik at Sun.COM [mailto:Lubomir.Petrik at Sun.COM] 
> Sent: Thursday, January 17, 2008 5:54 PM
> To: users at gridengine.sunsource.net
> Subject: Re: [GE users] FW: [GE cvs] CVS update: /gridengine/,
> /gridengine/source/dist/util/install_modules/
> 
> Hi,
> real SMF support for earlier SGE releases is not properly achievable in 
> my opinion. One could probably use SMF support and startup scripts for 
> 6.2 with 6.1, but especially execd would not behave properly. I do not 
> recommend to try to do it.
> 
> Lubos.
> 
> Andreas.Haas at Sun.COM wrote:
>> Hi Nikhil,
>>
>> acutally with upcoming 6.2 SMF will be supported anyways on Solaris 
>> 10. Whether one could tweak this in a way that it becomes somehow 
>> applicable (manifests) for earlier SGE releases I can not judge, but 
>> there is a specification document that describes also details of the 
>> implementation. As of now this specification is not publicly 
>> available, but there is no reason not to publish it.
>>
>> Regards,
>> Andreas
>>
>>
>> On Wed, 16 Jan 2008, Mulley, Nikhil wrote:
>>
>>> Hi,
>>>
>>> So, is it like we can expect SMF support for the sge.. That's really
>>> great. Which version would support it?
>>> Are there any live manifests in place yet? Could someone please point
> me
>>> to more of these things? I am really interested in making SGE SMF
>>> compliant.
>>>
>>> Thanks,
>>> Nikhil
>>>
>>>
>>> -----Original Message-----
>>> From: petrik at sunsource.net [mailto:petrik at sunsource.net]
>>> Sent: Wednesday, January 16, 2008 9:48 PM
>>> To: cvs at gridengine.sunsource.net
>>> Subject: [GE cvs] CVS update: /gridengine/,
>>> /gridengine/source/dist/util/install_modules/
>>>
>>> User: petrik
>>> Date: 2008-01-16 08:18:21-0800
>>> Modified:
>>>   gridengine/Changelog
>>>   gridengine/source/dist/util/install_modules/inst_common.sh
>>>
>>> Log:
>>> LP-2008-01-16-0: Bugfix:   SMF was used in autoinstall with missing
>>> SGE_ENABLE_SMF
>>>                  Review:  CR
>>>
>>> File Changes:
>>>
>>> Directory: /gridengine/
>>> =======================
>>>
>>> File [changed]: Changelog
>>> Url:
>>>
> http://gridengine.sunsource.net/source/browse/gridengine/Changelog?r1=1.
>>> 4079&r2=1.4080
>>> Delta lines:  +3 -0
>>> -------------------
>>> --- Changelog    2008-01-16 08:03:09-0800    1.4079
>>> +++ Changelog    2008-01-16 08:18:18-0800    1.4080
>>> @@ -1,3 +1,6 @@
>>> +LP-2008-01-16-0: Bugfix:    SMF was used in autoinstall with missing
>>> SGE_ENABLE_SMF
>>> +                 Review:    CR
>>> +
>>> EB-2008-01-16-0: Enhancem.: Added missing qconf manpage entries
>>>                  Review:    JG
>>>
>>>
>>> Directory: /gridengine/source/dist/util/install_modules/
>>> ========================================================
>>>
>>> File [changed]: inst_common.sh
>>> Url:
>>>
> http://gridengine.sunsource.net/source/browse/gridengine/source/dist/uti
>>> l/install_modules/inst_common.sh?r1=1.111&r2=1.112
>>> Delta lines:  +18 -0
>>> --------------------
>>> --- inst_common.sh    2008-01-14 06:26:27-0800    1.111
>>> +++ inst_common.sh    2008-01-16 08:18:19-0800    1.112
>>> @@ -525,6 +525,9 @@
>>> #
>>> GetConfigFromFile()
>>> {
>>> +  SGE_ENABLE_SMF_LAST=$SGE_ENABLE_SMF
>>> +  SGE_ENABLE_SMF=""
>>> +
>>>   IFS="
>>> "
>>>   if [ $FILE != "undef" ]; then
>>> @@ -536,6 +539,12 @@
>>>   IFS="
>>> "
>>>    CheckConfigFile
>>> +
>>> +   #-nosmf takes precedence over the value in the autoinstall
> template
>>> +   if [ "$SGE_ENABLE_SMF_LAST" = false ]; then
>>> +      SGE_ENABLE_SMF=false;
>>> +   fi
>>> +
>>>    if [ "$BACKUP" = "false" ]; then
>>>       SGE_CELL=$CELL_NAME
>>>       DB_SPOOLING_SERVER=`ResolveHosts $DB_SPOOLING_SERVER`
>>> @@ -599,6 +608,15 @@
>>>       exit 1
>>>    fi
>>>
>>> +   if [ "$SGE_SMF_ENABLE" = "" ]; then
>>> +      $INFOTEXT -log "The SGE_SMF_ENABLE has not been set in config
>>> file!\n"
>>> +      #If -nosmf was specified we don't require the SGE_SMF_ENABLE
> to
>>> be set
>>> +      if [ "$SGE_SMF_ENABLE_LAST" != false ]; then
>>> +         MoveLog
>>> +         exit 1
>>> +      fi
>>> +   fi
>>> +
>>>    if [ "$SGE_ENABLE_JMX" = true ]; then
>>>       if [ -z "$JMX_PORT" -o -z "$SGE_JVM_LIB_PATH" ]; then
>>>          $INFOTEXT -log "The JMX_PORT or SGE_JVM_LIB_PATH has not
> been
>>> set in config file!\n"
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: cvs-unsubscribe at gridengine.sunsource.net
>>> For additional commands, e-mail: cvs-help at gridengine.sunsource.net
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>>
>>>
>> http://gridengine.info/
>>
>> Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 
>> Kirchheim-Heimstetten
>> Amtsgericht Muenchen: HRB 161028
>> Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland
> Boemer
>> Vorsitzender des Aufsichtsrates: Martin Haering
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 


    [ Part 1.2: "Attached Text" ]

<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<!--
	Copyright (c) 2008-01-18 Peter Eriksson (peter at ifm.liu.se)

	This manifest can be used to manage the SGE daemons using the 
	Solaris SMF subsystem.

	Import this manifest using: 

		svccfg -v import sge.xml
	
        Then activate the daemon with:

		svcadm enable network/sge:execd
		svcadm enable network/sge:qmaster
		svcadm enable network/sge:schedd
-->

<service_bundle type='manifest' name='sge'>

<service
	name='network/sge'
	type='service'
	version='1'>

	<!-- Need / & /usr filesystems mounted, /var mounted read/write -->
	<dependency
		name='fs-local'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/system/filesystem/local' />
	</dependency>

        <dependency
            name='network-service'
            grouping='require_all'
            restart_on='none'
            type='service'>
                <service_fmri value='svc:/network/service' />
        </dependency>

        <dependency
            name='name-services'
            grouping='require_all'
            restart_on='refresh'
            type='service'>
                <service_fmri value='svc:/milestone/name-services' />
        </dependency>
	
	<dependency
		name='fs-remote'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/system/filesystem/autofs' />
	</dependency>

	<exec_method
		type='method'
		name='stop'
		exec=':kill'
		timeout_seconds='30'>
	</exec_method>

	<instance name='execd' enabled='false'>
	<exec_method
		type='method'
		name='start'
		exec='env SGE_ROOT=/pkg/sge/current /pkg/sge/current/bin/sge_execd'
		timeout_seconds='60'>
	</exec_method>
	</instance>
	
	<instance name='qmaster' enabled='false'>
	<exec_method
		type='method'
		name='start'
		exec='env SGE_ROOT=/pkg/sge/current /pkg/sge/current/bin/sge_qmaster'
		timeout_seconds='60'>
	</exec_method>
	</instance>

	<instance name='schedd' enabled='false'>
	<dependency
		name='sge-qmaster'
		type='service'
		grouping='require_all'
		restart_on='none'>
		<service_fmri value='svc:/network/sge:qmaster' />
	</dependency>
	<exec_method
		type='method'
		name='start'
		exec='env SGE_ROOT=/pkg/sge/current /pkg/sge/current/bin/sge_schedd'
		timeout_seconds='60'>
	</exec_method>
	</instance>

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
			Sun Grid Engine
			</loctext>
		</common_name>
		<documentation>
			<manpage title='sge' section='1' manpath='/usr/share/man' />
		</documentation>
	</template>
</service>

</service_bundle>


    [ Part 2, "OpenPGP digital signature"  Application/PGP-SIGNATURE ]
    [ (Name: "signature.asc") 192 bytes. ]
    [ Unable to print this part. ]



More information about the gridengine-users mailing list