![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1981575.1 : Migrating a IPoIB subnet from default to custom IB partition
This document describes how to migrate an existing IPoIB subnet from default to custom InfiniBand Partition. In this Document
Applies to:Big Data Appliance Hardware - Version Not Applicable to Not Applicable [Release N/A]Exadata X4-2 Full Rack - Version All Versions to All Versions [Release All Releases] Information in this document applies to any platform. GoalTo use a custom InfiniBand Partition instead of default and migrate the existing IPoIB subnet keeping all IP addresses same. SolutionThis activity can be broken down into following tasks which are required to accomplish this. 1. Configuring the InfiniBand Switches 2. Configuring the host compute nodes Steps to accomplish the task of migrating IPoIB from default to custom partitionStep 1: Identify an unused InfiniBand Partition keyLogin to an IB switch and run the following command to display current partitions on the IB network. switch$ smpartition list active
Pick a unique and unused partition key e.g. 0x0045
Step 2: Determine if any node need to be added as limited member to the IB partitionThis step is optional if restrictions are not needed among the nodes in same IB partition. However, if the environment needs some nodes not to communicate with each other inside the new IB partition then these nodes shall be flagged as 'limited' members.
Step 3: Collect all IB port GUIDs of the host compute nodes that need to be part of this new IB partitionRun the following command on all host compute nodes to find out the IB port GUIDs. host# ibstat | grep -i "port guid"
Port GUID: 0x0002c90300a60331 Port GUID: 0x0002c90300a60332
Step 4: Identify the IB switch running master subnet managerFrom any IB switch in this network, run the following command to identify the IB switch running master subnet manager. switch$ getmaster Local SM enabled and running, state STAND BY 20150112 09:09:42 Master SubnetManager on sm lid 5 sm guid 0x21284694b7a0a0 : SUN DCS 36P QDR scac10sw-ibb0 10.128.74.172
Once you have permissions to run write-enabled administrative tasks on the network, proceed to the following steps
Step 5: Start IB partition editing on master SM switchLogin to the IB switch running master SM and execute following command to enable editing of IB partitions. switch$ smpartition start
Step 6: Create IB partion on master SM switchNow we can create a new IB partition on the IB network as follows. In this example, we are using pkey 0x0045 and naming it as bda_ipoib_0045 switch$ smpartition create -n <partition_name> -pkey <partition_key> -flag ipoib -m full
switch$ smpartition create -n bda_ipoib_0045 -pkey 0x0045 -flag ipoib -m full
Step 7: Add all IB port GUIDs in the new IB partitionOnce the partition is created, we can add all IB port GUIDs in it now. switch$ smpartition add -n bda_ioib_0045 -pkey 0x0045 -port <list_of_all_port_guids>
In the above command, include all the port GUIDs in hexadecimal notation (e.g. 0x0021280001a16d4c) separated by comma. You can also use one GUID at a time and repeat for all. If some port IB GUIDs are required to be added as 'limited' members, then use following syntax for those specific GUIDs only. switch$ smpartition add -n bda_ioib_0045 -pkey 0x0045 -port <list_of_all_port_guids> -m limited
Step 8: Save and commit the switch configurationOnce all port GUIDs are added, we can save and commit the new configuration. switch$ smpartition commit
Step 9: Verify that the IB partition information is propagated into all standby SM switchesA quick verification must be done before proceeding to host configurations. Run following command to verify all port GUIDs have been added. Make sure to verify that some port GUIDs are added as limited if you did so in previous step. switch$ smpartition list active
Step 10: Backup current IPoIB configuration on all host compute nodesFollowing are the three configuration files for default IB partition based IPoIB interfaces. We need to backup these files on each individual host compute node. host # cd /etc/sysconfig/network-scripts/ host network-scripts]# ls -tlr ifcfg-*ib* -rw-r--r-- 1 root root 140 Jan 9 14:36 ifcfg-ib0 -rw-r--r-- 1 root root 246 Jan 9 14:41 ifcfg-bondib0 -rw-r--r-- 1 root root 117 Jan 9 14:47 ifcfg-ib1 You can backup these files on each host as follows. host network-scripts]# mkdir ipoib_backup
host network-scripts]# cp ifcfg-ib0 ifcfg-ib1 ifcfg-bondib0 ipoib_backup
Step 11: Migrate current IPoIB configuration into new IB partition based configurationNow we can migrate default IB partition based configuration to new IB partition based by changed the file names and contents. host network-scripts]# mv ifcfg-ib0 ifcfg-ib0.8045
host network-scripts]# mv ifcfg-ib1 ifcfg-ib1.8045 host network-scripts]# sed -i 's/DEVICE=ib0/DEVICE=ib0.8045/' ifcfg-ib0.8045 host network-scripts]# sed -i 's/DEVICE=ib1/DEVICE=ib1.8045/' ifcfg-ib1.8045 The file ifcfg-bondib0 can remain as-is. This file contains the IP address, subnet and other useful information which is transparent to underlying IB partition.
Step 12: Reboot first two host compute nodes one at a timeAfter making the above changes in step 10-11 on any two nodes, we can reboot them one at a time. This is to ensure that our new configuration works before we change the entire system. Before rebooting, you may also need privileges to do so from system or site administrator. Watch the console closely to make sure the systems come back normally after a reboot. This is just a recommendation but not mandatory. Step 13: Verify the connectivity between the rebooted nodesOnce the two rebooted nodes come back, its time to verify the connectivity across these two. You can login to the nodes and ping each other's IPoIB address. Also make sure that you are 'not able' to ping any other IPoIB address on which the new partition has not been applied yet. Step 14: Reboot remaining host compute nodes one at a timeOnce step 13 is successful, we are now ready to apply configuration to all remaining nodes using steps 10 onwards. Once all nodes are completed, we have accomplished our task to migrate IPoIB subnet from default IB partition to a new custom IB partition.
References<NOTE:1959883.1> - Application of InfiniBand PartitionAttachments This solution has no attachment |
||||||||||||||||||||||||||||||||||||||||||||||
|