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

Agora que temos a topologia de rede configurada e o servico de XNTP ativo, vamos prosseguir com a instalação dos Prereqs e o Software PowerHA.

Montamos o CD de instalação do AIX e rodamos o comando abaixo para instalação dos prereqs

root@aixdev01:/#mount -V cdrfs -o ro /dev/cd0 /mnt
root@aixdev01:/#cd /mnt/usr/sys/inst.images
root@aixdev01:/mnt/usr/sys/inst.images#
root@aixdev01:/mnt/usr/sys/inst.images#installp -ac -Y -d . \
> openssh.base \
> openssl.base \
> openssl.man.en_US \
> openssh.man.en_US \
> bos.adt \
> bos.ahafs \
> bos.cluster \
> bos.clvm \
> devices.common.IBM.storfwork \
> rsct.basic \
> rsct.compat.basic \
> rsct.compat.clients
...
[]

Installation Summary
--------------------
Name                Level      Part  Event Result
-------------------------------------------------------------------------------
openssh.base.client 6.0.0.6103 USR   APPLY SUCCESS
openssh.base.server 6.0.0.6103 USR   APPLY SUCCESS
openssh.base.client 6.0.0.6103 ROOT  APPLY SUCCESS
openssh.base.server 6.0.0.6103 ROOT  APPLY SUCCESS
bos.adt.utils       6.1.8.0    USR   APPLY SUCCESS
bos.adt.syscalls    6.1.9.30   USR   APPLY SUCCESS
bos.adt.sccs        6.1.9.0    USR   APPLY SUCCESS
bos.adt.samples     6.1.9.0    USR   APPLY SUCCESS
bos.adt.prt_tools   6.1.3.0    USR   APPLY SUCCESS
bos.adt.prof        6.1.9.30   USR   APPLY SUCCESS
bos.adt.libmio      6.1.8.0    USR   APPLY SUCCESS
bos.adt.insttools   6.1.9.15   USR   APPLY SUCCESS
bos.adt.graphics    6.1.0.0    USR   APPLY SUCCESS
bos.adt.insttools   6.1.9.15   ROOT  APPLY SUCCESS
bos.adt.data        6.1.0.0    SHARE APPLY SUCCESS
openssh.man.en_US   6.0.0.6103 USR   APPLY SUCCESS
root@aixdev01:/mnt/usr/sys/inst.images#

Aumentar o tamanho do /tmp para 2G para acomodar os arquivos de instalação do PowerHA. Descompactar o instalador em uma pasta qualquer. Escolhi o /tmp/powerha

root@aixdev01:/mnt/usr/sys/inst.images#chfs -a size=2G /tmp
Filesystem size changed to 4194304
root@aixdev01:/mnt/usr/sys/inst.images# cd /tmp
root@aixdev01:/tmp#mkdir powerha
root@aixdev01:/tmp#_Standard_Edition_V7.1.1_122011.tar.gz powerha <
root@aixdev01:/tmp# cd powerha
root@aixdev01:/tmp/powerha# gunzip ESD_-_PowerHA_SystemMirror_Standard_Edition_V7.1.1_122011.tar.gz
root@aixdev01:/tmp/powerha# tar -xvf ESD_-_PowerHA_SystemMirror_Standard_Edition_V7.1.1_122011.tar

O próximo passo é configurar os discos no VIO para os VGs concorrentes. VG de dados/aplicações e o CAA. Nesta máquina 9117-570, temos 6 discos internos em 2 controladoras. Os discos hdisk0 e hdisk3 foram utilizados para o rootvg do vio. Os demais discos serão utilizados para os VGs concorrentes.

$ oem_setup_env
# lsdev -Cc disk
hdisk0 Available 03-08-00-3,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 03-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 03-08-00-5,0 16 Bit LVD SCSI Disk Drive
hdisk3 Available 0A-08-00-3,0 16 Bit LVD SCSI Disk Drive
hdisk4 Available 0A-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk5 Available 0A-08-00-5,0 16 Bit LVD SCSI Disk Drive
#
# lspv
hdisk0 00c4218d31aeba66 rootvg active
hdisk1 none None
hdisk2 none None
hdisk3 00c4218d31cf27aa rootvg active
hdisk4 none None
hdisk5 none None
#

Vamos reservar o hdisk1 para o CAA, e os demais discos (hdisk2, hdisk4 e hdisk5) para o VG concorrente.

Desabilitando o SCSI reservation no VIOS

$ oem_setup_env
# for i in 1 2 4 5
> do
> chdev -l hdisk$i -a reserve_policy=no_reserve
> done
hdisk1 changed
hdisk2 changed
hdisk4 changed
hdisk5 changed
#

Configurando o PVID em todos os nós do cluster

# lspv
hdisk0 00c4218d31aeba66 rootvg         active
hdisk1                  none           None
hdisk2                  none           None
hdisk3 00c4218d31cf27aa rootvg         active
hdisk4                  none           None
hdisk5                  none           None
# for i in 1 2 4 5
> do
> chdev -l hdisk$i -a pv=yes
> done
hdisk1 changed
hdisk2 changed
hdisk4 changed
hdisk5 changed
# lspv
hdisk0 00c4218d31aeba66  rootvg  active
hdisk1 00c4218d4aae9afb  None
hdisk2 00c4218d4aae9d39  None
hdisk3 00c4218d31cf27aa  rootvg  active
hdisk4 00c4218d4aae9f4c  None
hdisk5 00c4218d4aaea09a  None
#

Adicionando os discos hdisk1, hdisk2, hdisk4 e hdisk5 aos vhosts das LPARs

$ mkvdev -vdev hdisk1 -vadapter vhost0 -dev aixdev01_hdisk1
aixdev01_hdisk1 Available
$ mkvdev -vdev hdisk2 -vadapter vhost0 -dev aixdev01_hdisk2
aixdev01_hdisk2 Available
$ mkvdev -vdev hdisk4 -vadapter vhost0 -dev aixdev01_hdisk3
aixdev01_hdisk3 Available
$ mkvdev -vdev hdisk5 -vadapter vhost0 -dev aixdev01_hdisk4
aixdev01_hdisk4 Available

$ mkvdev -f -vdev hdisk1 -vadapter vhost1 -dev aixdev02_hdisk1
aixdev02_hdisk1 Available
$ mkvdev -f -vdev hdisk2 -vadapter vhost1 -dev aixdev02_hdisk2
aixdev02_hdisk2 Available
$ mkvdev -f -vdev hdisk4 -vadapter vhost1 -dev aixdev02_hdisk3
aixdev02_hdisk3 Available
$ mkvdev -f -vdev hdisk5 -vadapter vhost1 -dev aixdev02_hdisk4
aixdev02_hdisk4 Available

Nos nós do cluster, rodar o comando cfgmgr para reconhecer os discos

root@aixdev01:/tmp/powerha#lspv
hdisk0          00c4218d475d8639      rootvg active
root@aixdev01:/tmp/powerha#cfgmgr
root@aixdev01:/tmp/powerha#lspv
hdisk0          00c4218d475d8639      rootvg active
hdisk1          00c4218d4aae9afb      None
hdisk2          00c4218d4aae9d39      None
hdisk3          00c4218d4aae9f4c      None
hdisk4          00c4218d4aaea09a      None
root@aixdev01:/tmp/powerha#

[]
root@aixdev02:/tmp/powerha#lspv
hdisk0          00c4218d475dbb7d      rootvg active
root@aixdev02:/tmp/powerha#cfgmgr
root@aixdev02:/tmp/powerha#lspv
hdisk0          00c4218d475dbb7d      rootvg active
hdisk1          00c4218d4aae9afb      None
hdisk2          00c4218d4aae9d39      None
hdisk3          00c4218d4aae9f4c      None
hdisk4          00c4218d4aaea09a      None
root@aixdev02:/tmp/powerha#

Criando o VG Concorrente para as aplicações e os Filesystems

root@aixdev01:/tmp/powerha# mkvg -S -y app1vg -n -V 100 -C hdisk2 hdisk3 hdisk4
app1vg
mkvg: This concurrent capable volume group must be varied on manually.
root@aixdev01:/tmp/powerha#
root@aixdev01:/tmp/powerha# lspv
hdisk0          00c4218d475d8639      rootvg active
hdisk1          00c4218d4aae9afb      None
hdisk2          00c4218d4aae9d39      app1vg
hdisk3          00c4218d4aae9f4c      app1vg
hdisk4          00c4218d4aaea09a      app1vg
root@aixdev01:/tmp/powerha#

Checando o Major Number do VG

root@aixdev01:/tmp/powerha#ls -al /dev/app1vg
crw-rw---- 1 root system 100, 0 May 27 11:59 /dev/app1vg
root@aixdev01:/tmp/powerha#

Vamos criar um FS chamado /media neste VG app1vg com 20G

