martes, 28 de mayo de 2013

Como aplicar un fixpack a WebSphere Portal 7

Primero deben de bajarse el update Installer para el WebSphere Portal Server 7 para su SO en la pagina de IBM.

Se van a la ruta donde se encuentra instalado el portal server:
/opt/IBM/WebSphere/PortalServer

Crean la carpeta update, se cambian a ese directorio, mueven su archivo tar y lo descomprimen ahi:

mkdir update
cd update
mv /home/javier/Downloads/7.0-WP-UpdateInstaller-Linux-x86.tar .
tar xvf 7.0-WP-UpdateInstaller-Linux-x86.tar

Ahora crean dos directorios, bajo update: fixes y fixpacks:

mkdir fixes
mkdir fixpacks

Ahora copian al directorio de fixpacks los archivos fixpack y al directorio fixes los cumulative fixes.

Unzipean el fixpack

unzip 7.0.0-WP-Multi-FP001.zip

Y ponen el archivo WP_PTF_7001.ptflist en el directorio de fixes:

mv /home/javier/Downloads/WP_PTF_7001.ptflist .

Ponen la variable de entorno de WAS_HOME para que el instalador no llore:

export WAS_HOME=/opt/IBM/WebSphere/AppServer

Hay que abrir el siguiente archivo y modificar lo siguiente:

vi /opt/IBM/WebSphere/wp_profile/ConfigEngine/properties/wkplc.properties

WasPassword=ReplaceWithYourPwd  #Linea 156
PortalAdminPwd=ReplaceWithYourPwd #Linea 351

Luego ejecutan el siguiente comando:

./updatePortal.sh -fixpack -installDir "/opt/IBM/WebSphere/PortalServer" -fixpackDir "/opt/IBM/WebSphere/PortalServer/update/fixpacks" -install -fixpackID WP_PTF_7001
*el fixpackID viene en el archivo .ptflist , en mi caso instale el fixpack 1, ustedes checkenlo dependiendo el que instalen.
Y se van y se toman un cafe porque tarda como 10 minutos en instalar, si todo ha salido bien veran lo siguiente al final:
Log: ExecCmd::launch returns 0
Task 601 out of 602; End Installing fix pack 'WP_PTF_7001', component 'wp.ptf.config'.
Task 602 out of 602; Begin Completing fix pack 'WP_PTF_7001'
Task 602 out of 602; End Completing fix pack 'WP_PTF_7001'
subTmpDir to be cleaned up: /tmp/ptfs
Fix pack installation completed successfully.
chmod -R 550 /opt/IBM/WebSphere/PortalServer  done!
UpdateInstaller.puiReturnCode is 0
End of [ ./updatePortal.sh ]

Y para los fixes ejecutan el siguiete comando:
./updatePortal.sh -fix -installDir "/opt/IBM/WebSphere/PortalServer" -fixDir "/opt/IBM/WebSphere/PortalServer/update/fixes" -install -fixes PM53918
Y veran lo siguiente si todo sale bien:
Log: ExecCmd::launch returns 0
Task 605 out of 606; End (1 of 1) Installing fix PM53918.installing component 604 of 604: wp.ptf.config. 
Task 606 out of 606; Begin (1 of 1) Installing fix PM53918.completing installation
Task 606 out of 606; End (1 of 1) Installing fix PM53918.completing installation
subTmpDir to be cleaned up: /tmp/efixes
chmod -R 550 /opt/IBM/WebSphere/PortalServer  done!
Fix installation completed successfully.
UpdateInstaller.puiReturnCode is 0
End of [ ./updatePortal.sh ]

No hay comentarios:

Publicar un comentario