Sunday, 12 February 2017

Patching Exadata Infiniband Switch

Overview
  • The Exadata network grid consists of multiple Sun QDR InfiniBand switches.
  • IB Switches are used for the storage network as well as the Oracle RAC interconnect.
  • Exadata compute nodes and storage cells are configured with dual-port InfiniBand ports and connect to each of the two leaf switches.
  • You can access IB Switches using command line and Web ILOM
  • IB Switches run Linux operating system.

In this article I will demonstrate how to patch or upgrade Oracle Exadata IB Switches.

About Infiniband Switch Patching

  • Starting with release 11.2.3.3.0, the patchmgr utility is used to upgrade and downgrade the InfiniBand switches.
  • IB Switch patch is delievered with Exadata storage patch.
  • IB Switch patches are released semi annually to annually.
  • IB Switch can be patched in Rolling and Non-Rolling fashion.

Environment
  • Exadata Full Rack X2-2
  • 8 Compute nodes, 14 Storage cells and 3 IB Switches
  • Current IB Switch Version 2.1.5-1

Infiniband Switch Upgrade Steps

  • Identify the number of switches in clusters.
[root@dm01dbadm01 ~]# ibswitches
Switch  : 0x002128469b8aa0a0 ports 36 "SUN DCS 36P QDR dm01sw-ib1 10.209.41.246" enhanced port 0 lid 5 lmc 0
Switch  : 0x002128469b97a0a0 ports 36 "SUN DCS 36P QDR dm01sw-ib2 10.209.41.247" enhanced port 0 lid 4 lmc 0
Switch  : 0x002128469b82a0a0 ports 36 "SUN DCS 36P QDR dm01sw-ib3 10.209.41.248" enhanced port 0 lid 3 lmc 0

  • Identify the current IB switch software version on all the Switches
[root@dm01dbadm01 patch_12.1.2.2.0.150917]# ssh dm01sw-ib1 version
SUN DCS 36p version: 2.1.5-1
Build time: Oct  6 2014 10:35:15
SP board info:
Manufacturing Date: 2011.01.12
Serial Number: "NCD680421"
Hardware Revision: 0x0006
Firmware Revision: 0x0000
BIOS version: SUN0R100
BIOS date: 06/22/2010

  • Log in to Exadata Compute node 1 as root user and navigate the Exadata Storage Software staging area
[root@dm01dbadm01 ESS_121220]# cd /u01/app/oracle/software/ESS_121220/patch_12.1.2.2.0.150917/
[root@dm01dbadm01 patch_12.1.2.2.0.150917]# pwd
/u01/app/oracle/software/ESS_121220/patch_12.1.2.2.0.150917

  • Create a file named ibswitches.lst and enter IB switch names one per line as follows:
[root@dm01dbadm01 patch_12.1.2.2.0.150917]# vi ibswitches.lst
dm01sw-ib1
dm01sw-ib2
dm01sw-ib3

[root@dm01dbadm01 patch_12.1.2.2.0.150917]# cat ibswitches.lst
dm01sw-ib1
dm01sw-ib2
dm01sw-ib3

  • Execute the following to perform the IB Switch precheck
[root@dm01dbadm01 patch_12.1.2.2.0.150917]# ./patchmgr -ibswitches ibswitches.lst -upgrade -ibswitch_precheck -force

2015-11-04 11:31:44 -0600 1 of 1 :SUCCESS: DO: Initiate pre-upgrade validation check on InfiniBand switch(es).
 ----- InfiniBand switch update process started 2015-11-04 11:31:44 -0600 -----
[NOTE     ] Log file at /u01/app/oracle/software/ESS_121220/patch_12.1.2.2.0.150917/upgradeIBSwitch.log

[INFO     ] List of InfiniBand switches for upgrade: ( dm01sw-ib1 dm01sw-ib2 dm01sw-ib3 )

[SUCCESS  ] Verifying Network connectivity to dm01sw-ib1
[SUCCESS  ] Verifying Network connectivity to dm01sw-ib2
[SUCCESS  ] Verifying Network connectivity to dm01sw-ib3
[FAIL     ] Validating verify-topology output
[INFO     ] Master Subnet Manager is set to "dm01sw-ib3" in all Switches

[INFO     ] ---------- Starting with IBSwitch dm01sw-ib1
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib1, found 137M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib1, found 197M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib1
[SUCCESS  ] Verifying that dm01sw-ib1 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 17:41:20
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib1
[SUCCESS  ] Pre-update validation on dm01sw-ib1

