1.subida de nivel del aix 6

11
Subina de nivel del aix 6.1 en máquina de porcelanosa De Maniac 19:30 LLamamos a SAP para que bajen el aplicativo 19:40 Nos llaman y nos dicen que están OK Apagamos el cluster #(PBW_A) />smitty hacmp HACMP for AIX Move cursor to desired item and press Enter. Initialization and Standard Configuration Extended Configuration ****System Management (C-SPOC) Problem Determination Tools System Management (C-SPOC) Move cursor to desired item and press Enter. ****Manage HACMP Services HACMP Communication Interface Management HACMP Resource Group and Application Management HACMP Log Viewing and Management HACMP File Collection Management HACMP Security and Users Management HACMP Logical Volume Management HACMP Concurrent Logical Volume Management HACMP Physical Volume Management Open a SMIT Session on a Node Manage HACMP Services Move cursor to desired item and press Enter. Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a... 1 de 11 02/09/2010 12:24

Upload: jomarequena

Post on 18-Jul-2015

273 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1.subida de nivel del aix 6

Subina de nivel del aix 6.1 en máquina de

porcelanosa

De Maniac

19:30 LLamamos a SAP para que bajen el aplicativo

19:40 Nos llaman y nos dicen que están OK

Apagamos el cluster

#(PBW_A) />smitty hacmp

HACMP for AIX

Move cursor to desired item and press Enter.

Initialization and Standard Configuration Extended Configuration ****System Management (C-SPOC) Problem Determination Tools

System Management (C-SPOC)

Move cursor to desired item and press Enter.

****Manage HACMP Services HACMP Communication Interface Management HACMP Resource Group and Application Management HACMP Log Viewing and Management HACMP File Collection Management HACMP Security and Users Management HACMP Logical Volume Management HACMP Concurrent Logical Volume Management HACMP Physical Volume Management

Open a SMIT Session on a Node

Manage HACMP Services

Move cursor to desired item and press Enter.

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

1 de 11 02/09/2010 12:24

Page 2: 1.subida de nivel del aix 6

Start Cluster Services ***** Stop Cluster Services Show Cluster Services

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 [PBW_A,PBW_B] + BROADCAST cluster shutdown? true + * Shutdown mode graceful +

COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

PBW_A: 0513-044 The clinfoES Subsystem was requested to stop. PBW_A: Sep 1 2010 19:42:07 /usr/es/sbin/cluster/utilities/clstop: called with f lags -N -g PBW_A: PBW_B: 0513-044 The clinfoES Subsystem was requested to stop. PBW_B: Sep 1 2010 19:42:23 /usr/es/sbin/cluster/utilities/clstop: called with f lags -N -g PBW_B:

#(PBW_A) />tail -f /tmp/hacmp.out :event_error[+84] 1> /dev/console :event_error[+85] dspmsg scripts.cat 9646 WARNING: Cluster PBW Failed while running event [FAIL], exit status was 1\n PB WARNING: Cluster PBW Failed while running event [FAIL], exit status was 1 :event_error[+90] PBW_A = PBW_A :event_error[+94] dspmsg scripts.cat 9648 Check hacmp.out on this node for errors.\n Check hacmp.out on this node for errors. :event_error[+94] FAIL = reconfig_resource* :event_error[+117] exit 0 Sep 1 19:43:31 EVENT COMPLETED: event_error 1 TE_FAIL_NODE 0

Cuando esté todo abajo reiniciamos

#(PBW_A) /> #(PBW_A) />shutdown -Fr

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

2 de 11 02/09/2010 12:24

Page 3: 1.subida de nivel del aix 6

#(PBW_B) /> #(PBW_B) />shutdown -Fr

Montamos en los dos nodos el TL5

#(PBW_A) />showmount -e aixpruebas export list for aixpruebas: /exports/TL5_SP1 (everyone) /export/spot/spot_aix6.1/spot_aix6-1/usr aixpruebas.gp.int,DXI

#(PBW_A) />smitty nfs

NFS

Move cursor to desired item and press Enter.

Configure TCP/IP (If Not Already Configured) **** Network File System (NFS) Network Information Service (NIS) Configure Secure NFS & NIS

Network File System (NFS)

Move cursor to desired item and press Enter.

Configure NFS on This System Add a Directory to Exports List Change / Show Attributes of an Exported Directory Remove a Directory from Exports List **** Add a File System for Mounting Change / Show Attributes of an NFS File System Remove an NFS File System Flush NFS V4 Translation Cache Add NFSv4 File System FSID Options Change / Show NFSv4 File System FSID Options Reset NFSv4 File System FSID Options

Add a File System for Mounting

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

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

3 de 11 02/09/2010 12:24

Page 4: 1.subida de nivel del aix 6

[TOP] [Entry Fields] * Pathname of mount point [/mnt] / * Pathname of remote directory [/exports/TL5_SP1] * Host where remote directory resides [aixpruebas] Mount type name [] * Security method [sys] + * Mount now, add entry to /etc/filesystems or both? now + * /etc/filesystems entry will mount the directory no + on system restart. * Mode for this NFS file system read-write + * Attempt mount in foreground or background background + Number of times to attempt mount [] # Buffer size for read [] # Buffer size for writes []

COMMAND STATUS

Command: OK stdout: no stderr: no

Before command completion, additional instructions may appear below.

#(PBW_A) />cd /mnt #(PBW_A) /mnt>smitty install

Software Installation and Maintenance

Move cursor to desired item and press Enter.

**** Install and Update Software List Software and Related Information Software Maintenance and Utilities Software Service Management Relocatable Software Installation and Maintenance Network Installation Management EZ NIM (Easy NIM Tool) System Workload Partition Software Maintenance System Backup Manager Alternate Disk Installation EFIX Management Thin Server Maintenance

Install and Update Software

Move cursor to desired item and press Enter.

**** Install Software Update Installed Software to Latest Level (Update All) Install Software Bundle Update Software by Fix (APAR) Install and Update from ALL Available Software

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

4 de 11 02/09/2010 12:24

Page 5: 1.subida de nivel del aix 6

Install Software

Type or select a value for the entry field. Press Enter AFTER making all desired changes.

[Entry Fields] * INPUT device / directory for software [.] +

Install Software

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

[TOP] [Entry Fields] * INPUT device / directory for software . * SOFTWARE to install [_all_latest] + PREVIEW only? (install operation will NOT occur) no + COMMIT software updates? yes + SAVE replaced files? no + AUTOMATICALLY install requisite software? yes + EXTEND file systems if space needed? yes + OVERWRITE same or newer versions? no + VERIFY install and check file sizes? no + Include corresponding LANGUAGE filesets? yes + DETAILED output? no + Process multiple volumes? yes + ACCEPT new license agreements? yes +

Copiasmos todos los rsct de la ruta aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc a la máquina destino

#aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp rsct.compat.basic pbw_b:/tmp/cluster/ rsct.compat.basic #aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp rsct.basic pbw_b:/tmp/cluster/

rsct.basic 100% 28MB 9.4MB/s 00:03

#aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp rsct.compat.clients rsct.core rsct.lapi pbw_b:/tmp/cluster/

rsct.compat.clients 100% 513KB 513.0KB/s 00:00

rsct.core rsct.lapi

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

5 de 11 02/09/2010 12:24

Page 6: 1.subida de nivel del aix 6

luego instalamos con smitty install pero solo los de rsct. Despues nos vamos al directorio /mnt e instalamos el

rsct.basic

#(PBW_B) /mnt>lslpp -l|grep rsct.basic rsct.basic.hacmp 2.5.5.0 COMMITTED RSCT Basic Function (HACMP/ES rsct.basic.rte 2.5.5.0 COMMITTED RSCT Basic Function rsct.basic.sp 2.5.5.0 COMMITTED RSCT Basic Function (PSSP rsct.basic.rte 2.5.5.0 COMMITTED RSCT Basic Function

Copiasmos otros que faltan del oslevel -rl 05

#aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp csm.client csm.core csm.deploy pbw_b:/tmp/cluster/

csm.client 100% 4763KB 4.7MB/s 00:00

csm.core csm.deploy #aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp bos.clvm.enh pbw_b:/tmp/cluster/ bos.clvm.enh: No such file or directory #aixpruebas:/nim/AIX_6100-03/DVD1/installp/ppc>scp bos.clvm* pbw_b:/tmp/cluster/ bos.clvm

subimos y luego con los de /mnt

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

6 de 11 02/09/2010 12:24

Page 7: 1.subida de nivel del aix 6

