PSM Fails to Be Installed and to Roll Back Because the Database Restarts Repetitively

Publication Date:  2012-07-20 Views:  138 Downloads:  0
Issue Description
Version:
iNVS V100R002C02
Symptoms:
The PSM fails to be installed. An error message indicates that the MySQL database has been started before the installation. The error message is as follows:
2011-04-25 14:23:27 INFO: Retry 60 seconds, startup MySQL fail.   [Ok]
2011-04-25 14:23:27 ERROR: RunMysql error            [ERROR]
2011-04-25 14:23:27 ERROR: PSM install failed, begin rollback ...    [ERROR]


Alarm Information
None.
Handling Process
Run the cd /hinvs/scripts/uninstall/PSM/ command.
Run the ./UninstallBSM.sh command to uninstall the SmartData installation package.
If the uninstall fails, perform the following steps:
1.         Run the cd /opt/SmartData/bin/ command.
2.         Run the ./smio_uninstall command to uninstall the SmartData installation package.
 
Root Cause
Cause analysis:
1.         Run the ps -e | grep mysql command to view the process ID of the MySQL database.
linux-CH:~ # ps -e | grep mysql
 8108 ?        00:00:02 mysqld


2.         Run the kill command to end the MySQL process.
linux-CH:~ # kill -9 8108
linux-CH:~ #


3.         An error occurs when you attempt to install the PSM again.
2011-04-25 14:55:07 ERROR: install BSM error !          [ERROR]
2011-04-25 14:55:07 ERROR: PSM install failed, begin rollback ...               [ERROR]


ERROR: SmartData is already installed in this system, please uninstall it, then try again.
Conclusion:
       The first installation fails because the database restarts repetitively. Then the rollback starts. The rollback also needs to use the database. As a result, the rollback fails.
2.    The rollback failure causes that the previously installed SmartData package is not uninstalled. When you attempt to install the PSM again, the system detects that the previously installed SmartData package still exists. As a result, the PSM failed to be installed and the error message indicates that the SmartData is already installed.
ERROR: SmartData is already installed in this system, please uninstall it, then try again.
The repetitive restarts of the database adversely affect the PSM rollback, which causes that the SmartData installation package is not uninstalled. As a result, the PSM fails to be installed and to rollback.
Suggestions
None.

END