[INFO     ] ---------- Starting with InfiniBand Switch dm01sw-ib2
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib2, found 249M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib2, found 199M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib2
[SUCCESS  ] Verifying that dm01sw-ib2 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 17:41:33
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib2
[SUCCESS  ] Pre-update validation on dm01sw-ib2

[INFO     ] ---------- Starting with InfiniBand Switch dm01sw-ib3
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib3, found 248M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib3, found 196M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib3
[SUCCESS  ] Verifying that dm01sw-ib3 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 17:41:42
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib3
[SUCCESS  ] Pre-update validation on dm01sw-ib3
[SUCCESS  ] Overall status

 ----- InfiniBand switch update process ended 2015-11-04 11:41:42 -0600 -----
2015-11-04 11:41:42 -0600 1 of 1 :SUCCESS: DONE: Initiate pre-upgrade validation check on InfiniBand switch(es).

  • Upgrade the IB Switches using the following command:
[root@dm01dbadm01 patch_12.1.2.2.0.150917]# ./patchmgr -ibswitches ibswitches.lst -upgrade -force

2015-11-04 11:42:51 -0600 1 of 1 :SUCCESS: DO: Initiate upgrade of InfiniBand switches to 2.1.6-2. Expect up to 15 minutes for each switch
 ----- InfiniBand switch update process started 2015-11-04 11:42:51 -0600 -----
[NOTE     ] Log file at /u01/app/oracle/software/ESS_121220/patch_12.1.2.2.0.150917/upgradeIBSwitch.log

[INFO     ] List of InfiniBand switches for upgrade: ( dm01sw-ib1 dm01sw-ib2 dm01sw-ib3 )

[SUCCESS  ] Verifying Network connectivity to dm01sw-ib1
[SUCCESS  ] Verifying Network connectivity to dm01sw-ib2
[SUCCESS  ] Verifying Network connectivity to dm01sw-ib3
[FAIL     ] Validating verify-topology output
[INFO     ] Proceeding with upgrade of InfiniBand switches to version 2.1.6_2
[INFO     ] Master Subnet Manager is set to "aibdalab1sw-ib3" in all Switches

[INFO     ] ---------- Starting with IBSwitch dm01sw-ib1
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Copy firmware packages to dm01sw-ib1
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib1, found 137M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib1, found 197M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib1
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib1
[SUCCESS  ] Verifying that dm01sw-ib1 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 17:44:09
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib1
[SUCCESS  ] Pre-update validation on dm01sw-ib1
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib1
[INFO     ] Starting upgrade on dm01sw-ib1 to 2.1.6_2. Please give upto 10 mins for the process to complete. DO NOT INTERRUPT or HIT CTRL+C during the upgrade
[SUCCESS  ] Execute plugin check for Patching on dm01sw-ib1
[SUCCESS  ] Load firmware 2.1.6_2 onto dm01sw-ib1
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib1
[SUCCESS  ] Set SMPriority to 8 on dm01sw-ib1
[INFO     ] Rebooting dm01sw-ib1. Wait for 240 secs before continuing
[SUCCESS  ] Reboot dm01sw-ib1
[SUCCESS  ] SUCCESS
[INFO     ] Starting post-update validation on dm01sw-ib1
[SUCCESS  ] Inifiniband switch dm01sw-ib1 is at target patching level
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib1
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib1
[SUCCESS  ] Verifying that dm01sw-ib1 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 18:01:21
[SUCCESS  ] Firmware verification on InfiniBand switch dm01sw-ib1
[SUCCESS  ] Execute plugin check for Post Patch on dm01sw-ib1
[SUCCESS  ] Post-check validation on IBSwitch dm01sw-ib1
[SUCCESS  ] Update switch dm01sw-ib1 to 2.1.6_2

[INFO     ] ---------- Starting with InfiniBand Switch dm01sw-ib2
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Copy firmware packages to dm01sw-ib2
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib2, found 138M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib2, found 199M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib2
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib2
[SUCCESS  ] Verifying that dm01sw-ib2 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 18:06:23
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib2
[SUCCESS  ] Pre-update validation on dm01sw-ib2
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib2
[INFO     ] Starting upgrade on dm01sw-ib2 to 2.1.6_2. Please give upto 10 mins for the process to complete. DO NOT INTERRUPT or HIT CTRL+C during the upgrade
[SUCCESS  ] Execute plugin check for Patching on dm01sw-ib2
[SUCCESS  ] Load firmware 2.1.6_2 onto dm01sw-ib2
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib2
[SUCCESS  ] Set SMPriority to 2 on dm01sw-ib2
[INFO     ] Rebooting dm01sw-ib2. Wait for 240 secs before continuing
[SUCCESS  ] Reboot dm01sw-ib2
[SUCCESS  ] SUCCESS
[INFO     ] Starting post-update validation on dm01sw-ib2
[SUCCESS  ] Inifiniband switch dm01sw-ib2 is at target patching level
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib2
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib2
[SUCCESS  ] Verifying that dm01sw-ib2 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 18:23:30
[SUCCESS  ] Firmware verification on InfiniBand switch dm01sw-ib2
[SUCCESS  ] Execute plugin check for Post Patch on dm01sw-ib2
[SUCCESS  ] Post-check validation on IBSwitch dm01sw-ib2
[SUCCESS  ] Update switch dm01sw-ib2 to 2.1.6_2

