Serviço Experimental de CIrcuitos aPrOvisionados dinamicamente (SE-CIPÓ)

Skip to end of metadata
Go to start of metadata

Instalação da Máquina perfSONAR

OBS IMPORTANTES: Deve-se utilizar a versão do CentOS 5, atualização para a 6 não devem ser efetuadas pois os softwares não são compatíveis com a nova versão.

A Máquina está instalada no servidor de máquinas virtuais do Rio de Janeiro (200.143.193.162).

Configuração do Servidor

  • Sistema Operacional: CentOS 5.9 i386
  • Mirror: SONIC - http://mirrors.sonic.net/centos/5.9/os/i386/
  • IP: 200.143.193.166/255.255.255.192
  • Domínio: perfsonar.cipo.rnp.br
  • Gateway: 200.143.193.129
  • DNS: 200.143.193.70 e 200.143.193.3
  • Hostname: RNP-PS-DCN-v1
  • Partições ext3 LVM
    /            3072M
    /var/log    2048M
    /var/lib    3969M
  • Opção de pacotes: Server

Instalação do VMWareTools

  • Habilitar a instalação do VMTools na VM através da configuração da VM no ambiente de gerenciamento do servidor
  • Seguir os seguintes procedimentos:
cd /usr/local/src
mount /dev/cdrom /media
cp /media/VMwareTools-4.0.0-208167.tar.gz .
tar xzvf VMwareTools-4.0.0-208167.tar.gz
cd vmware-tools-distrib
perl vmware-install.pl

Instalação Pacotes Internet2

  • Seguir os seguintes procedimentos:
cd /usr/local/src/
wget -c http://software.internet2.edu/rpms/i386/main/RPMS/Internet2-repo-0.2-5.noarch.rpm
rpm --import http://software.internet2.edu/rpms/RPM-GPG-KEY-Internet2
rpm -ivh Internet2-repo-0.2-5.noarch.rpm 
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
 

Instalacao LS e TopS

  • Seguir os seguintes procedimentos:
yum install perl-perfSONAR_PS-LookupService.noarch
yum install perl-perfSONAR_PS-TopologyService.noarch

Configuração dos Serviços

Lookup Service

Configuração do LS se encontra no arquivo /opt/perfsonar_ps/lookup_service/etc/daemon.conf conforme abaixo documentado:

<port 9990>
    <endpoint /perfSONAR_PS/services/gLS>
        <gls>
                                                                # just an hLS ... (ORG, CITY, STATE, COUNTRY)
                        root                            0
                                                                # data TTL = 4 days
                        ls_ttl                          5760
                                                                # 180 minute (3hr) registaration window
                        ls_registration_interval        180
                                                                # 120 miute cleaning/summary window
                        maintenance_interval            120
                                                                # Database options (only change path)
                        metadata_db_file                    glsstore.dbxml
                        metadata_summary_db_file            glsstore-summary.dbxml
                        metadata_db_name                    /var/lib/perfsonar/lookup_service/xmldb
                                                                # Service options (please customize)
                        service_accesspoint                 http://200.143.193.166:9990/perfSONAR_PS/services/gLS
                        service_description             RNP DCN Global Lookup Service (Rio de Janeiro, Rio de Janeiro, Brasil)
                        service_name                    RNP DCN Global Lookup Service
                        #service_description             ORG Home Lookup Service (CITY, STATE, COUNTRY)
                        #service_name                    ORG Home Lookup Service
                        service_type                    gLS
                </gls>
                disable                             0
                module                              perfSONAR_PS::Services::LS::gLS
        </endpoint>
</port>
                                                    # 180 minute (3hr) registaration window
ls_registration_interval                        180
disable_echo                                0
                                                    # Root hints info, url + local copy location
root_hints_url                              http://www.perfsonar.net/gls.root.hints
root_hints_file                             /var/lib/perfsonar/lookup_service/hls.root.hints
                                                    # Daemon management, shouldn't need changing
reaper_interval                             20
max_worker_lifetime                             300
max_worker_processes                        30
pid_dir                                     /var/run
pid_file                                        lookup_service.pid
 

Topology Service

Configuração do TopS se encontra no arquivo /opt/perfsonar_ps/topology_service/etc/daemon.conf conforme abaixo documentado:

# Sets the external address advertised to outside clients
external_address                200.143.193.166

# Describes which organization is advertised as "owning" this Topology Service
site_name               RNP

# Describes where this Topology Service is locate
site_location           Rio de Janeiro, Rio de Janeiro, Brazil

# Define which LS to register with
#  - Default: Internet2's Lookup Service
#ls_instance                  http://ndb1.internet2.edu:9995/perfSONAR_PS/services/hLS
#ls_registration_interval     30

<port 8012>
        <endpoint /perfSONAR_PS/services/topology>
                module     perfSONAR_PS::Services::TS::TS
                <topology>
                    db_environment               /var/lib/perfsonar/topology_service
                    db_file                      topology.dbxml
                    db_type                      xml
                    enable_registration          1
                    read_only                    0
                </topology>
        </endpoint>
</port>
 

 

Instalação dos scripts de sincronização de topologia

Baixar o arquivo: tsmirror.tgz em /usr/local/src e seguir o procedimento abaixo:

# yum install perl-XML-Twig.noarch
# cd /
# tar xzvf /usr/local/src/tsmirror.tgz
  opt/perfsonar_ps/topology_service/bin/client-ampath.pl
  opt/perfsonar_ps/topology_service/bin/client-fiu.pl
  opt/perfsonar_ps/topology_service/bin/client-ion.pl
  etc/cron.hourly/tsmirror.cron
  etc/logrotate.d/perfsonar

 

Alterar /etc/cron.hourly/tsmirror.cron

De:

PERL5LIB=/usr/lib/perl5/site_perl/5.8.8:/usr/lib/perl5/vendor_perl/5.8.8:/opt/perfsonar_ps/topology_service/lib/

 

Para:

export PERL5LIB=$PERL5LIB:/usr/lib/perl5/site_perl/5.8.8:/usr/lib/perl5/vendor_perl/5.8.8:/opt/perfsonar_ps/topology_service/lib/


 

 

  • No labels