#(PBW_B) /mnt>oslevel -rl 05 Fileset Actual Level Recommended ML ----------------------------------------------------------------------------- bos.loc.iso.es_ES 6.1.0.0 6.1.5.0 devices.chrp.base.ServiceRM 1.3.0.80 1.4.5.0 devices.msg.CA_ES.base.com 6.1.2.0 6.1.4.0 devices.msg.CA_ES.diag.rte 6.1.2.0 6.1.4.0 devices.msg.CA_ES.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.CA_ES.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.CS_CZ.base.com 6.1.2.0 6.1.4.0 devices.msg.CS_CZ.diag.rte 6.1.2.0 6.1.4.0 devices.msg.CS_CZ.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.CS_CZ.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.DE_DE.base.com 6.1.2.0 6.1.4.0 devices.msg.DE_DE.diag.rte 6.1.2.0 6.1.4.0 devices.msg.DE_DE.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.DE_DE.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.EN_US.base.com 6.1.2.0 6.1.4.0 devices.msg.EN_US.diag.rte 6.1.2.0 6.1.4.0 devices.msg.EN_US.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.EN_US.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.ES_ES.base.com 6.1.2.0 6.1.4.0 devices.msg.ES_ES.diag.rte 6.1.2.0 6.1.4.0 devices.msg.ES_ES.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.ES_ES.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.FR_FR.base.com 6.1.2.0 6.1.4.0 devices.msg.FR_FR.diag.rte 6.1.2.0 6.1.4.0 devices.msg.FR_FR.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.FR_FR.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.HU_HU.base.com 6.1.2.0 6.1.4.0 devices.msg.HU_HU.diag.rte 6.1.2.0 6.1.4.0 devices.msg.HU_HU.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.HU_HU.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.IT_IT.base.com 6.1.2.0 6.1.4.0 devices.msg.IT_IT.diag.rte 6.1.2.0 6.1.4.0 devices.msg.IT_IT.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.IT_IT.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.JA_JP.base.com 6.1.2.0 6.1.4.0 devices.msg.JA_JP.diag.rte 6.1.2.0 6.1.4.0 devices.msg.JA_JP.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.JA_JP.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.Ja_JP.base.com 6.1.2.0 6.1.4.0 devices.msg.Ja_JP.diag.rte 6.1.2.0 6.1.4.0 devices.msg.Ja_JP.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.Ja_JP.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.KO_KR.base.com 6.1.2.0 6.1.4.0 devices.msg.KO_KR.diag.rte 6.1.2.0 6.1.4.0 devices.msg.KO_KR.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.KO_KR.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.PL_PL.base.com 6.1.2.0 6.1.4.0 devices.msg.PL_PL.diag.rte 6.1.2.0 6.1.4.0 devices.msg.PL_PL.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.PL_PL.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.PT_BR.base.com 6.1.2.0 6.1.4.0 devices.msg.PT_BR.diag.rte 6.1.2.0 6.1.4.0 devices.msg.PT_BR.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.PT_BR.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.RU_RU.base.com 6.1.2.0 6.1.4.0 devices.msg.RU_RU.diag.rte 6.1.2.0 6.1.4.0 devices.msg.RU_RU.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.RU_RU.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.SK_SK.base.com 6.1.2.0 6.1.4.0 devices.msg.SK_SK.diag.rte 6.1.2.0 6.1.4.0 devices.msg.SK_SK.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.SK_SK.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.ZH_CN.base.com 6.1.2.0 6.1.4.0 devices.msg.ZH_CN.diag.rte 6.1.2.0 6.1.4.0 devices.msg.ZH_CN.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.ZH_CN.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.ZH_TW.base.com 6.1.2.0 6.1.4.0 devices.msg.ZH_TW.diag.rte 6.1.2.0 6.1.4.0 devices.msg.ZH_TW.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.ZH_TW.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.Zh_CN.base.com 6.1.2.0 6.1.4.0 devices.msg.Zh_CN.diag.rte 6.1.2.0 6.1.4.0 devices.msg.Zh_CN.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.Zh_CN.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.Zh_TW.base.com 6.1.2.0 6.1.4.0 devices.msg.Zh_TW.diag.rte 6.1.2.0 6.1.4.0 devices.msg.Zh_TW.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.Zh_TW.sys.mca.rte 6.1.2.0 6.1.4.0 devices.msg.ca_ES.base.com 6.1.2.0 6.1.4.0 devices.msg.ca_ES.diag.rte 6.1.2.0 6.1.4.0 devices.msg.ca_ES.rspc.base.com 6.1.2.0 6.1.4.0 devices.msg.ca_ES.sys.mca.rte 6.1.2.0 6.1.4.0

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

