Tags:
create new tag
,
view all tags
---++ Instalação do WN e Glexec ---++Description Primeiramente devemos criar o usuário glexec na osg-ce, e adiciona-lo ao mapa do ypbind <pre> [root@osg-ce ~]# groupadd glexec [root@osg-ce ~]# adduser -g glexec -s /bin/false glexec [root@osg-ce ~]#cd /var/yp [root@osg-ce yp]#make [root@osg-ce yp]#cd /etc/init.d/ypserv restart </pre> Criamos então o script abaixo dentro de uma área /home/mdias da osg-ce: <pre> cd /tmp wget http://physics.bu.edu/pacman/sample_cache/tarballs/pacman-3.21.tar.gz tar --no-same-owner -xzvf pacman-3.21.tar.gz cd pacman-3.21 source setup.sh mkdir /opt/OSG-wn-client cd /opt/OSG-wn-client/ VDTSETUP_AGREE_TO_LICENSES=y export VDTSETUP_AGREE_TO_LICENSES VDTSETUP_INSTALL_CERTS=l export VDTSETUP_INSTALL_CERTS VDTSETUP_EDG_CRL_UPDATE=y export VDTSETUP_EDG_CRL_UPDATE VDTSETUP_ENABLE_ROTATE=y export VDTSETUP_ENABLE_ROTATE pacman -trust-all-caches -get OSG:wn-client source setup.sh vdt-control --on mkdir /etc/grid-security ln -s /opt/OSG-wn-client/globus/share/certificates /etc/grid-security/certificates pacman -get http://vdt.cs.wisc.edu/vdt_181_cache:Glexec sed -i 's/yourmachine.yourdomain/osg-ce.sprace.org.br/g' /etc/glexec/contrib/gums_interface/getmapping.cfg rm -rf /tmp/pacman* </pre> O osg-ce vai rodar este script de instalação: <pre> /root/bin/clcmd /home/mdias/glexec_install.sh </pre> Agora precisamos distribuir os proxies para os nodes, usando o script <pre> #!/bin/bash #Gerando as chaves . /OSG/setup.sh grid-proxy-init -cert /etc/grid-security/hostcert.pem -key /etc/grid-security/hostkey.pem -valid 12:00 -out /tmp/x509proxy.pem >/tmp/grid_tmpout 2> / tmp/grid_tmperr openssl rsa -in /tmp/x509proxy.pem -out /tmp/x509proxykey.pem > /tmp/ssl_tmpout2> /tmp/ssl_tmperr #Copiando as chaves para os nodes for ((i=1; i<84; i++)) ; do if ! scp /tmp/x509proxy.pem 192.168.1.$i:/etc/grid-security/hostproxy.pem; then echo "$(date) scp 192.168.1.$i fail">>/tmp/grid_scptmperr;fi done for ((i=1; i<84; i++)) ; do if ! scp /tmp/x509proxykey.pem 192.168.1.$i:/etc/grid-security/hostproxykey.pem; then echo "$(date) scp 192.168.1.$i fail">>/tmp/grid_scptmpe rr;fi done </pre> que rodará como um cronjob <pre> 55 */11 * * * /usr/local/bin/ProxyRenewNodes.sh </pre> rodará de 11h55 em 11h55 todos os dias. Precisamos mudar a variável OSG_GRID dos fles osg-atributtes.conf osg-job-enviromment.conf , grid3-info.conf dentro do diretório /OSG/monitoring <pre> OSG_GRID=/opt/OSG-wn-client </pre> ---++ Atualização 16/05/2008 Rodado em todos os nodes o script para compartilhar o TRUSTED_CA da CE com os nodes, ja que os cronjobs falham: <pre> sed -ie '1d' /var/spool/cron/root mv /opt/OSG-wn-client/globus/share/certificates /opt/OSG-wn-client/globus/share/certificates.bck rm -f /opt/OSG-wn-client/globus/TRUSTED_CA rm -f /etc/grid-security/certificates ln -s /OSG/globus/share/certificates /etc/grid-security/certificates ln -s /OSG/globus/share/certificates /opt/OSG-wn-client/globus/TRUSTED_CA mv /opt/OSG-wn-client/globus/share/certificates.bck /opt/OSG-wn-client/globus/share/certificates </pre> ---++ Atualização 01/06/2008 colocar a linha abaixo em todos os nodes no /etc/glexec/glexec.conf <pre> linger = no </pre> na seção [glexec]
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r6
<
r5
<
r4
<
r3
<
r2
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r6 - 2008-06-02
-
MarcoAndreFerreiraDias
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback