Instalação do IBM Power HA System Mirror 7.1.1 – parte III

Neste artigo vamos configurar a Topologia do PowerHA SystemMirror. A topologia do PowerHA SystemMirror representa  como o cluster está desenhado.

Configuração do arquivo /etc/cluster/rhosts

O primeiro passo é criar e distribuir o arquivo /etc/cluster/rhosts entre os nós do cluster. Ao contrário de Versão anterior do PowerHA SystemMirror, agora você tem que editar manualmente este arquivo. Crie o arquivo /etc/cluster/rhosts e escreva todos os endereços IP do Cluster nele.

10.1.1.15
10.1.1.16
10.10.1.15
10.10.1.16
192.168.0.15
192.168.0.16
192.168.0.20

Reinicie o daemon clcomd em todos os nós.

root@aixdev01:/#refresh -s clcomd
0513-095 The request for subsystem refresh was completed successfully.
root@aixdev01:/#

Configuração do arquivo /usr/es/sbin/cluster/netmon.cf

Agora vamos configurar o arquivo /usr/es/sbin/cluster/netmon.cf. Como estamos utilizando adaptadores virtuais, precisamos criar o nemon.cf. Vamos escolher o IP de destino do ping para as interfaces de rede. Irei utilizar o IP do default gateway.

[node1 - aixdev01]
!REQ 10.1.1.15 10.1.1.16
!REQ 10.10.1.15 10.10.1.16
!REQ 192.168.0.15 192.168.0.1

[node2 - aixdev02]
!REQ 10.1.1.16 10.1.1.15
!REQ 10.10.1.16 10.10.1.15
!REQ 192.168.0.16 192.168.0.1

Setup Inicial do Cluster

# smitty sysmirror

Selecione Cluster Nodes and Networks -> Initial Cluster Setup (Typical) -> Setup a Cluster, Nodes and Networks. Defina um nome para o cluster, em New Nodes, adicione o outro nó do cluster

                  Setup Cluster, Nodes and Networks (Typical)

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                     [Entry Fields]
* Cluster Name                                       [oracluster]
 New Nodes (via selected communication paths)        [aixdev02]          +
 Currently Configured Node(s)                        aixdev01












F1=Help          F2=Refresh       F3=Cancel           F4=List
F5=Reset         F6=Command       F7=Edit             F8=Image
F9=Shell         F10=Exit         Enter=Do

Após a confirmação, aparecera esta tela com o status da criação do cluster

COMMAND STATUS

Command: OK             stdout: yes            stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Warning: to complete this configuration, a repository disk must be defined.

Cluster Name: oracluster
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
Repository Disk: None
Cluster IP Address:
There are 2 node(s) and 1 network(s) defined
NODE aixdev01:
        Network net_ether_01
[MORE...154]

F1=Help         F2=Refresh      F3=Cancel        F6=Command
F8=Image        F9=Shell        F10=Exit         /=Find
n=Find Next

Configuração do disco do repositório

Vamos definir o disco do repositório e o endereço IP do cluster.

Execute smitty sysmirror e selecione Cluster Nodes and Networks -> Initial Cluster Setup (Typical) -> Define Repository Disk and Cluster IP Address. Escolha o disco para o repositório e deixe em branco o campo Cluster IP Address. O PowerHA irá criar um IP.

                     Define Repository and Cluster IP Address

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                              [Entry Fields]
* Cluster Name                               oracluster
* Repository Disk                            [hdisk1]                     +
 Cluster IP Address                          []












F1=Help            F2=Refresh         F3=Cancel        F4=List
F5=Reset           F6=Command         F7=Edit          F8=Image
F9=Shell           F10=Exit           Enter=Do

Abaixo segue o status da criação do disco de repositóriodo cluster

                                COMMAND STATUS

Command: OK                stdout: yes               stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Cluster Name: oracluster
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
Repository Disk: hdisk1
Cluster IP Address:
There are 2 node(s) and 1 network(s) defined
NODE aixdev01:
        Network net_ether_01
                aixdev01b1 10.1.1.15
                aixdev01b2 10.10.1.15
[MORE...11]

F1=Help          F2=Refresh        F3=Cancel          F6=Command
F8=Image         F9=Shell          F10=Exit           /=Find
n=Find Next

Adicionando os IPs Persistentes

