Difference: EntryDescriptionNo37 (1 vs. 21)

Revision 212008-09-21 - SergioLietti

Line: 1 to 1
 
META TOPICPARENT name="LogBook"
Changed:
<
<

Instalacao do novo Computer Element

>
>

Instalacao do novo Compute Element

 

Sistema Operacional

[root@sprace ~]# vim /etc/hosts

Revision 202008-03-15 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 97 to 97
 
[root@spgrid ~]# scp -pr /home/* osg-ce.sprace.org.br:/home/.
Added:
>
>
O home na verdade ficara na storage02, no raid0. Depois de feita a copia do /home para este disco, entao criamos um ponto de montagem para ele
[root@osg-ce ~]# vi /etc/auto.master
/osghome    /etc/auto.osghome    --timeout=30
[root@osg-ce ~]# vim /etc/auto.osghome
home      -rw,soft,bg,rsize=8192,wsize=8192,tcp     storage02:/raid0/osghome
[root@osg-ce ~]# mkdir /osghome
[root@osg-ce ~]# ln -s /osghome/home/ /home
[root@osg-ce ~]# chkconfig autofs on
 

Configuração do NFS

Da spgrid

Line: 109 to 120
 Feito isso:
[root@osg-ce ~]# vim /etc/exports 

Deleted:
<
<
/usr/local/home 192.168.1.0/24(rw,async,no_root_squash)
 /usr/local/opt/OSG 192.168.1.0/24(rw,async,no_root_squash) [root@osg-ce ~]# chkconfig nfs on [root@osg-ce ~]# service nfs start

Revision 192008-03-13 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 55 to 55
 automount: files nis aliases: files nis [root@osg-ce ~]# vim /etc/yp.conf
Changed:
<
<
domain grid server 192.168.1.152
>
>
yperver 192.168.1.150
  [root@osg-ce ~]# vim /etc/xinetd.d/time disable = no

Revision 182008-02-13 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 407 to 407
 monalisa SPRACE OSG
Added:
>
>
[root@osg-ce1 ~]# vim $VDT_LOCATION/MonaLisa/Service/VDTFarm/ml.properties MonaLisa.Location=Sao Paulo MonaLisa.Country=Brazil MonaLisa.LAT=-23.5592 MonaLisa.LONG=-46.7358 [root@osg-ce1 ~]#vdt-register-service --name MLD --enable
 [root@osg-ce1 ~]# cd /etc/grid-security/ [root@osg-ce1 grid-security]# cp hostkey.pem containerkey.pem [root@osg-ce1 grid-security]# cp hostcert.pem containercert.pem
Line: 444 to 450
 [root@osg-ce1 mdias]# chmod 444 /etc/grid-security/http/httpcert.pem [root@osg-ce1 mdias]# chmod 400 /etc/grid-security/http/httpkey.pem [root@osg-ce1 mdias]# chown -R daemon.daemon /etc/grid-security/http
Deleted:
<
<
 
Added:
>
>
E finalmente
[root@osg-ce1 ~]# hostname osg-ce.sprace.org.br
[root@osg-ce1 ~]#vdt-control --on

TODO List:

-trocar hostname e IP no /etc/sysconfig/network para o mesmo da spgrid

-colocar o IP 192.168.1.150 no lugar de 192.168.1.152 no /etc/sysconfig/network/ifcfg-ethX

-Trocar as interfaces de rede para ficar padrão

 

META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 172008-02-12 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 413 to 413
 [root@osg-ce1 grid-security]# chown globus: containerkey.pem containercert.pem [root@osg-ce1 grid-security]# cp /opt/osg-0.8.0/post-install/gsi-authz.conf /etc/grid-security/. [root@osg-ce1 grid-security]# cp /opt/osg-0.8.0/post-install/prima-authz.conf /etc/grid-security/.
Added:
>
>
[root@osg-ce1 ~]# . /OSG/setup.sh [root@osg-ce1 ~]# /opt/osg-0.8.0/vdt/sbin/vdt-register-service -name gums-host-cron --enable vdt-register-service: updated cron service 'gums-host-cron' vdt-register-service: desired state = enable vdt-register-service: cron time = '12 6,12,18,0 * * *' vdt-register-service: cron command = '/opt/osg-0.8.0/gums/scripts/gums-host-cron' [root@osg-ce1 ~]# /opt/osg-0.8.0/vdt/sbin/vdt-control --on gums-host-cron enabling cron service gums-host-cron... no crontab for root ok
 
