3.6.4 Procedure 11 INSTALL THE LSMS APPLICATION

Table 3-16 Procedure 11 - Install the LSMS Application

S T E P# A B This procedure installs the application on the server. Estimated time: 25 minutesNote: Below procedure needs to be executed on both MPS A and MPS B servers.

1.

☐

☐

MPS X: Log in to console the server as the user “root”

Console Login: root 
Password: <root_password>

2.

☐

☐

MPS X: Perform Procedure in 3.7, A.1 or copy LSMS 14.1.X ISO to /var/TKLC/upgrade directory.

3.

☐

☐

MPS X: Start platcfg utility by logging in as platcfg user.

# su - platcfg

4.

☐

☐

MPS X: Early upgrade checks

The platcfg Main Menu appears.

On the “Main Menu", select Maintenance and press [ENTER].


Main Menu with Maintenance selected.

Select the “Upgrade” menu and press [ENTER].


Maintenance Menu with Upgrade selected.

Select the “Early Upgrade Checks” menu to verify that the system is ready for upgrade.


Upgrade Menu with Early Upgrade Checks selected.

Select the desired upgrade media and press [ENTER].


Choose Upgrade Media Menu with the LSMS upgrade ISO selected.

If the Early Upgrade Checks fail due to the ongoing syncing of raid mirrors, then follow the steps 5 and 6 to ignore the disk mirroring before the LSMS installation. If the Early Upgrade Checks passed then jump to Step 7.


Early upgrade check output reporting RAID synchronization and missing-array errors.


cat /proc/mdstat output showing RAID devices and synchronization progress.

Contact My Oracle Support following the instructions on the Appendix E, if the early upgrade checks fail due to any other reason.

5.

☐

☐

MPS X: Exit the platcfg menu

Select Exit and press [ENTER] to return to the Maintenance Menu.


Choose Upgrade Media Menu with Exit selected.


Upgrade Menu with Exit selected.

Select Exit and press [ENTER] to return to the Main Menu.


Maintenance Menu with Exit selected.

Select Exit and press [ENTER]. The “platcfg” utility terminates.


Main Menu with Exit selected.

6.

☐

☐

MPS X: Ignore disk mirroring before LSMS installation

# echo "IGNORE_EARLY_CHECKS=1" >
/var/TKLC/log/upgrade/tmp_upgrade.conf

Verify:

# cat /var/TKLC/log/upgrade/tmp_upgrade.conf 
IGNORE_EARLY_CHECKS=1

7.

☐

☐

MPS X: Validate the upgrade media

Use the “Arrow” and the [ENTER] keys to navigate the Menu options as shown to choose the upgrade media.

On the platcfg “Main Menu”, select Maintenance and press [ENTER].


Main Menu with Maintenance selected.

Press any key to return to the menu and then press Exit all way back to the Maintenance Menu


Maintenance Menu with Upgrade selected.


Upgrade Menu with Validate Media selected.


Choose Upgrade Media Menu with the installation ISO selected.

The results of the validation will be displayed, similar to the example below. Press the “Enter” key to continue.


Media validation output confirming that the ISO is valid.

8.

☐

☐

MPS X: Navigate to the Initiate Upgrade menu.

Use the “Arrow” and the [ENTER] keys to navigate the Menu options as shown to choose the upgrade media.

Select the Initiate Upgrade menu and press [ENTER].


Upgrade Menu with Initiate Upgrade selected.

The screen displays a message that it is searching for upgrade media. When the upgrade media is found, an Upgrade Media selection menu appears similar to the example below.

Select the desired upgrade media and press [ENTER].


Choose Upgrade Media Menu with the installation ISO selected.

9.

☐

☐

MPS X:

Upgrade proceeds

The screen displays the output like following, indicating that the upgrade software is first running the upgrade checks, and then proceeding with the upgrade.


Console output confirming successful early upgrade checks and initialization of upgrade information.

Many informational messages appear on the terminal screen as the upgrade proceeds. The messages are not shown here for clarity sake. When installation is complete, the server reboots.

10.

☐

☐