7 de 11 02/09/2010 12:24

Page 8: 1.subida de nivel del aix 6

Todos estos los podemos borrar

Desinstalamos todos los paquetes que sean inferiores

for a in `oslevel -rl 05|awk '{print $1}'` do installp -u $a done

#(PBW_B) /mnt>oslevel -rl 05 #(PBW_B) /mnt> #(PBW_B) /mnt> #(PBW_B) /mnt>oslevel -s 6100-05-01-1016

Reiniciamos los dos nodos de nuevo

shutdown -Fr

ahora arrancamos el cluster para ver que funciona todo

#(PBW_A) />smitty hacmp

HACMP for AIX

Move cursor to desired item and press Enter.

Initialization and Standard Configuration Extended Configuration **** System Management (C-SPOC) Problem Determination Tools

System Management (C-SPOC)

Move cursor to desired item and press Enter.

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

8 de 11 02/09/2010 12:24

Page 9: 1.subida de nivel del aix 6

**** Manage HACMP Services HACMP Communication Interface Management HACMP Resource Group and Application Management HACMP Log Viewing and Management HACMP File Collection Management HACMP Security and Users Management HACMP Logical Volume Management HACMP Concurrent Logical Volume Management HACMP Physical Volume Management

Open a SMIT Session on a Node

Manage HACMP Services

Move cursor to desired item and press Enter.

**** Start Cluster Services Stop Cluster Services Show Cluster Services

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 [PBW_A,PBW_B] BROADCAST message at startup? true Startup Cluster Information Daemon? true Reacquire resources after forced down? false Ignore verification errors? false Automatically correct errors found during Interactively cluster start?

revisamos en el hacmp.out en /tmp

veremos cosas como

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

9 de 11 02/09/2010 12:24

Page 10: 1.subida de nivel del aix 6

:cl_cfgvg[52] mndhb_vg_02 == mndhb_vg_02 :cl_cfgvg[54] inact=0 :cl_cfgvg[55] break :cl_cfgvg[59] 0 == 1 :cl_cfgvg[68] awk '($1 == "auto_on") {print $2}' :cl_cfgvg[68] lsattr -El old_rootvg :cl_cfgvg[68] LANG=C :cl_cfgvg[68] auto_on=n :cl_cfgvg[69] n == y :node_up[+482] read device status rest :node_up[+495] exit 0 Sep 1 21:08:09 EVENT COMPLETED: node_up PBW_B 0

Esto suele ser el final

HACMP Event Summary Event: network_up_complete PBW_B net_diskhbmulti_02 Start time: Wed Sep 1 21:08:32 2010

End time: Wed Sep 1 21:08:33 2010

Action: Resource: Script Name: ---------------------------------------------------------------------------- No resources changed as a result of this event ----------------------------------------------------------------------------

#(PBW_A) />clRGinfo ----------------------------------------------------------------------------- Group Name State Node ----------------------------------------------------------------------------- PBW_resourcegr ONLINE PBW_A OFFLINE PBW_B

rg_diskhbmulti ONLINE PBW_A ONLINE PBW_B

rg_diskhbmulti ONLINE PBW_A ONLINE PBW_B

Llamamos a SAP para ver si ha levantado correctamente antes de subir el nivel del hacmp en el nodo B

Apagamos el nodo donde no está el recurso

Stop Cluster Services

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

10 de 11 02/09/2010 12:24

Page 11: 1.subida de nivel del aix 6

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 [PBW_B] BROADCAST cluster shutdown? true * Shutdown mode graceful

ahora instalamos todos los paquetes del cluster.*

NOS FALLA PORQUE NO TENEMOS LAS DEPENDENCIAS

Obtenido de "http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_aix_6.1_en_m

%C3%A1quina_de_porcelanosa"

Esta página fue modificada por última vez el 08:01, 2 sep 2010.

El contenido está disponible bajo los términos de la GNU Free Documentation License 1.2

Subina de nivel del aix 6.1 en máquina de porcelanosa - Maniac http://10.228.138.44/html/mediawiki/index.php/Subina_de_nivel_del_a...

11 de 11 02/09/2010 12:24