Added:
>
>
Pedindo o certificado para o apache
[mdias@spgrid ~]$ . /OSG/setup.sh
[mdias@spgrid ~]$ cert-request -ou s -dir . -host osg-ce.sprace.org.br
-service http -label osg-ce.http
[mdias@spgrid ~]$ . /OSG/setup.sh
[mdias@spgrid ~]$  cert-retrieve  -certnum 21546  -dir . -label osg-ce.http
 using CA doegrids
Checking that the usercert and ./osg-ce.httpkey.pem match
writing RSA key
./usercert.pem and ./userkey.pem now contain your Globus credential
[mdias@spgrid ~]$ scp usercert.pem userkey.pem osg-ce1.sprace.org.br:/home/mdias/.
[root@osg-ce1 mdias]#  mkdir /etc/grid-security/http 
[root@osg-ce1 mdias]# cp ./usercert.pem /etc/grid-security/http/httpcert.pem 
[root@osg-ce1 mdias]# cp ./userkey.pem /etc/grid-security/http/httpkey.pem 
[root@osg-ce1 mdias]# chmod 444 /etc/grid-security/http/httpcert.pem 
[root@osg-ce1 mdias]# chmod 400 /etc/grid-security/http/httpkey.pem 
[root@osg-ce1 mdias]# chown -R daemon.daemon /etc/grid-security/http 

 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 162008-01-29 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 407 to 407
 monalisa SPRACE OSG
Changed:
<
<
>
>
[root@osg-ce1 ~]# cd /etc/grid-security/ [root@osg-ce1 grid-security]# cp hostkey.pem containerkey.pem [root@osg-ce1 grid-security]# cp hostcert.pem containercert.pem [root@osg-ce1 grid-security]# chown globus: containerkey.pem containercert.pem [root@osg-ce1 grid-security]# cp /opt/osg-0.8.0/post-install/gsi-authz.conf /etc/grid-security/. [root@osg-ce1 grid-security]# cp /opt/osg-0.8.0/post-install/prima-authz.conf /etc/grid-security/.
 

Revision 152008-01-29 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 330 to 330
 Choose a virtual organization under your OSG affiliation: dosar
Added:
>
>
Recebido o e-mail com o certificado
[root@osg-ce ~]# . /OSG/setup.sh
[root@osg-ce ~]# cert-retrieve  -certnum XXXX -label osg-ce -dir . -prefix osg-ce.sprace.org.br
[root@osg-ce ~]# mv osg-ce.sprace.org.brcert.pem /etc/grid-security/hostcert.pem
[root@osg-ce ~]# mv osg-ce.sprace.org.brkey.pem /etc/grid-security/hostkey.pem 
[root@osg-ce ~]# chmod 400 /etc/grid-security/hostkey.pem
[root@osg-ce ~]# chmod 444 /etc/grid-security/hostcert.pem

 

Firewall

Não dá para mostrar as regras aqui!! Logo o procedimento será

Revision 142008-01-28 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 380 to 380
 [root@osg-ce OSG]# pacman -get OSG:ManagedFork [root@osg-ce OSG]# $VDT_LOCATION/vdt/setup/configure_globus_gatekeeper --managed-fork y --server y
Added:
>
>

Post Install

[root@osg-ce1 ~]# visudo
Runas_Alias GLOBUSUSERS = ALL, !root
globus ALL=(GLOBUSUSERS) \
       NOPASSWD: /opt/osg-0.8.0/globus/libexec/globus-gridmap-and-execute \
       -g /etc/grid-security/grid-mapfile \
       /opt/osg-0.8.0/globus/libexec/globus-job-manager-script.pl *
globus ALL=(GLOBUSUSERS) \
       NOPASSWD: /opt/osg-0.8.0/globus/libexec/globus-gridmap-and-execute \
       -g /etc/grid-security/grid-mapfile \
       /opt/osg-0.8.0/globus/libexec/globus-gram-local-proxy-tool *
[root@osg-ce1 ~]# . /OSG/setup.sh
[root@osg-ce1 ~]# $VDT_LOCATION/vdt/setup/configure_monalisa --prompt
monalisa
SPRACE
OSG


 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 132008-01-23 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 199 to 199
 [root@osg-ce ~]# vim /var/named/chroot/var/named/sprace.org.br.zone $TTL 86400 ;Nome do servidor e e-mail do administrador