root@aixdev01:/tmp/powerha#mklv -y lvmedia -t jfs2 -a c -e x app1vg 160
lvmedia
root@aixdev01:/tmp/powerha# crfs -v jfs2 -d lvmedia -m /media -A no -p rw -a agblksize='4096' -a isnapshot=no 
File system created successfully.
20970676 kilobytes total disk space.
New File System size is 41943040
root@aixdev01:/tmp/powerha#
root@aixdev01:/tmp/powerha#mount /media
root@aixdev01:/tmp/powerha#df
Filesystem 512-blocks     Free %Used    Iused %Iused Mounted on
/dev/hd4       524288   142344   73%    10510    39% /
/dev/hd2      5111808   246216   96%    49358    61% /usr
/dev/hd9var   1179648   577208   52%     6806    10% /var
/dev/hd3      4194304  3484736   17%     2874     1% /tmp
/dev/hd1       131072   130360    1%        5     1% /home
/dev/hd11admin 262144   261384    1%        5     1% /admin
/proc               -        -     -        -      - /proc
/dev/hd10opt   786432   362768   54%     8919    18% /opt
/dev/livedump  524288   523552    1%        4      1% /var/adm/ras/livedump
/dev/cd0      8850320        0  100%  2212580    100% /mnt
/dev/lvmedia 41943040 41935984    1%        4      1% /media
root@aixdev01:/tmp/powerha#

Agora vamos desmontar o FS /media e fazer o varyoffvg no app1vg

root@aixdev01:/tmp/powerha#umount /media
root@aixdev01:/tmp/powerha#varyoffvg app1vg
root@aixdev01:/tmp/powerha#

Agora no nó secundário vamos importar o VG app1 e montar o /media

root@aixdev02:/tmp/powerha#importvg -V 100 -y app1vg -c hdisk2
app1vg
0516-783 importvg: This imported volume group is concurrent capable.
 Therefore, the volume group must be varied on manually.
root@aixdev02:/tmp/powerha#varyonvg app1vg
root@aixdev02:/tmp/powerha#mount /media
root@aixdev02:/tmp/powerha#df
Filesystem 512-blocks     Free %Used    Iused %Iused Mounted on
/dev/hd4       524288   142344   73%    10510    39% /
/dev/hd2      5111808   246216   96%    49358    61% /usr
/dev/hd9var   1179648   577208   52%     6806    10% /var
/dev/hd3      4194304  3484736   17%     2874     1% /tmp
/dev/hd1       131072   130360    1%        5     1% /home
/dev/hd11admin 262144   261384    1%        5     1% /admin
/proc               -        -     -        -      - /proc
/dev/hd10opt   786432   362768   54%     8919    18% /opt
/dev/livedump  524288   523552    1%        4      1% /var/adm/ras/livedump
/dev/cd0      8850320        0  100%  2212580    100% /mnt
/dev/lvmedia 41943040 41935984    1%        4      1% /media
root@aixdev02:/tmp/powerha#

Agora vamos executar o comando installp para instalar os filesets básicos do PowerHA

root@aixdev01:/tmp/powerha# installp -ac -Y -d . \
cluster.es.client \
cluster.es.cspoc \
cluster.es.migcheck \
cluster.es.server \
cluster.license
...
[]
+-----------------------------------------------------------------------------+
 Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                       Level   Part Event Result
-------------------------------------------------------------------------------
cluster.license            7.1.1.0 USR  APPLY SUCCESS
cluster.es.migcheck        7.1.1.0 USR  APPLY SUCCESS
cluster.es.migcheck        7.1.1.0 ROOT APPLY SUCCESS
cluster.es.cspoc.rte       7.1.1.0 USR  APPLY SUCCESS
cluster.es.cspoc.dsh       7.1.1.0 USR  APPLY SUCCESS
cluster.es.cspoc.cmds      7.1.1.0 USR  APPLY SUCCESS
cluster.es.cspoc.rte       7.1.1.0 ROOT APPLY SUCCESS
cluster.es.client.rte      7.1.1.0 USR  APPLY SUCCESS
cluster.es.client.wsm      7.1.1.0 USR  APPLY SUCCESS
cluster.es.client.utils    7.1.1.0 USR  APPLY SUCCESS
cluster.es.client.lib      7.1.1.0 USR  APPLY SUCCESS
cluster.es.client.clcomd   7.1.1.0 USR  APPLY SUCCESS
cluster.es.client.rte      7.1.1.0 ROOT APPLY SUCCESS
cluster.es.client.wsm      7.1.1.0 ROOT APPLY SUCCESS
cluster.es.client.lib      7.1.1.0 ROOT APPLY SUCCESS
cluster.es.client.clcomd   7.1.1.0 ROOT APPLY SUCCESS
cluster.es.server.testtool 7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.rte      7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.utils    7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.events   7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.diag     7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.cfgast   7.1.1.0 USR  APPLY SUCCESS
cluster.es.server.rte      7.1.1.0 ROOT APPLY SUCCESS
cluster.es.server.utils    7.1.1.0 ROOT APPLY SUCCESS
cluster.es.server.events   7.1.1.0 ROOT APPLY SUCCESS
cluster.es.server.diag     7.1.1.0 ROOT APPLY SUCCESS
root@aixdev01:/tmp/powerha#

No próximo artigo iremos configurar o Cluster.

 

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