MPS X: Upgrade completed

After the final reboot, the screen displays the login prompt as in the example below.


Service startup messages followed by the Oracle Linux login prompt.

11.

☐

☐

MPS X:

Login as root user.

Login: root
Password: <root_password>

12.

☐

☐

MPS X :

Check the upgrade and warnings

# grep -i error /var/TKLC/log/upgrade/upgrade.log
1724760824::ERROR: Command returned non-zero exit code 256 (systemctl start TKLCpldhcp)
# grep -i error /var/TKLC/log/upgrade/ugwrap.log
# grep -i warning /var/TKLC/log/upgrade/upgrade.log 
1724760624::WARNING: TKLClsms-Config-2.0.4-14.0.0.1.0_140.9.0:
Current hostname "Steak-B" being reset to default.
1724760681::TKLClsms	warning: user %{root} does not exist - using root
1724760681::warning: group %{root} does not exist - using root
1724760759::WARNING: Could not dup STDERR to STDOUT: Bad file descriptor
1724760971::WARNING: A new file was added to xml alarm files...reparsing xml...
1724760971::WARNING: FILE:
/usr/TKLC/plat/etc/alarms/lsmsAlarms.xml #
# grep "Upgrade returned success"
/var/TKLC/log/upgrade/upgrade.log
1248284646:: Upgrade returned success!# grep -i error /var/TKLC/log/upgrade/upgrade.log 
Only below error is expected
1512594958::ERROR: Command returned non-zero exit code 768 (/sbin/service TKLCpldhcp start)
# grep -i error /var/TKLC/log/upgrade/ugwrap.log 
There should be no error output.
# grep -i warning /var/TKLC/log/upgrade/upgrade.log 
The following warning are expected:
The following warning are expected:
1512594173::WARNING: /usr/TKLC/plat/etc/alarms/alarms.xml has been updated...reparsing xml...
1512594265::warning:	erase unlink of /etc/ssm/hwmgmtd.conf failed: No such file or directory
1512594267::kexec-tools	#warning:
/etc/kdump.conf created as /etc/kdump.conf.rpmnew
1512594414::setup #################################################warning:
/etc/shadow created as /etc/shadow.rpmnew
1512594430::ca-certificates	################warning:
/etc/pki/tls/certs/ca-bundle.crt created as
/etc/pki/tls/certs/ca-bundle.crt.rpmnew 
1512594464::warning: user mysql does not exist - using root
1512594464::warning: group mysql does not exist - using root 
1512594464::warning: user mysql does not exist - using root 
1512594464::warning: group mysql does not exist - using root
1512594464::2017-12-06 16:07:44 0 [Warning] TIMESTAMP with
implicit DEFAULT value is deprecated. Please use -- explicit_defaults_for_timestamp server option (see documentation for more details).
1512594465::2017-12-06 16:07:44 14331 [Warning] InnoDB: New log
files created, LSN=45781
1512594465::2017-12-06 16:07:44 14331 [Warning] InnoDB: Creating
foreign key constraint system tables.
1512594467::2017-12-06 16:07:46 0 [Warning] TIMESTAMP with
implicit DEFAULT value is deprecated. Please use -- explicit_defaults_for_timestamp server option (see documentation for more details).
1512594468::WARNING: Default config file /etc/my.cnf exists on the system
1512594469::samhain	warning: /etc/samhainrc created as /etc/samhainrc.rpmnew
1512594473::php-common	#warning: /etc/php.ini created as /etc/php.ini.rpmnew
1512594551::initscripts	##warning:
/etc/sysctl.conf created as /etc/sysctl.conf.rpmnew
1512594603::ntp	warning: /etc/ntp.conf created as /etc/ntp.conf.rpmnew
1512594615::TKLCplat	################warning:
/usr/TKLC/plat/etc/pid_conf created as
/usr/TKLC/plat/etc/pid_conf.rpmnew
1512594615::#warning: /usr/TKLC/plat/etc/service_conf created as
/usr/TKLC/plat/etc/service_conf.rpmnew
1512594630::TKLCalarms	###warning:
/usr/TKLC/plat/etc/alarms/alarms.xml saved as
/usr/TKLC/plat/etc/alarms/alarms.xml.rpmsave
1512594637::alarmMgr	###warning:
/usr/TKLC/plat/etc/alarmMgr/alarmMgr.conf created as
/usr/TKLC/plat/etc/alarmMgr/alarmMgr.conf.rpmnew
1512594770::WARNING: This capability is not defined in the default capabilities.
1512594770::WARNING: Nor is it defined in the current hardware ID's capabilities.
1512594770::WARNING: CAPABILITY: service disabled 
1512594770::WARNING: HARDWARE ID: E5APPB
1512594885::sudo	warning: /etc/sudoers created as /etc/sudoers.rpmnew
1512594922::WARNING: TKLClsms-Config-1.4.9-13.2.1.0.0_132.22.0:
Current hostname "lsmspri" being reset to default.
1512594923::WARNING: Hostname not changed because it is the same.
1512594966::WARNING: Could not write to config file /usr/my- new.cnf: Permission denied
1512594966::Installing MySQL system tables...2017-12-06 16:16:06
0 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
1512594966::2017-12-06 16:16:06 31217 [Warning] The option
innodb (skip-innodb) is deprecated and will be removed in a future release
1512594966::Filling help tables...2017-12-06 16:16:06 0 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
1512594966::2017-12-06 16:16:06 31220 [Warning] The option
innodb (skip-innodb) is deprecated and will be removed in a future release
1512594966::WARNING: Could not copy config file template
/usr/share/mysql/my-default.cnf to
1512594966::WARNING: Default config file /etc/my.cnf exists on the system
1512594972::WARNING: A new file was added to xml alarm files...reparsing xml...
1512594972::WARNING: FILE:
/usr/TKLC/plat/etc/alarms/lsmsAlarms.xml
1512594974::WARNING: Module variable EXPECTED_CPUS is deprecated!
1512594975::WARNING: CONFIG:
/usr/TKLC/plat/lib/Syscheck/modules/system/cpu/config
1512594975::WARNING: Module variable EXPECTED_CPU_ALM is deprecated!
1512594975::WARNING: CONFIG:
/usr/TKLC/plat/lib/Syscheck/modules/system/cpu/config
1702719042::WARNING: TKLClsms-Config-2.0.3-0.70555: Current
hostname "lsmspri" being reset to default.
1702719098::TKLClsms
##############################warning: user %{root} does not exist - using root
1702719104::warning: group %{root} does not exist - using root
1702719175::WARNING: Could not dup STDERR to STDOUT: Bad file descriptor
1702719391::WARNING: A new file was added to xml alarm files...reparsing xml...
1702719391::WARNING: FILE:
/usr/TKLC/plat/etc/alarms/lsmsAlarms.xml

13.

☐

☐

MPS X:

Verify LSMS release.

# rpm -qi TKLClsms

rpm query output displaying the installed TKLClsms package information.

14

Create config file in ssh directory :

Do not run this if ELAP is already upgraded to ELAP11

Run below steps on both servers after installation is complete:

  1. switch to lsmsadm user
  2. cd .ssh
  3. Create a config file using *vi config* in the /var/TKLC/lsms/lsmsadm/.ssh with below content
    Host *
    HostKeyAlgorithms +ssh-rsa 
    PubkeyAcceptedKeyTypes +ssh-rsa

    Note: Default permission and ownership will automatically be added to this file for lsmsadm user

  4. Switch back to root user
  5. Add ssh-rsa at the end of the line of file /etc/ssh/sshd_config.

    For example:

    HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert- v01@openssh.com,ecdsa-sha2-nistp384,ecdsa-sha2- nistp384-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2- 512-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-256- cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2- nistp256-cert-v01@openssh.com,ecdsa-sha2- nistp521,ecdsa-sha2-nistp521-cert- v01@openssh.com,ssh-rsa
  6. Restart sshd service using the below command:
    systemctl restart sshd
  7. Perform steps 1-6 on mate server.

This procedure is complete!