[GE users] Modifying Automatic Exec Host Installation Queue

Marco Donauer Marco.Donauer at Sun.COM
Mon Nov 19 08:35:32 GMT 2007


    [ 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. ]

Hello Jonathan,

nice to hear that the installation is working for your needs, now.

Regards,
Marco

Jonathan Pierce wrote:
> Hello Marco,
>
> Thank you very much, the modifications in inst_execd.sh were exactly 
> what we needed.  I've noted the inst_qmaster.sh info for future 
> (re)installs.
>
> Sincerely,
> Jonathan
>
> Jonathan Pierce
> System Administrator
> Laboratory of Neuro Imaging, UCLA
> 635 Charles E. Young Drive South, Suite 225
> Los Angeles, CA 90095-7332
> jonathan.pierce at loni.ucla.edu <mailto:jonathan.pierce at loni.ucla.edu>
>
>
> On Nov 14, 2007, at 1:18 AM, Marco Donauer wrote:
>
>> Forgot something.
>> See comment below
>>
>> Marco Donauer wrote:
>>> Hello Jonathan,
>>>
>>> I'm not sure to understand it right. You want to rename the default 
>>> queue? Is this right?
>>> Or are you planning to do an installation without the creation of 
>>> any queue? During the development of the automatic installation
>>> it was not planned to change the default queue name of all.q, but it 
>>> should be possible to implement this feature anytime.
>>> If you want to change the defaut name you have to change the 
>>> following lines:
>>>
>>> in file install_modules/inst_qmaster.sh:
>>>
>>> $INFOTEXT -u "\nCreating the default <all.q> queue and <allhosts> 
>>> hostgroup"
>>>  echo
>>>  $INFOTEXT -log "Creating the default <all.q> queue and <allhosts> 
>>> hostgroup"
>>>  TMPL=/tmp/hostqueue$$
>>>  TMPL2=${TMPL}.q
>>>  rm -f $TMPL $TMPL2
>>>  if [ -f $TMPL -o -f $TMPL2 ]; then
>>>     $INFOTEXT "\nCan't delete template files >%s< or >%s<" "$TMPL" 
>>> "$TMPL2"
>>>  else
>>>     PrintHostGroup @allhosts > $TMPL
>>>     Execute $SGE_BIN/qconf -Ahgrp $TMPL
>>>     Execute $SGE_BIN/qconf -sq > $TMPL
>>>     Execute sed -e "/qname/s/template/all.q/" \            <- change 
>>> the name here. the default all.q will be created at this 
>>> place,during qmaster installation
>>>                 -e "/hostlist/s/NONE/@allhosts/" \
>>>                 -e "/pe_list/s/NONE/make/" $TMPL > $TMPL2
>>>     Execute $SGE_BIN/qconf -Aq $TMPL2
>>>     rm -f $TMPL $TMPL2         fi
>>>
>>>
>> You will find this in file install_modules/inst_execd.sh:
>>> $INFOTEXT -u "\nAdding a queue for this host"
>>>  $INFOTEXT "\nWe can now add a queue instance for this host:\n\n" \
>>>            "   - it is added to the >allhosts< hostgroup\n" \
>>>            "   - the queue provides %s slot(s) for jobs in all 
>>> queues\n" \
>>>            "     referencing the >allhosts< hostgroup\n\n" \
>>>            "You do not need to add this host now, but before running 
>>> jobs on this host\n" \
>>>            "it must be added to at least one queue.\n" $slots
>>>
>>>  $INFOTEXT -auto $AUTO -ask "y" "n" -def "y" -n \ 
>>>                                         <- if you don't like to get 
>>> a default queue, you can switch the "y" of the -def to "n". This is 
>>> the default value of this question
>>>                                                                                                                                              during 
>>> the autoinstallation, always the default will be used, setting to 
>>> "n", no queue will be created.
>>>            "Do you want to add a default queue instance for this 
>>> host (y/n) [y] >> "
>>>  if [ $? = 0 ]; then
>>>     $SGE_BIN/qconf -aattr hostgroup hostlist $exechost @allhosts
>>>     $SGE_BIN/qconf -aattr queue slots "[$exechost=$slots]" all.q 
>>>                          <- the exechost will be added to the all.q, 
>>> creating the slots entry
>>>     $INFOTEXT -wait -auto $AUTO -n "\nHit <RETURN> to continue >> "
>>>     $CLEAR
>>>  fi
>>>
>>> Hope that helps.
>>>
>>> Best Regards,
>>> Marco
>>>
>>>
>>> Jonathan Pierce wrote:
>>>> Hello All,
>>>>
>>>> We've recently redefined our queues such that @all.q no longer 
>>>> exists.  Using the same auto.conf file we had before the change to 
>>>> install the exec hosts (./inst_sge -x -noremote -auto ./auto.conf) 
>>>> fails.  Here are the relevant lines from the log:
>>>>
>>>> root@[hostname] modified "@allhosts" in host group list
>>>> denied: cluster queue "all.q" does not exist
>>>> Execd on host [hostname] is not started!
>>>>
>>>> Looking in the auto.conf (generated from the default template), I 
>>>> wasn't able to find any lines referencing default queue.  Is there 
>>>> some way to configure the auto-installer (or perhaps some other 
>>>> area of SGE) such that the machine is joined to a different default 
>>>> queue?
>>>>
>>>> Thank you very much,
>>>> Jonathan
>>>>
>>>> Jonathan Pierce
>>>> System Administrator
>>>> Laboratory of Neuro Imaging, UCLA
>>>> 635 Charles E. Young Drive South, Suite 225
>>>> Los Angeles, CA 90095-7332
>>>> jonathan.pierce at loni.ucla.edu <mailto:jonathan.pierce at loni.ucla.edu>
>>>>
>>>>
>>>
>>
>> -- 
>>
>> Sun Microsystems GmbH         Marco Donauer
>> Dr.-Leo-Ritter-Str. 7         N1 Grid Engine Engineering
>> D-93049 Regensburg            Phone: +49 (0)941 3075-211  (x60211)
>> Germany                       Fax: +49 (0)941 3075-222  (x60222)
>> http://www.sun.com/gridware
>> mailto:marco.donauer at sun.com
>> Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 
>> Kirchheim-Heimstetten
>> Amtsgericht Muenchen: HRB 161028
>> Geschaeftsfuehrer: 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
>>
>

-- 

Sun Microsystems GmbH         Marco Donauer
Dr.-Leo-Ritter-Str. 7         N1 Grid Engine Engineering
D-93049 Regensburg            Phone: +49 (0)941 3075-211  (x60211)
Germany                       Fax: +49 (0)941 3075-222  (x60222)
http://www.sun.com/gridware
mailto:marco.donauer at sun.com
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, 
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: 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




More information about the gridengine-users mailing list