I discovered this morning upgrading from MegaRAID Storage manager 12.08.03-03 -> 13.04.03-01 that the RPM for the old package wasn’t being removed. An example is below. Note that I’ve created local YUM repos for the LSI provided RPMs.
# yum update -y MegaCli MegaRAID_Storage_Manager
Loaded plugins: priorities, security, upgrade-helper
88 packages excluded due to repository priority protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package Lib_Utils2.noarch 0:1.00-04 will be updated
---> Package Lib_Utils2.noarch 0:1.00-05 will be an update
---> Package MegaCli.noarch 0:8.04.07-1 will be updated
---> Package MegaCli.noarch 0:8.07.07-1 will be an update
---> Package MegaRAID_Storage_Manager.noarch 0:12.08.03-03 will be updated
---> Package MegaRAID_Storage_Manager.noarch 0:13.04.03-01 will be an update
---> Package sas_ir_snmp.x86_64 0:12.08-0303 will be updated
---> Package sas_ir_snmp.x86_64 0:13.04-0301 will be an update
---> Package sas_snmp.x86_64 0:12.08-0303 will be updated
---> Package sas_snmp.x86_64 0:13.04-0301 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Updating:
Lib_Utils2 noarch 1.00-05 lsi 1.1 M
MegaCli noarch 8.07.07-1 lsi 1.5 M
MegaRAID_Storage_Manager noarch 13.04.03-01 lsi 65 M
sas_ir_snmp x86_64 13.04-0301 lsi 936 k
sas_snmp x86_64 13.04-0301 lsi 557 k
Transaction Summary
================================================================================
Upgrade 5 Package(s)
Total download size: 69 M
Downloading Packages:
(1/5): Lib_Utils2-1.00-05.noarch.rpm | 1.1 MB 00:00
(2/5): MegaCli-8.07.07-1.noarch.rpm | 1.5 MB 00:00
(3/5): MegaRAID_Storage_Manager-13.04.03-01.noarch.rpm | 65 MB 00:00
(4/5): sas_ir_snmp-13.04-0301.x86_64.rpm | 936 kB 00:00
(5/5): sas_snmp-13.04-0301.x86_64.rpm | 557 kB 00:00
--------------------------------------------------------------------------------
Total 64 MB/s | 69 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : Lib_Utils2-1.00-05.noarch 1/10
Installing....
Updating : sas_snmp-13.04-0301.x86_64 2/10
Stopping LSI SNMP Agent:[ OK ]
ln: creating symbolic link `/usr/lib64/libsas_objects.so.1': File exists
Starting snmpd
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
Starting LSI SNMP Agent
Starting LSI SNMP Agent:LSI MegaRAID SNMP Agent Ver 3.18.0.2 (Jan 21st, 2013) Started
[ OK ]
Updating : MegaCli-8.07.07-1.noarch 3/10
Updating : sas_ir_snmp-13.04-0301.x86_64 4/10
Stopping LSI SNMP Agent:[ OK ]
ln: creating symbolic link `/usr/lib64/libsas_ir_objects.so.1': File exists
Starting snmpd
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
Starting LSI SNMP Agent
Starting LSI SNMP Agent:LSI MegaRAID SNMP Agent Ver 3.18.0.2 (Jan 21st, 2013) Started
[ OK ]
Updating : MegaRAID_Storage_Manager-13.04.03-01.noarch 5/10
Installing....
/
/
/
Framework is already running.....
/
/
/
Error in PREUN scriptlet in rpm package MegaRAID_Storage_Manager
Cleanup : Lib_Utils2-1.00-04.noarch 6/10
./popup: line 4: 26717 Killed ../jre/bin/java -classpath .:Popup.jar:../GUI.jar Popup.Communicator ajsgyqkj=71244 &>/dev/null
MegaRAID Storage Manager is running. Please shutdown the process and retry.
error: %preun(MegaRAID_Storage_Manager-12.08.03-03.noarch) scriptlet failed, exit status 1
Cleanup : MegaCli-8.04.07-1.noarch 7/10
Cleanup : sas_snmp-12.08-0303.x86_64 8/10
Stopping LSI SNMP Agent:[ OK ]
Cleanup : sas_ir_snmp-12.08-0303.x86_64 9/10
Starting LSI SNMP Agent:LSI MegaRAID SNMP Agent Ver 3.18.0.2 (Jan 21st, 2013) Started
[ OK ]
Stopping LSI SNMP Agent:[ OK ]
Unregistering Service
Stopping snmpd: [ OK ]
Starting snmpd: [ OK ]
Verifying : sas_ir_snmp-13.04-0301.x86_64 1/10
Verifying : MegaRAID_Storage_Manager-13.04.03-01.noarch 2/10
Verifying : MegaCli-8.07.07-1.noarch 3/10
Verifying : sas_snmp-13.04-0301.x86_64 4/10
Verifying : Lib_Utils2-1.00-05.noarch 5/10
MegaRAID_Storage_Manager-12.08.03-03.noarch was supposed to be removed but is not!
Verifying : MegaRAID_Storage_Manager-12.08.03-03.noarch 6/10
Verifying : Lib_Utils2-1.00-04.noarch 7/10
Verifying : sas_snmp-12.08-0303.x86_64 8/10
Verifying : MegaCli-8.04.07-1.noarch 9/10
Verifying : sas_ir_snmp-12.08-0303.x86_64 10/10
Updated:
Lib_Utils2.noarch 0:1.00-05 MegaCli.noarch 0:8.07.07-1
MegaRAID_Storage_Manager.noarch 0:13.04.03-01 sas_ir_snmp.x86_64 0:13.04-0301
sas_snmp.x86_64 0:13.04-0301
Failed:
MegaRAID_Storage_Manager.noarch 0:12.08.03-03
Complete!
And sure enough, the old RPM is still laying around.
# rpm -qa | grep Mega MegaRAID_Storage_Manager-12.08.03-03.noarch MegaRAID_Storage_Manager-13.04.03-01.noarch MegaCli-8.07.07-1.noarch # yum erase MegaRAID_Storage_Manager-12.08.03-03.noarch Loaded plugins: priorities, security, upgrade-helper Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package MegaRAID_Storage_Manager.noarch 0:12.08.03-03 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: MegaRAID_Storage_Manager noarch 12.08.03-03 @lsi 120 M Transaction Summary ================================================================================ Remove 1 Package(s) Installed size: 120 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Error in PREUN scriptlet in rpm package MegaRAID_Storage_Manager MegaRAID_Storage_Manager-12.08.03-03.noarch was supposed to be removed but is not! Verifying : MegaRAID_Storage_Manager-12.08.03-03.noarch 1/1 Failed: MegaRAID_Storage_Manager.noarch 0:12.08.03-03 Complete!
This had me scratching my head for a bit until I realize that an instance the of MegaRAID storage manager clien/GUI was being remote displayed. Stopping that instance fixed RPM cleanup script issue and allow the RPM to be erased.
# yum erase MegaRAID_Storage_Manager-12.08.03-03.noarch Loaded plugins: priorities, security, upgrade-helper Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package MegaRAID_Storage_Manager.noarch 0:12.08.03-03 will be erased --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: MegaRAID_Storage_Manager noarch 12.08.03-03 @lsi 120 M Transaction Summary ================================================================================ Remove 1 Package(s) Installed size: 120 M Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Erasing : MegaRAID_Storage_Manager-12.08.03-03.noarch 1/1 Framework running VivaldiHeartbeat.VivaldiHeartbeat() VivaldiHeartbeat.VivaldiHeartbeat() clientInfo :SASKernel.ClientInfo@55e859c0 frameworkWWN :140.252.26.11:3071:0 VivaldiHeartbeat.VivaldiHeartbeat() clientConnection :KernelNetwork.RAIDSocket@15ded0fd frameworkWWN :140.252.26.11:3071:0 System time before socket connection:Thu Jun 06 13:13:04 MST 2013 SSL_STRONG_ENCRYPTION File Name is ::./StrongSSLEncryption.ini iniFlag isDISABLE frameworkWWN :140.252.26.11:3071:0 VivaldiHeartbeat.getClientList() :1028 VivaldiHeartbeat.getClientList() :2 LOCAL Registered client :: 140.252.26.11:3071:0 LOCAL Registered client :: 127.0.0.1:0:2 frameworkWWN :140.252.26.11:3071:0 ActiveClientList created No machines Found / / Shutting down Framework: Verifying : MegaRAID_Storage_Manager-12.08.03-03.noarch 1/1 Removed: MegaRAID_Storage_Manager.noarch 0:12.08.03-03 Complete!
However, at this point storage manager is broken. It seems the old RPM’s cleanup script nukes files needed by the newer version so that package has to be re-installed.
# yum reinstall -y MegaRAID_Storage_Manager
Loaded plugins: priorities, security, upgrade-helper
Setting up Reinstall Process
88 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package MegaRAID_Storage_Manager.noarch 0:13.04.03-01 will be reinstalled
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
================================================================================
Reinstalling:
MegaRAID_Storage_Manager noarch 13.04.03-01 lsi 65 M
Transaction Summary
================================================================================
Reinstall 1 Package(s)
Total download size: 65 M
Installed size: 152 M
Downloading Packages:
MegaRAID_Storage_Manager-13.04.03-01.noarch.rpm | 65 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : MegaRAID_Storage_Manager-13.04.03-01.noarch 1/1
Installing....
/
/
/
Starting Framework:
/
/
/
Verifying : MegaRAID_Storage_Manager-13.04.03-01.noarch 1/1
Installed:
MegaRAID_Storage_Manager.noarch 0:13.04.03-01
Complete!