Changed:
<
<
@ IN SOA sprace.org.br. root.sprace.org.br. (
>
>
@ IN SOA osg-ce1.sprace.org.br. root.osg-ce1.sprace.org.br. (
  2008012201 ; Serial 28800 ; Refresh
Line: 237 to 237
 mail IN CNAME osg-ce [root@osg-ce ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone $TTL 86400
Changed:
<
<
@ IN SOA sprace.org.br. root.sprace.org.br. (
>
>
@ IN SOA osg-ce1.sprace.org.br. root.osg-ce1.sprace.org.br. (
  2008012201 ; Serial 28800 ; Refresh 14400 ; Retry

Revision 122008-01-23 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 199 to 199
 [root@osg-ce ~]# vim /var/named/chroot/var/named/sprace.org.br.zone $TTL 86400 ;Nome do servidor e e-mail do administrador
Changed:
<
<
@ IN SOA sprace.org.br root.sprace.org.br (
>
>
@ IN SOA sprace.org.br. root.sprace.org.br. (
  2008012201 ; Serial 28800 ; Refresh
Line: 207 to 207
  3600000 ; Expire 86400 ) ; Minimum ;Especificando o servidor de nomes
Changed:
<
<
@ IN NS osg-ce1.sprace.org.br
>
>
@ IN NS osg-ce1.sprace.org.br.
 ;Especificando o servidor de e-mails
Changed:
<
<
@ IN MX 5 osg-ce1.sprace.org.br
>
>
@ IN MX 5 osg-ce1.sprace.org.br.
 ;adicionando endereços osg-ce IN A 200.136.80.4 access IN A 200.136.80.3
Line: 237 to 237
 mail IN CNAME osg-ce [root@osg-ce ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone $TTL 86400
Changed:
<
<
@ IN SOA sprace.org.br root.sprace.org.br (
>
>
@ IN SOA sprace.org.br. root.sprace.org.br. (
  2008012201 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum ;Especificando o servidor de nomes
Changed:
<
<
@ IN NS osg-ce1.sprace.org.br
>
>
@ IN NS osg-ce1.sprace.org.br.
 ;Adicionando os enderecos reversos 3 IN PTR access.sprace.org.br. 4 IN PTR osg-ce.

Revision 112008-01-22 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 27 to 27
 Mudando na spgrid temporariamente o DNS
[root@spgrid ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone

Changed:
<
<
2008011501 ; Serial 25 IN PTR osg-ce. ; era 4 ao invés de 25
>
>
                          1. ; Serial
25 IN PTR osg-ce1.
 [root@spgrid ~]# vim /var/named/chroot/var/named/sprace.org.br.zone
Changed:
<
<
2008011501 ; Serial osg-ce IN A 200.136.80.25
>
>
2008012201 ; Serial osg-ce1 IN A 200.136.80.25
 [root@spgrid ~]# /etc/init.d/named restart Ja no terminal da maquina
Line: 199 to 199
 [root@osg-ce ~]# vim /var/named/chroot/var/named/sprace.org.br.zone $TTL 86400 ;Nome do servidor e e-mail do administrador
Changed:
<
<
@ IN SOA localhost. root.localhost. ( 2008011501 ; Serial
>
>
@ IN SOA sprace.org.br root.sprace.org.br (

2008012201 ; Serial

  28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum ;Especificando o servidor de nomes
Changed:
<
<
@ IN NS localhost.
>
>
@ IN NS osg-ce1.sprace.org.br
 ;Especificando o servidor de e-mails
Changed:
<
<
@ IN MX 5 localhost.
>
>
@ IN MX 5 osg-ce1.sprace.org.br
 ;adicionando endereços
Changed:
<
<
osg-ce IN A 200.136.80.25
>
>
osg-ce IN A 200.136.80.4
 access IN A 200.136.80.3 osg-se IN A 200.136.80.27 ftp-01 IN A 200.136.80.14
Added:
>
>
osg-ce1 IN A 200.136.80.25
 ;Adicionando o servidor www www IN CNAME access [root@osg-ce ~]# vim /var/named/chroot/var/named/grid.zone
Line: 235 to 237
 mail IN CNAME osg-ce [root@osg-ce ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone $TTL 86400
Changed:
<
<
@ IN SOA localhost. root.localhost. (

2008011501 ; Serial

>
>
@ IN SOA sprace.org.br root.sprace.org.br ( 2008012201 ; Serial
  28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum ;Especificando o servidor de nomes
Changed:
<
<
@ IN NS localhost.
>
>
@ IN NS osg-ce1.sprace.org.br
 ;Adicionando os enderecos reversos 3 IN PTR access.sprace.org.br.
Changed:
<
<
25 IN PTR osg-ce.
>
>
4 IN PTR osg-ce.
 14 IN PTR ftp-01. 27 IN PTR osg-se.
Added:
>
>
25 IN PTR osg-ce1.
 [root@osg-ce ~]# vim /var/named/chroot/var/named/1.168.192.in-addr.arpa.zone $TTL 86400 @ IN SOA osg-ce.grid. root.osg-ce.grid. (
Line: 305 to 307
 [root@osg-ce ~]# vim /etc/gmond.conf name "SPGRID Cluster" owner "SPRACE-HEP"
Changed:
<
<
url "http://osg-ce.sprace.org.br/" trusted_hosts 200.136.80.27
>
>
url "http://osg-ce1.sprace.org.br/" trusted_hosts 200.136.80.25
 num_nodes 86 setuid ganglia location "0,3,0"
Line: 336 to 338
 e na osg-ce
CORPIF="eth1"

Changed:
<
<
CORPIP="200.136.80.27"
>
>
CORPIP="200.136.80.25"
 SERVICEIF="eth0" SERVICEIP="192.168.1.152" [root@osg-ce ~]# chkconfig firewall on

Revision 102008-01-21 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 93 to 93
 [root@node84 ~]# rpcinfo -u localhost ypbind [root@node84 ~]# ypcat passwd
Added:
>
>
Copiando o home dos usuários da spgrid
[root@spgrid ~]# scp -pr /home/* osg-ce.sprace.org.br:/home/.
 

Configuração do NFS

Da spgrid

Revision 92008-01-19 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 368 to 368
 [root@osg-ce ~]# . /opt/pacman-3.21/setup.sh [root@osg-ce ~]# cd /opt/osg-0.8.0/ [root@osg-ce ~]# pacman -get OSG:ce
Changed:
<
<
>
>
[root@osg-ce ~]# cd /OSG/ [root@osg-ce OSG]# source setup.sh [root@osg-ce OSG]# pacman -get OSG:Globus-Condor-Setup [root@osg-ce OSG]# pacman -get OSG:ManagedFork [root@osg-ce OSG]# $VDT_LOCATION/vdt/setup/configure_globus_gatekeeper --managed-fork y --server y
 

META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 82008-01-19 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 364 to 364
 

Preparacão

[root@osg-ce ~]# mkdir /opt/osg-0.8.0

Changed:
<
<
[root@osg-ce ~]# ln -s /opt/osg-0.8.0/ /opt/OSG/
>
>
[root@osg-ce ~]# ln -s /opt/osg-0.8.0/ /OSG/
 [root@osg-ce ~]# . /opt/pacman-3.21/setup.sh [root@osg-ce ~]# cd /opt/osg-0.8.0/ [root@osg-ce ~]# pacman -get OSG:ce

Revision 72008-01-18 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 360 to 360
 [root@osg-ce opt]# tar --no-same-owner -xzvf pacman-latest.tar.gz [root@osg-ce opt]# cd pacman-3.21 [root@osg-ce pacman-3.21]# source setup.sh
Added:
>
>

Preparacão

[root@osg-ce ~]# mkdir /opt/osg-0.8.0
[root@osg-ce ~]# ln -s /opt/osg-0.8.0/ /opt/OSG/
[root@osg-ce ~]# . /opt/pacman-3.21/setup.sh
[root@osg-ce ~]# cd /opt/osg-0.8.0/
[root@osg-ce ~]#  pacman -get OSG:ce

 

Revision 62008-01-17 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 307 to 307
 setuid ganglia location "0,3,0"
Added:
>
>

Obter Certificado

[root@osg-ce ~]# mkdir /OSG
[root@osg-ce ~]# mount 192.168.1.150:/usr/local/opt/OSG /OSG/
[root@osg-ce ~]# ln -s /OSG/ /usr/local/opt/OSG
[root@osg-ce ~]# . /OSG/setup.sh
[root@osg-ce ~]# cd $VDT_LOCATION
[root@osg-ce OSG]# source  ./setup.sh
[root@osg-ce ~]# date
Thu Jan 17 09:01:07 BRST 2008
[root@osg-ce OSG]# cd /root/
[root@osg-ce ~]# cert-request -ou s -host osg-ce.sprace.org.br -dir . -label osg-ce  -agree  -email mdias1@ift.unesp.br  -phone +55.11.XXXXXX -reason "Instaling a new Computer Element head node for SPRACE site"  -name "Marco Dias"
Choose a registration authority to which you are affiliated.
osg
Choose a virtual organization under your OSG affiliation:
dosar

Firewall

Não dá para mostrar as regras aqui!! Logo o procedimento será
[root@spgrid ~]# scp /etc/init.d/firewall osg-ce.sprace.org.br:/etc/init.d/.
e na osg-ce
CORPIF="eth1"
CORPIP="200.136.80.27"
SERVICEIF="eth0"
SERVICEIP="192.168.1.152"
[root@osg-ce ~]# chkconfig firewall on
O teste é feito em um node qualquer
[root@node84 ~]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=node84
GATEWAY=192.168.1.152
NISDOMAIN=grid
[root@node84 ~]# /etc/init.d/network restart
[root@node84 ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         192.168.1.152   0.0.0.0         UG    0      0        0 eth1

Instalacão do OSG

Instalacao do PACMAN

[root@osg-ce ~]# cd /opt/
[root@osg-ce opt]# wget http://physics.bu.edu/pacman/sample_cache/tarballs/pacman-latest.tar.gz
[root@osg-ce opt]# tar --no-same-owner -xzvf  pacman-latest.tar.gz
[root@osg-ce opt]# cd pacman-3.21
[root@osg-ce pacman-3.21]# source setup.sh

 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 52008-01-16 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 37 to 37
 Ja no terminal da maquina
[root@osg-ce ~]# mkdir /opt/scratch/

Changed:
<
<
[root@osg-ce ~]# ln -s /scratch /opt/scratch/ [root@osg-ce ~]# ln -s /usr/local/opt /opt/ [root@osg-ce ~]# ln -s /usr/local/home /home/
>
>
[root@osg-ce ~]# ln -s /opt/scratch/ /scratch [root@osg-ce ~]# ln -s /opt /usr/local/opt [root@osg-ce ~]# ln -s /home/ /usr/local/home
 [root@osg-ce ~]# rpm -Uvh ftp://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm; yum -y clean all; yum -y update yum; yum -y update ---++Configuracao do NIS
Line: 93 to 93
 [root@node84 ~]# rpcinfo -u localhost ypbind [root@node84 ~]# ypcat passwd
Added:
>
>

Configuração do NFS

Da spgrid
[root@spgrid ~]# scp /etc/hosts.allow osg-ce.sprace.org.br:/etc/.
Principalmente a linha
192.168.1.              \
Feito isso:
[root@osg-ce ~]# vim /etc/exports 
/usr/local/home          192.168.1.0/24(rw,async,no_root_squash)
/usr/local/opt/OSG       192.168.1.0/24(rw,async,no_root_squash)
[root@osg-ce ~]# chkconfig nfs on
[root@osg-ce ~]# service nfs start
De um nó qualquer
[root@node84 ~]# mount 192.168.1.152:/usr/local/home teste

Configuração do NTP

[root@osg-ce ~]# vim /etc/ntp.conf
#Permite acesso ao servidor para sincronizar mas nao permite modificacoes no servico
restrict default nomodify notrap noquery
# Permite acesso completo para a interface local
restrict 127.0.0.1
# Libera acesso a minha rede local
  restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
#Nosso servidor
server pcdsh05.on.br
server ntp.cais.rnp.br
server ntp.puc-rio.br
server ntp1.pucpr.br
server ntp.pop-rs.rnp.br

driftfile /var/lib/ntp/drift
Para ver as permissões:
[root@osg-ce ~]# ntpdc -nc reslist
   address          mask            count        flags
=====================================================================
0.0.0.0         0.0.0.0               886  noquery, nomodify, notrap
127.0.0.1       255.255.255.255         1  none
127.0.0.1       255.255.255.255         0  ntpport, interface, ignore
192.168.1.152   255.255.255.255         0  ntpport, interface, ignore
200.136.80.25   255.255.255.255         0  ntpport, interface, ignore
::              ::                      0  none

Para ver o status do servidor:
[root@osg-ce ~]#  ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+b.ntp.br        200.160.7.186    2 u  243 1024  377  162.219   -7.703   0.657
*a.ntp.br        200.160.7.192    2 u  270 1024  377  152.367  -10.902   1.354
+titan.cais.rnp. 69.100.142.49    2 u  728 1024   77   13.516   32.667   1.149
 LOCAL(0)        LOCAL(0)        10 l   47   64  377    0.000    0.000   0.004

Feito isso
[root@osg-ce ~]# service ntpd start
[root@osg-ce ~]# chkconfig ntpd on
De uma maquina qualquer
[root@node84 ~]# ntpdate -d  192.168.1.152

Configuração do DNS(chrooted)

[root@osg-ce ~]# vim /var/named/chroot/etc/named.conf
//Dominio sprace.org.br
zone "sprace.org.br" IN{
        type master;
        file "sprace.org.br.zone";
        allow-update { none; };
};
//Dominio Reverso da sprace.org.br
zone "80.136.200.in-addr.arpa" IN{
        type master;
        file "80.136.200.in-addr.arpa.zone";
        allow-update { none; };
};
//Dominio Grid
zone "grid" IN{
        type master;
        file "grid.zone";
        allow-update { none; };
};
//Dominio reverso grid
zone "1.168.192.in-addr.arpa" IN{
        type master;
        file "1.168.192.in-addr.arpa.zone";
        allow-update { none; };
};
[root@osg-ce ~]# vim /var/named/chroot/var/named/sprace.org.br.zone
$TTL    86400
;Nome do servidor e e-mail do administrador
@       IN      SOA    localhost.       root.localhost.   (
                                      2008011501 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
;Especificando o servidor de nomes
@       IN      NS      localhost.
;Especificando o servidor de e-mails
@       IN      MX      5       localhost.  
;adicionando endereços
osg-ce          IN      A       200.136.80.25
access          IN      A       200.136.80.3
osg-se          IN      A       200.136.80.27
ftp-01          IN      A       200.136.80.14
;Adicionando o servidor www
www     IN      CNAME           access
[root@osg-ce ~]# vim /var/named/chroot/var/named/grid.zone
$TTL    86400
@       IN      SOA     osg-ce.grid. root.osg-ce.grid.  (
                                     2008011901 ; Serial
                                      8H      ; Refresh
                                      2H      ; Retry
                                      1W    ; Expire
                                      1D )    ; Minimum
;Servidor de nomes
@       IN      NS      osg-ce.grid.
;Servidor de e-mail
@       IN      MX      0       osg-ce.grid.
;Especificando enderecos
@       IN      A       192.168.1.152 ;(ip do servidor)                  
osg-ce   IN      A       192.168.1.152
;Adicionando apelidos
mail    IN      CNAME   osg-ce 
[root@osg-ce ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone
$TTL    86400
@       IN      SOA    localhost.       root.localhost.   (

                                      2008011501 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
;Especificando o servidor de nomes
@       IN      NS      localhost.
;Adicionando os enderecos reversos
3       IN      PTR     access.sprace.org.br.
25      IN      PTR     osg-ce.
14      IN      PTR     ftp-01.
27      IN      PTR     osg-se.
[root@osg-ce ~]# vim /var/named/chroot/var/named/1.168.192.in-addr.arpa.zone
$TTL    86400
@       IN      SOA     osg-ce.grid. root.osg-ce.grid.  (
                                      2008011901 ; Serial
                                      8H      ; Refresh
                                      2H      ; Retry
                                      1W    ; Expire
                                      1D )    ; Minimum
;Especificando o servidor de nomes
@               IN      NS      osg-ce.grid.
;Adicionando endereços reversos
152             IN      PTR     osg-ce.grid.
[root@osg-ce ~]# chkconfig named on
Testando em um nó
[root@node84 ~]# vim /etc/resolv.conf
nameserver 192.168.1.152

Monitoramento do Ganglia

[root@osg-ce ~]# wget http://dag.wieers.com/rpm/packages/rrdtool/rrdtool-1.0.50-3.el4.rf.i386.rpm
[root@osg-ce ~]# rpm -ivh rrdtool-1.0.50-3.el4.rf.i386.rpm 
[root@osg-ce tmp]# wget http://downloads.sourceforge.net/ganglia/ganglia-3.0.6-1.src.rpm?modtime=1197841780&big_mirror=0
[root@osg-ce ~]# cd /tmp/
[root@osg-ce tmp]# rpm -i /root/ganglia-3.0.6-1.src.rpm 
[root@osg-ce tmp]# cd /usr/src/redhat/SPECS
[root@osg-ce SPECS]# rpmbuild -ba --target noarch ganglia.spec
Instalar dependências
[root@osg-ce SPECS]# cd /root/
[root@osg-ce ~]# wget http://dag.wieers.com/rpm/packages/rrdtool/rrdtool-devel-1.0.50-3.el4.rf.i386.rpm
[root@osg-ce ~]# rpm -ivh rrdtool-devel-1.0.50-3.el4.rf.i386.rpm
[root@osg-ce ~]# yum install libart_lgpl-devel libpng-devel
[root@osg-ce ~]# cd /usr/src/redhat/SPECS
[root@osg-ce SPECS]# rpmbuild -ba --target noarch ganglia.spec
[root@osg-ce SPECS]# rpmbuild -ba --target i686 ganglia.spec
[root@osg-ce SPECS]# cd /usr/src/                                               
[root@osg-ce src]# rpm -ivh */RPMS/*/ganglia-gmetad-*rpm
[root@osg-ce src]# yum install php-gd.i386
[root@osg-ce src]# rpm -i */RPMS/*/ganglia-web*rpm
[root@osg-ce src]# chkconfig --level 345 gmetad on
[root@osg-ce src]# chkconfig httpd on
Configurando o gmond
[root@osg-ce src]# mount -t nfs 192.168.1.200:/export /teste;
[root@osg-ce src]# cd /teste
[root@osg-ce teste]# rpm -ivh ganglia-monitor-core-gmond-2.5.4-8.i386.rpm 
[root@osg-ce teste]# cd
[root@osg-ce ~]# umount /teste/
[root@osg-ce ~]# rmdir /teste/
[root@osg-ce ~]# vim /etc/gmond.conf
name "SPGRID Cluster"
owner "SPRACE-HEP"
url "http://osg-ce.sprace.org.br/"
trusted_hosts 200.136.80.27
num_nodes  86
setuid ganglia
location "0,3,0"
 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 42008-01-16 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 46 to 46
 
[root@osg-ce ~]# yum install ypserv
[root@osg-ce ~]# vim /etc/nsswitch.conf

Changed:
<
<
protocols: files nisplus services: files nisplus netgroup: files nisplus automount: files nisplus aliases: files nisplus
>
>
passwd: files nis shadow: files nis group: files nis protocols: files nis services: files nis netgroup: files nis automount: files nis aliases: files nis [root@osg-ce ~]# vim /etc/yp.conf domain grid server 192.168.1.152
 [root@osg-ce ~]# vim /etc/xinetd.d/time disable = no [root@osg-ce ~]# vim /etc/xinetd.d/time-udp
Line: 60 to 66
 [root@osg-ce ~]# chkconfig portmap on [root@osg-ce ~]# chkconfig yppasswdd on [root@osg-ce ~]# domainname grid
Added:
>
>
[root@osg-ce ~]# /usr/lib/yp/ypinit -m
 [root@osg-ce ~]# service xinetd start [root@osg-ce ~]# service portmap start [root@osg-ce ~]# service ypserv start
Line: 74 to 81
 [root@osg-ce ~]# cd /var/yp/ [root@osg-ce yp]# make
Added:
>
>
Verifique se ele esta escutando
[root@osg-ce ~]# rpcinfo -u localhost ypserv
Em outra maquina sem jobs do cluster, teste
[root@node84 ~]# vim /etc/yp.conf
ypserver 192.168.1.152
[root@node84 ~]# /etc/init.d/ypbind restart
[root@node84 ~]# rpcinfo -u localhost ypbind
[root@node84 ~]# ypcat passwd
 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 32008-01-16 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 41 to 41
 [root@osg-ce ~]# ln -s /usr/local/opt /opt/ [root@osg-ce ~]# ln -s /usr/local/home /home/ [root@osg-ce ~]# rpm -Uvh ftp://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm; yum -y clean all; yum -y update yum; yum -y update
Deleted:
<
<
 
Changed:
<
<
>
>
---++Configuracao do NIS
[root@osg-ce ~]# yum install ypserv
[root@osg-ce ~]# vim /etc/nsswitch.conf
protocols:  files nisplus
services:   files nisplus
netgroup:   files nisplus
automount:  files nisplus
aliases:    files nisplus
[root@osg-ce ~]# vim /etc/xinetd.d/time
        disable         = no
[root@osg-ce ~]# vim /etc/xinetd.d/time-udp
        disable         = no
[root@osg-ce ~]# chkconfig xinetd on
[root@osg-ce ~]# chkconfig ypserv on
[root@osg-ce ~]# chkconfig portmap on
[root@osg-ce ~]# chkconfig yppasswdd on
[root@osg-ce ~]# domainname grid
[root@osg-ce ~]# service xinetd start
[root@osg-ce ~]# service portmap start
[root@osg-ce ~]# service ypserv start
[root@osg-ce ~]# service yppasswdd start
Na spgrid
[root@spgrid ~]#  scp /etc/passwd /etc/shadow /etc/group /etc/gshadow root@osg-ce.sprace.org.br:/etc/.
Novamente
[root@osg-ce ~]# cd /var/yp/
[root@osg-ce yp]# make
 
META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 22008-01-15 - MarcoAndreFerreiraDias

Line: 1 to 1
 
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

Line: 16 to 16
  append ks=nfs:192.168.1.200:/export/linux/kickstart/ks_osgce_instalar.cfg initrd=initrd.img devfs=nomount ksdevice=eth0 [root@sprace ~]# cp /export/linux/kickstart/ks_osgse_instalar.cfg /export/linux/kickstart/ks_osgce_instalar.cfg [root@sprace ~]# vim /export/linux/kickstart/ks_osgce_instalar.cfg
Deleted:
<
<
network --device eth1 --bootproto static --ip 200.136.80.25 --netmask 255.255.255.0 --gateway 200.136.80.1 --nameserver 192.168.1.150,143.107.129.21,143.107.128.16 --hostname osg-ce.sprace.org.br network --device eth0 --bootproto static --ip 192.168.1.152 --netmask 255.255.255.0 --nameserver 192.168.1.150,143.107.129.21,143.107.128.16 --hostname osg-ce.sprace.org.br bootloader --location=mbr #Clear the Master Boot Record zerombr yes clearpart --all --drives=sda --initlabel part / --fstype ext3 --size 40960 --asprimary part /boot --fstype ext3 --size 512 --asprimary part swap --size 8192 --asprimary part /tmp --fstype ext3 --size 8192 part /var --fstype ext3 --size 20480 part /opt --fstype ext3 --size 40960 part /home --fstype ext3 --size 1 --grow Esta no arquivo anexo:
 
Added:
>
>
Configurar como esta no arquivo anexo: * ks_osgce_instalar.cfg: Kickstart para instala a OSG-CE
 
[root@sprace ~]# /etc/init.d/dhcpd start
[root@sprace ~]# /etc/init.d/xinetd restart

Line: 46 to 34
 osg-ce IN A 200.136.80.25 [root@spgrid ~]# /etc/init.d/named restart
Added:
>
>
Ja no terminal da maquina
[root@osg-ce ~]# mkdir /opt/scratch/
[root@osg-ce ~]# ln -s /scratch /opt/scratch/
[root@osg-ce ~]# ln -s /usr/local/opt /opt/
[root@osg-ce ~]# ln -s /usr/local/home /home/
[root@osg-ce ~]# rpm -Uvh ftp://ftp.scientificlinux.org/linux/scientific/4x/i386/misc/RPMS/yum-conf-latest.SL.noarch.rpm; yum -y clean all; yum -y  update yum; yum -y update

META FILEATTACHMENT attachment="ks_osgce_instalar.cfg" attr="" comment="Kickstart para instala a OSG-CE" date="1200420987" name="ks_osgce_instalar.cfg" path="ks_osgce_instalar.cfg" size="2340" stream="ks_osgce_instalar.cfg" user="Main.MarcoAndreFerreiraDias" version="1"

Revision 12008-01-15 - MarcoAndreFerreiraDias

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="LogBook"

Instalacao do novo Computer Element

Sistema Operacional

[root@sprace ~]# vim /etc/hosts
192.168.1.152   osg-ce.grid     osg-ce
[root@sprace ~]# vim /etc/dhcpd.conf
host osg-ce
{
        hardware ethernet 00:30:48:89:22:88;
        fixed-address osg-ce;
        filename "/tftpboot/pxelinux.0";
}
[root@sprace ~]# vim /tftpboot/pxelinux.cfg/default
    append ks=nfs:192.168.1.200:/export/linux/kickstart/ks_osgce_instalar.cfg initrd=initrd.img  devfs=nomount ksdevice=eth0
[root@sprace ~]# cp /export/linux/kickstart/ks_osgse_instalar.cfg /export/linux/kickstart/ks_osgce_instalar.cfg
[root@sprace ~]# vim /export/linux/kickstart/ks_osgce_instalar.cfg
network --device eth1 --bootproto static --ip 200.136.80.25 --netmask 255.255.255.0 --gateway 200.136.80.1 --nameserver 192.168.1.150,143.107.129.21,143.107.128.16 --hostname osg-ce.sprace.org.br
network --device eth0 --bootproto static --ip 192.168.1.152 --netmask 255.255.255.0   --nameserver 192.168.1.150,143.107.129.21,143.107.128.16 --hostname osg-ce.sprace.org.br
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
clearpart --all --drives=sda  --initlabel
part / --fstype ext3 --size 40960 --asprimary
part /boot --fstype ext3 --size 512 --asprimary
part swap --size 8192 --asprimary
part /tmp --fstype ext3 --size 8192
part /var --fstype ext3 --size 20480
part /opt --fstype ext3 --size 40960
part /home --fstype ext3 --size 1 --grow
Esta no arquivo anexo:

[root@sprace ~]# /etc/init.d/dhcpd start
[root@sprace ~]# /etc/init.d/xinetd restart
Mudando na spgrid temporariamente o DNS
[root@spgrid ~]# vim /var/named/chroot/var/named/80.136.200.in-addr.arpa.zone
                                      2008011501 ; Serial
25      IN      PTR     osg-ce. ; era 4 ao invés de 25
[root@spgrid ~]# vim /var/named/chroot/var/named/sprace.org.br.zone
                                      2008011501 ; Serial
osg-ce          IN      A       200.136.80.25
[root@spgrid ~]# /etc/init.d/named restart
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort