Linux

Upgrading RHEL 5.6 to 5.8 with YUM

Pubblicato il
Recently i was committed to update a lab machine from RHEL 5.6 to RHEL 5.8
in order to make it compliant with a new version of flare that the storage team 
has scheduled to deploy on the Clariion.
To do this i used the yum method.
We are using an internal yum server that supply updates for all RHEL releases from 4.6 to 6.2.
So I did a yum update with the original repo file that still pointed to u6 dir on the yum server,
to bring the installed packages to the latest available level.
Later i did a yum clean all to clean the local cached yum files , replaced u6 with u8 in the repo file
and started to evaluate the real upgrade process.
I simulated this by executing “yum update” and answering N at the confirmation question.
After a review of the proposed packages , i am ready to go.
So let’s start the operation measuring also the elapsed time .
Please note that the following yum output is not complete because of its size !

[root@LABSERVER01 backup_config]# time yum -y update

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

Skipping security plugin, no data

Setting up Update Process

Resolving Dependencies

Skipping security plugin, no data

–> Running transaction check


Dependencies Resolved


Transaction Summary
================================================================================================================================================================================
Install       4 Package(s)
Upgrade     315 Package(s)

Total download size: 428 M
Downloading Packages:


——————————————————————————————————————————————————————————–
Total                                                                                                                                            18 MB/s | 428 MB     00:23
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

Complete!

real    10m30.912s
user    4m0.240s
sys     1m8.269s

[root@LABSERVER01 backup_config]#

After the completion of the yum update we need to install the kernel-debug package too , because it’s a dependency for oracleasm.
cd /root/ASM/2.6.18-308.8.2/
yum install kernel-debug
rpm -Uvh oracleasm-2.6.18-308.8.2.el5-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-308.8.2.el5debug-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-support-2.1.7-1.el5.x86_64.rpm
reboot && exit
After the reboot we can verify that the version is really changed , as we can see the redhat-release now it is 5.8 .
[root@LABSERVER01 ~]# uptime
 11:36:47 up 4 min,  1 user,  load average: 0.03, 0.07, 0.03
[root@LABSERVER01 ~]# uname -a
Linux LABSERVER01 2.6.18-308.8.2.el5 #1 SMP Tue May 29 11:54:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@LABSERVER01 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
[root@LABSERVER01 ~]#
At this point we needed to manually start the EMC PowerPath service , it was really strange…
some investigaion needed !
/etc/init.d/PowerPath start
after powerpath modules load , we can interact through powermt facility
powermt save  file=powermt.save.$(date +%Y%m%d).postupgrade
powermt display dev=all > powermt.display.$(date +%Y%m%d).postupgrade
The modules are not loaded because PowerPath did not start at boot.
In our case the problem was generated by the following paragraph indentation
in / etc / rc.sysinit (!) .
I noticed that the following block of lines was “tabbed” on the right , but i didn’t care about .
###BEGINPP
# Configure and initialize PowerPath.
if [ -f /etc/init.d/PowerPath ]; then
/etc/init.d/PowerPath start
fi
###ENDPP
So i remoevd the unneeded characters (spaces or tabs)  and (magic…) now PowerPath is started normally.
After the reboot i verified that powerpath is loaded and the devices are visible and working correctly.
lsmod | grep -i emc
emcpvlumd              69472  0
emcpxcrypt            166376  0
emcpdm                 75528  0
emcpgpx                55376  3 emcpvlumd,emcpxcrypt,emcpdm
emcpmpx               201160  8
emcp                 2170976  5 emcpvlumd,emcpxcrypt,emcpdm,emcpgpx,emcpmpx
[root@LABSERVER01 ~]# powermt display dev=all
Pseudo name=emcpowerb
CLARiiON ID=CKM00084800353 [SG_LABSERVER]
Logical device ID=600601605FF0220044BF43B27710E111 [LUN 140]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B       Array failover mode: 1
==============================================================================
————— Host —————   – Stor –   — I/O Path —  — Stats —
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   1 qla2xxx                  sdb       SP A2     active  alive       0      0
   1 qla2xxx                  sdd       SP B2     active  alive       0      0
   2 qla2xxx                  sdf       SP B7     active  alive       0      0
   2 qla2xxx                  sdh       SP A7     active  alive       0      0
Pseudo name=emcpowera
CLARiiON ID=CKM00084800353 [SG_LABSERVER]
Logical device ID=600601605FF0220068B2FDD2810FE111 [LUN 135]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B       Array failover mode: 1
==============================================================================
————— Host —————   – Stor –   — I/O Path —  — Stats —
###  HW Path               I/O Paths    Interf.   Mode    State   Q-IOs Errors
==============================================================================
   1 qla2xxx                  sda       SP A2     active  alive       0      0
   1 qla2xxx                  sdc       SP B2     active  alive       0      0
   2 qla2xxx                  sde       SP B7     active  alive       0      0
   2 qla2xxx                  sdg       SP A7     active  alive       0      0

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.