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

Neste artigo vamos configurar as Recursos do PowerHA SystemMirror.

Configuração do IP de Serviço

Execute o comando  smitty sysmirror e selecione Cluster Applications and Resources -> Resources -> Configure Service IP Labels/Addresses -> Add a Service IP Label/Address -> Select the network name, Caso voce possua masis de um IP de serviço repita este passo para todos eles.

                         Add a Service IP Label/Address

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

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












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

Status da configuração do IP de serviço

                               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

No próximo passo iremos configurar em qual adaptador base o IP de Serviço será colocado. Para “PowerHA service IP addresses distribution policies” vamos utilizar Collocation with Persistent Label.

Execute o comando  smitty sysmirror e selecione Cluster Applications and Resources -> Resources -> Configure Service IP Labels/Addresses -> Configure Service IP Label/Address Distribution Preferences. Em seguida selecione a rede.

           Configure Service IP Labels/Address Distribution Preference

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

                                                 [Entry Fields]
* Network Name                                   net_ether_01
* Distribution Preference                        Collocation with Pers>  +
 Source IP Label for outgoing packets                                    +












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

Em seguida status da configuração

                                    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

 

Verificando os ajustes do IP de Serviço

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
oracle01 service net_ether_01 ether public aixdev01 192.168.0.20 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
oracle01 service net_ether_01 ether public aixdev02 192.168.0.20 255.255.255.0 24
root@aixdev01:/#

Criando o Resource Group

Execute o comando  smitty sysmirror e selecione Cluster Applications and Resources -> Resource Groups -> Add a Resource Group. Vamos criar o resource group oraclerg.

                              Add a Resource Group

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

                                                   [Entry Fields]
* Resource Group Name                              [oraclerg]
* Participating Nodes (Default Node Priority)      [aixdev01 aixdev02]    +

 Startup Policy                                    Online On First Avail> +
 Fallover Policy                                   Fallover To Next Prio> +
 Fallback Policy                                   Fallback To Higher Pr> +









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

Em seguida status da configuração

                                    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

Definido recursos e atributos ao resource group

Nesta etapa iremos definir o endereço de serviço e o VG compartilhado. Execute o comando  smitty sysmirror e selecione Cluster Applications and Resources -> Resource Groups -> Change/Show Resources and Attributes for a Resource Group -> Select the resource group.

         Change/Show All Resources and Attributes for a Resource Group

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

[TOP]                                             [Entry Fields]
 Resource Group Name                              oraclerg
 Participating Nodes (Default Node Priority)      aixdev01 aixdev02

 Startup Policy                                   Online On First Avail>
 Fallover Policy                                  Fallover To Next Prio>
 Fallback Policy                                  Fallback To Higher Pr>
 Fallback Timer Policy (empty is immediate)       []                      +

 Service IP Labels/Addresses                      [oracle01]              +
 Application Controllers                          [] +

 Volume Groups                                    [app1vg]                +
 Use forced varyon of volume groups, if necessary false                   +
[MORE...20]

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

Em seguida status da configuração

                                    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 os recursos do Cluster

Vamos rever todas as modificações feitas antes de executar a sincronização de cluster.

Execute o comando  smitty sysmirror e selecione Cluster Applications and Resources -> Resource Groups -> Show All Resources by Node or Resource Group -> Show Resource Information by Resource Group -> Select resource group.

                             COMMAND STATUS

Command: OK              stdout: yes            stderr: no

Before command completion, additional instructions may appear below.

[TOP]

Resource Group Name                            oraclerg
Participating Node Name(s)                     aixdev01 aixdev02
Startup Policy                                 Online On First Available No
de
Fallover Policy                                Fallover To Next Priority No
de In The List
Fallback Policy                                Fallback To Higher Priority
Node In The List
Site Relationship                              ignore
Node Priority
Service IP Label                               oracle01
[MORE...46]

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

Verificando e sincronizando as configurações de recursos 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]
Timer object autoclverify already exists

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
[MORE...72]

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

Finalmente vamos Iniciar o Cluster

Execute smitty sysmirror e selecione System Management (C-SPOC) -> PowerHA SystemMirror Services -> Start Cluster Services. Ou smitty clstart.

                             Start Cluster Services

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

                                                 [Entry Fields]
* Start now, on system restart or both           now                      +
 Start Cluster Services on these nodes           [aixdev01,aixdev02]      +
* Manage Resource Groups                         Automatically            +
 BROADCAST message at startup?                   false                    +
 Startup Cluster Information Daemon?             false                    +
 Ignore verification errors?                     false                    +
 Automatically correct errors found during       Interactively            +
 cluster start?







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

Status da subida do Cluster

                                COMMAND STATUS

Command: OK             stdout: yes          stderr: no

Before command completion, additional instructions may appear below.

[TOP]






Starting Cluster Services on node: aixdev01
This may take a few minutes. Please wait...
aixdev01: start_cluster: Starting PowerHA SystemMirror
aixdev01: 4587662 - 0:00 syslogd
aixdev01: Setting routerevalidate to 1
aixdev01: 0513-059 The clevmgrdES Subsystem has been started. Subsystem PID is 7
[MORE...44]

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

Verificando os serviços do PowerHA

root@aixdev01:/#/usr/es/sbin/cluster/utilities/clRGinfo -m
---------------------------------------------------------------------------------------------------------------------
Group Name Group State Application state Node 
---------------------------------------------------------------------------------------------------------------------
oraclerg ONLINE aixdev01


root@aixdev01:/#

root@aixdev01:/#netstat -i
Name Mtu   Network    Address         Ipkts Ierrs  Opkts Oerrs Coll
en0  1500  link#2     a2.f.5b.20.78.4  8783     0   5789     0    0
en0  1500  10.1.1     aixdev01b1       8783     0   5789     0    0
en0  1500  192.168.0  aixdev01         8783     0   5789     0    0
en0  1500  192.168.0  oracle01         8783     0   5789     0    0
en1  1500  link#3     a2.f.5b.20.78.5   551     0     45     0    0
en1  1500  10.10.1    aixdev01b2        551     0     45     0    0
lo0  16896 link#1                      5539     0   5539     0    0
lo0  16896 127        loopback         5539     0   5539     0    0
lo0  16896 ::1%1                       5539     0   5539     0    0
root@aixdev01:/#5

root@aixdev01:/#lspv
hdisk0          00c4218d475d8639     rootvg        active
hdisk1          00c4218d4aae9afb     caavg_private active
hdisk2          00c4218d4aae9d39     app1vg        concurrent
hdisk3          00c4218d4aae9f4c     app1vg        concurrent
hdisk4          00c4218d4aaea09a     app1vg        concurrent
root@aixdev01:/#

root@aixdev01:/#df
Filesystem    512-blocks     Free %Used Iused %Iused Mounted on
/dev/hd4          524288   141520   74% 10549    40% /
/dev/hd2         5111808   245208   96% 49461    61% /usr
/dev/hd9var      1179648   356184   70%  7091    15% /var
/dev/hd3         4194304  3483280   17%  2924     1% /tmp
/dev/hd1          131072   130360    1%     5     1% /home
/dev/hd11admin    262144   261384    1%     5     1% /admin
/proc                  -        -     -     -      - /proc
/dev/hd10opt      786432   362752   54%  8919    18% /opt
/dev/livedump     524288   523552    1%     4     1% /var/adm/ras/livedump
/aha                   -        -     -    51     1% /aha
/dev/lvmedia    41943040 41935984   1%      5     1% /media
root@aixdev01:/#

Testando a funcionalidade do cluster sem uma aplicação

Execute smitty sysmirror e selecione System Management (C-SPOC) -> Resource Groups and Applications -> Move Resource Groups to Another Node.

                        Resource Groups and Applications

Move cursor to desired item and press Enter.

  Show the Current State of Applications and Resource Groups
  +--------------------------------------------------------------------------+
  |                         Select Resource Group(s)                         |
  |                                                                          |
  | Move cursor to desired item and press Enter.                             |
  |                                                                          |
  |   #                                                                      |
  |   # Resource Group     State                Node(s) / Site               |
  |   #                                                                      |
  |     oraclerg           ONLINE               aixdev01 /                   |
  |                                                                          |
  |   #                                                                      |
  |   # Resource groups in node or site collocation configuration:           |
  |   # Resource Group(s) State Node / Site                                  |
  |   #                                                                      |
  |                                                                          |
  | F1=Help            F2=Refresh            F3=Cancel                       |
  | F8=Image           F10=Exit              Enter=Do                        |
F1| /=Find             n=Find Next                                           |
F9+--------------------------------------------------------------------------+

Selecione o nó destino para o resource group

                        Resource Groups and Applications

Move cursor to desired item and press Enter.

  Show the Current State of Applications and Resource Groups
  Bring a Resource Group Online
  Bring a Resource Group Offline
  Move Resource Groups to Another Node

  Suspend/Resume Application Monitoring
  Application Availability Analysis

  +--------------------------------------------------------------------------+
  |                        Select a Destination Node                         |
  |                                                                          |
  | Move cursor to desired item and press Enter.                             |
  |                                                                          |
  |   # *Denotes Originally Configured Highest Priority Node                 |
  |   aixdev02                                                               |
  |                                                                          |
  | F1=Help              F2=Refresh           F3=Cancel                      |
  | F8=Image             F10=Exit             Enter=Do                       |
F1| /=Find               n=Find Next                                         |
F9+--------------------------------------------------------------------------+

Confirme a operação de Move Resource Group

                     Move Resource Group(s) to Another Node

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

                                                  [Entry Fields]
 Resource Group(s) to be Moved                    oraclerg
 Destination Node                                 aixdev02













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

Operação realizada sem erros

                                  COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Attempting to move resource group oraclerg to node aixdev02.

Waiting for the cluster to process the resource group movement request....

Waiting for the cluster to stabilize.......

Resource group movement successful.
Resource group oraclerg is online on node aixdev02.



Cluster Name: oracluster
[MORE...11]

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

Validando VG/FS montado no outro nó

root@aixdev02:/#df
Filesystem   512-blocks    Free   %Used   Iused   %Iused   Mounted on
/dev/hd4         524288  141760     73%   10547      39%   /
/dev/hd2        5111808  245192     96%   49455      61%   /usr
/dev/hd9var     1179648  483560     60%    6759      11%   /var
/dev/hd3        4194304 3544696     16%    1808       1%   /tmp
/dev/hd1         131072  130360      1%       5       1%   /home
/dev/hd11admin   262144  261384      1%       5       1%   /admin
/proc                 -       -       -       -        -   /proc
/dev/hd10opt     786432   362752    54%    8919      18%   /opt
/dev/livedump    524288   523552     1%       4       1%   /var/adm/ras/livedump
/aha                  -        -      -      49       1%   /aha
/dev/lvmedia   41943040 41935984     1%       5       1%   /media
root@aixdev02:/#

Parando o cluster

                            Stop Cluster Services

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

                                                   [Entry Fields]
* Stop now, on system restart or both              now                    +
 Stop Cluster Services on these nodes              [aixdev01,aixdev02]    +
 BROADCAST cluster shutdown?                       false                  +
* Select an Action on Resource Groups              Bring Resource Groups> +











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

Confirmação da parada do Cluster

                             Stop Cluster Services

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

                                                   [Entry Fields]
* Stop now, on system restart or both              now                    +
 Stop Cluster Services on these nodes              [aixdev01,aixdev02]    +
 BROADCAST cluster shutdown?                       false                  +
* Select an Action on Resource Groups              Bring Resource Groups> +


  +--------------------------------------------------------------------------+
  | 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| F1=Help            F2=Refresh           F3=Cancel                        |
F5| F8=Image           F10=Exit             Enter=Do                         |
F9+--------------------------------------------------------------------------+

No próximo post vamos instalar e configurar a aplicação

 

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

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