[Beowulf] SGE qconf, renaming hosts/queues?

Reuti reuti at staff.uni-marburg.de
Thu Sep 8 05:40:29 EDT 2011


Hi,

Am 08.09.2011 um 09:04 schrieb Kilian CAVALOTTI:

> Hi David,
> 
> On Thu, Sep 8, 2011 at 1:05 AM, mathog <mathog at caltech.edu> wrote:
>> Failing that, is there an easy way to dump
>> the host/queue description to a text file, edit
>> that, and then re-create from the modified descriptions?  There are a
>> bunch of text configuration files in the
>> SGE directory, but I'm  guessing that editing/renaming those directly
>> is a big no no.
> 
> Well, it'd probably work, but the risk is to forget some.
> 
> Instead, you can use qconf to dump queue definitions. Something along
> the lines of:

yep, there are also prepared scripts in $SGE_ROOT/util/upgrade_modules/ called "save_sge_config.sh" and  "load_sge_config.sh" .

While the  "save_sge_config.sh" will do the correct thing, the "load_sge_config.sh" is meant to be used in an empty SGE installation. It might work in some cases even by overriding the previous setting, but if you have e.g. mutal settings in two queues for subordination of the other queue, you first have to remove this subordination in one queue before you can remove the other queue at all. And the "load_sge_config.sh" isn't so sophisticated to cover these cases.

-- Reuti


> # qconf -sql | while read QUEUE ; do
>    echo "****************** ${QUEUE} **********************"
>    qconf -sq ${QUEUE}
> done
> 
> For host renaming, though, the safest route is probably to:
> 
> 0. remove the old queues (qconf -dq <queue>)
> 1. remove old nodes from SGE configuration (qconf -de <old_hostname>
> for execution hosts)
> 2. change hostnames on the old nodes (depends on your OS)
> 3. re-add the new old nodes (qconf -ae <new_hostname> for execution hosts)
> 4. recreate the queues from the previous dump (qconf -aq <queue>, and
> paste/edit the dumps)
> 
> Cheers,
> -- 
> Kilian
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
> To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
> 

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Beowulf mailing list