Execute smitty sysmirror e selecione Cluster Nodes and Networks -> Manage Nodes -> Configure Persistent Node IP Label/Addresses -> Add a Persistent Node IP Label/Address -> Select a Node. Em Network Name escolha net_ether_01, em Node IP Label/Address selecione o aixdev01

                     Add a Persistent Node IP Label/Address

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                              [Entry Fields]
* Node Name                                   aixdev01
* Network Name                                [net_ether_01]              +
* Node IP Label/Address                       [aixdev01]                  +
 Netmask(IPv4)/Prefix Length(IPv6)            []











F1=Help          F2=Refresh            F3=Cancel          F4=List
F5=Reset         F6=Command            F7=Edit            F8=Image
F9=Shell         F10=Exit              Enter=Do

Status da criação do IP Persistente para o primeiro Node

                         COMMAND STATUS

Command: OK           stdout: no               stderr: no

Before command completion, additional instructions may appear below.
















F1=Help          F2=Refresh         F3=Cancel         F6=Command
F8=Image         F9=Shell           F10=Exit          /=Find
n=Find Next

Repetindo a configuração para o segundo node aixdev02.

                     Add a Persistent Node IP Label/Address

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                              [Entry Fields]
* Node Name                                   aixdev02
* Network Name                                [net_ether_01]              +
* Node IP Label/Address                       [aixdev02]                  +
 Netmask(IPv4)/Prefix Length(IPv6)            []











F1=Help          F2=Refresh            F3=Cancel          F4=List
F5=Reset         F6=Command            F7=Edit            F8=Image
F9=Shell         F10=Exit              Enter=Do

Status da criação do IP Persistente para o segundo Node

                         COMMAND STATUS

Command: OK           stdout: no               stderr: no

Before command completion, additional instructions may appear below.
















F1=Help          F2=Refresh         F3=Cancel         F6=Command
F8=Image         F9=Shell           F10=Exit          /=Find
n=Find Next

Checando as informações da topologia do cluster

Execute smitty sysmirror e selecione Cluster Nodes and Networks -> Manage the Cluster -> Display PowerHA SystemMirror Configuration. 

                                 COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Cluster Name: oracluster
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No
Repository Disk: hdisk1
Cluster IP Address:
There are 2 node(s) and 1 network(s) defined
NODE aixdev01:
         Network net_ether_01
                 aixdev01b1 10.1.1.15
                 aixdev01b2 10.10.1.15
[MORE...7]

F1=Help           F2=Refresh          F3=Cancel          F6=Command
F8=Image          F9=Shell            F10=Exit           /=Find
n=Find Next

Também é possível checar a topologia do cluster utilizando o comando /usr/es/sbin/cluster/utilities/cllsif

root@aixdev01:/#/usr/es/sbin/cluster/utilities/cllsif
Adapter Type Network Net Type Attribute Node IP Address Hardware Address Interface Name Global Name Netmask Alias for HB Prefix Length

aixdev01b1 boot net_ether_01 ether public aixdev01 10.1.1.15 en0 255.255.255.0 24
aixdev01b2 boot net_ether_01 ether public aixdev01 10.10.1.15 en1 255.255.255.0 24
aixdev02b2 boot net_ether_01 ether public aixdev02 10.10.1.16 en1 255.255.255.0 24
aixdev02b1 boot net_ether_01 ether public aixdev02 10.1.1.16 en0 255.255.255.0 24
root@aixdev01:/#

Verificando e sincronizando a topologia do cluster

Execute smitty sysmirror e selecione Cluster Nodes and Networks -> Verify and Synchronize Cluster Configuration. 

                           Cluster Nodes and Networks

Move cursor to desired item and press Enter.

  Initial Cluster Setup (Typical)

  Manage the Cluster
  Manage Nodes
  Manage Networks and Network Interfaces

  Discover Network Interfaces and Disks

  Verify and Synchronize Cluster Configuration









F1=Help            F2=Refresh           F3=Cancel         F8=Image
F9=Shell           F10=Exit             Enter=Do

Confirme a operação

                            Cluster Nodes and Networks

Move cursor to desired item and press Enter.

  +--------------------------------------------------------------------------+
  | Verify and Synchronize the Cluster Configuration                         |
  |                                                                          |
  | Move cursor to desired item and press Enter. Use arrow keys to scroll.   |
  |                                                                          |
  |                                                                          |
  | Any time you change the cluster configuration, those changes             |
  | must be propogated to all nodes in the cluster. PowerHA SystemMirror w   |
  | perform a set of verification checks to make sure the configuration      |
  | is viable.                                                               |
  |                                                                          |
  | Depending on the nature of the changes, this operation can disrupt       |
  | the applications currently under PowerHA SystemMirror control.           |
  |                                                                          |
  | Press enter when you are ready to begin.                                 |
  |                                                                          |
  | F1=Help              F2=Refresh              F3=Cancel                   |
  | F8=Image             F10=Exit                Enter=Do                    |