[INFO     ] ---------- Starting with InfiniBand Switch dm01sw-ib3
[WARNING  ] Infiniband switch meets minimal version requirements, but rollback is only available to 2.1.5-1 with the current package.
     To rollback to other versions:
     - Manually download the InfiniBand switch firmware package to the patch directory
     - Set export variable "EXADATA_IMAGE_IBSWITCH_ROLLBACK_VERSION" to the appropriate version
     - Run patchmgr command to initiate rollback.
[SUCCESS  ] Copy firmware packages to dm01sw-ib3
[SUCCESS  ] Verifying that /tmp has 120M in dm01sw-ib3, found 137M
[SUCCESS  ] Verifying that / has 80M in dm01sw-ib3, found 196M
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib3
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib3
[SUCCESS  ] Verifying that dm01sw-ib3 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 18:28:26
[SUCCESS  ] Execute plugin check for Patch Check Prereq on dm01sw-ib3
[SUCCESS  ] Pre-update validation on dm01sw-ib3
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib3
[INFO     ] Starting upgrade on dm01sw-ib3 to 2.1.6_2. Please give upto 10 mins for the process to complete. DO NOT INTERRUPT or HIT CTRL+C during the upgrade
[SUCCESS  ] Execute plugin check for Patching on dm01sw-ib3
[SUCCESS  ] Load firmware 2.1.6_2 onto dm01sw-ib3
[SUCCESS  ] Disable Subnet Manager on dm01sw-ib3
[SUCCESS  ] Set SMPriority to 2 on dm01sw-ib3
[INFO     ] Rebooting dm01sw-ib3. Wait for 240 secs before continuing
[SUCCESS  ] Reboot dm01sw-ib3
[SUCCESS  ] SUCCESS
[INFO     ] Starting post-update validation on dm01sw-ib3
[SUCCESS  ] Inifiniband switch dm01sw-ib3 is at target patching level
[SUCCESS  ] Service ntpd is running on InfiniBand Switch dm01sw-ib3
[SUCCESS  ] Service opensmd is running on InfiniBand Switch dm01sw-ib3
[SUCCESS  ] Verifying that dm01sw-ib3 has at least 1 NTP Server, found 1
[SUCCESS  ] opensm.conf passed all validations
[INFO     ] Manually validate the following entries Date:(YYYY-MM-DD) 2015-11-04 Time:(HH:MM:SS) 18:46:04
[SUCCESS  ] Firmware verification on InfiniBand switch dm01sw-ib3
[SUCCESS  ] Execute plugin check for Post Patch on dm01sw-ib3
[SUCCESS  ] Post-check validation on IBSwitch dm01sw-ib3
[SUCCESS  ] Update switch dm01sw-ib3 to 2.1.6_2
[INFO     ] InfiniBand Switches ( dm01sw-ib1 dm01sw-ib2 dm01sw-ib3 ) updated to 2.1.6_2
[SUCCESS  ] Overall status

 ----- InfiniBand switch update process ended 2015-11-04 12:50:22 -0600 -----
2015-11-04 12:50:22 -0600 1 of 1 :SUCCESS: DONE: Upgrade InfiniBand switch(es) to 2.1.6-2.


  • Verify that all the IB Switches are upgraded to latest version.
[root@dm01dbadm01 ~]# ssh dm01sw-ib1 version
SUN DCS 36p version: 2.1.6-2
Build time: Dec  8 2014 10:36:50
SP board info:
Manufacturing Date: 2011.01.12
Serial Number: "NCD680421"
Hardware Revision: 0x0006
Firmware Revision: 0x0000
BIOS version: SUN0R100
BIOS date: 06/22/2010
[root@dm01dbadm01 ~]#

 

Conclusion
In this article we have demonstrated how to patch Exadata IB Switches using patchmgr utility. Patching an Exadata IB switch is very straight forward and can be done in rolling and non-rolling fashion.

No comments:

Post a Comment