F1| /=Find n=Find Next                                                       |
F9+--------------------------------------------------------------------------+

Voce está certo disso ?

                            Cluster Nodes and Networks

Move cursor to desired item and press Enter.

  Initial Cluster Setup (Typical)

  Manage the Cluster
  Manage Nodes
  Manage Networks and Network Interfaces

  Discover Network Interfaces and Disks

  +--------------------------------------------------------------------------+
  |                                 ARE YOU SURE?                            |
  |                                                                          |
  | Continuing may delete information you may want                           |
  | to keep. This is your last chance to stop                                |
  | before continuing.                                                       |
  |     Press Enter to continue.                                             |
  |     Press Cancel to return to the application.                           |
  |                                                                          |
  | F1=Help             F2=Refresh           F3=Cancel                       |
F1| F8=Image            F10=Exit             Enter=Do                        |
F9+--------------------------------------------------------------------------+

Status do sincronismo do cluster

                                 COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

[TOP]

Verification to be performed on the following:
        Cluster Topology
        Cluster Resources

Verification will interactively correct verification errors.


Retrieving data from available cluster nodes. This could take a few minutes.

        Start data collection on node aixdev01
        Start data collection on node aixdev02
[MORE...88]

F1=Help        F2=Refresh           F3=Cancel        F6=Command
F8=Image       F9=Shell             F10=Exit         /=Find
n=Find Next

Validando o CAA cluster

root@aixdev01:/#lscluster -c
Cluster Name: oracluster
Cluster UUID: d1780f7e-43dd-11e7-aa1c-a20f5b207805
Number of nodes in cluster = 2
        Cluster ID for node aixdev01: 1
        Primary IP address for node aixdev01: 192.168.0.15
        Cluster ID for node aixdev02: 2
        Primary IP address for node aixdev02: 192.168.0.16
Number of disks in cluster = 1
        Disk = hdisk1 UUID = 23e720c5-0c31-8c12-9379-ed836d4d9d5e cluster_major = 0 cluster_minor = 1
Multicast for site LOCAL: IPv4 228.168.0.15 IPv6 ff05::e4a8:f
Communication Mode: multicast
Local node maximum capabilities: HNAME_CHG, UNICAST, IPV6, SITE
Effective cluster-wide capabilities: HNAME_CHG, UNICAST, IPV6, SITE
root@aixdev01:/#

root@aixdev01:/#lscluster -m
Calling node query for all nodes...
Node query number of nodes examined: 2

        Node name: aixdev01
        Cluster shorthand id for node: 1
        UUID for node: d17c6588-43dd-11e7-aa1c-a20f5b207805
        State of node: UP NODE_LOCAL
        Smoothed rtt to node: 0
        Mean Deviation in network rtt to node: 0
        Number of clusters node is a member in: 1
        CLUSTER NAME    SHID    UUID
        oracluster      0       d1780f7e-43dd-11e7-aa1c-a20f5b207805
        SITE NAME       SHID    UUID
        LOCAL           1       51735173-5173-5173-5173-517351735173

        Points of contact for node: 0

----------------------------------------------------------------------------

        Node name: aixdev02
        Cluster shorthand id for node: 2
        UUID for node: d1ad5b3e-43dd-11e7-aa1c-a20f5b207805
        State of node: UP
        Smoothed rtt to node: 7
        Mean Deviation in network rtt to node: 3
        Number of clusters node is a member in: 1
        CLUSTER NAME    SHID    UUID
        oracluster      0       d1780f7e-43dd-11e7-aa1c-a20f5b207805
        SITE NAME       SHID    UUID
        LOCAL           1       51735173-5173-5173-5173-517351735173

        Points of contact for node: 2
        -----------------------------------------------------------------------
        Interface State Protocol Status SRC_IP->DST_IP
        -----------------------------------------------------------------------
        en0       UP    IPv4     none   none
        en1       UP    IPv4     none   none
root@aixdev01:/#

Próximo artigo configuraremos os Recursos do Cluster

 

Douglas Ribas de Mattos
E-mail: douglasmattos0@gmail.com
LinkedIn: https://www.linkedin.com/in/douglasmattos0/
Blog: http://www.douglasmattos.com
Twitter: @douglasmattos0

1 comentário

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s