Preface
• All exercises of this unit depend on the availability of specific equipment in your classroom. You will need:
- A computer system with a web browser.
- A managed system configured with at least one partition per student.
- A system from which to execute remote commands to the HMC (through SSH): All lab systems need to be accessible to each other on a network.
• Hints are provided for exercises in case you need them and to provide solutions for the exercise steps. All hints are marked by a » sign.
View managed system and LPAR configuration
In this exercise, the goal is to configure your assigned LPAR to use an HEA logical port and configure it so that it has network connectivity.
__ 1. Connect to the HMC using a web browser. Login as hscroot.
__ 2. Go to the Systems Management application on the HMC. Go to the LPAR table view. Do not select any LPAR.
__ 3. Open the task to see the HEA configuration by making sure no partitions are selected, and then selecting the Hardware Information > Adapters > Host Ethernet task.
Note that in the lab configuration, the machines are single node systems; therefore, there is only one HEA. You should get a window similar to the following example:
EXempty __ 4. Select the Physical Port Location Code T1 as follows:
Then select the Configure button and view the various attributes of the HEA. Keep the default values. How many logical ports per physical port group are available to be configured on your system?
» You can tell by looking at the MCS value in the Host Ethernet Adapters window.
» Given the example shown in the hints above, the MCS value is two and there is no logical port assigned to an LPAR; therefore, available logical port IDs are one through eight.
• You might want to select the Help button to get additional information about these attributes.
• Select OK or Cancel to exit.
Course materials may not be reproduced in whole or in part
3-4 Power Virtualization I © Copyright IBM Corp. 2009, 2013
» With only your partition selected, run the Console Window > Open Terminal Window task. Log in as root.
» Here is an example of the command and output that shows no HEAs. You should only see physical Ethernet adapters:
# lsdev -c adapter -S a
ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)
fcs0 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) vsa0 Available LPAR Virtual Serial Adapter
__ 7. Shut down your assigned LPAR. You do not have to wait for it to shut down to go to the next step.
» Run the shutdown -F AIX command.
__ 8. Edit your LPAR's Normal profile to include an HEA logical port. Use the following information for assigning an LHEA port:
Table 1: LHEA port assignment
» With only your partition selected, run the Configuration > Manage Profiles task.
» Select the Normal profile, and then run Edit on the Actions menu.
» Go to the Logical Host Ethernet Adapter (LHEA) tab.
Student
EXempty » Select the physical port ID 0 of the port group 1. Here is an example where physical port ID 0 is selected:
» Click Configure.
» Select the logical port for your partition according to the information in Table 1 above. Here is an example with logical port ID 1 selected:
» Click OK to apply the logical port change.
Course materials may not be reproduced in whole or in part
3-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013
__ 10. Activate your LPAR with its Normal profile.
» Your LPAR should still be selected. Run the Operations > Activate task and activate it with its Normal profile. If you still have a console window for the partition, you do not have to check the check box for a terminal window. If you do not have a console window, check the check box.
__ 11. Once your LPAR has booted, log in to its console. Run the lsdev -c adapter -S a AIX command again. You should see these two new devices:
ent2 Available Logical Host Ethernet Port (lp-hea) lhea0 Available Logical Host Ethernet Adapter (l-hea)
The logical numbers (ent# and lhea#) for the devices might be different on your system.
__ 12. Run the lsparent -Cl ent2 command to see the parent of the LHEA (lp-hea). The logical number (ent#) for the device might be different on your system.
» # lsparent -Cl ent2
lhea0 Available Logical Host Ethernet Adapter (l-hea)
__ 13. Open a virtual console to your LPAR. Use the smit tcpip fastpath to list your TCP/IP configuration. Record the host name, IP address, network mask and default gateway here.
Host name: ____________________
IP address: ____________________
Network mask: ____________________
Default gateway: ____________________
__ 14. Use the virtual console session to run the ifconfig AIX command to bring down and detach the existing Ethernet interface. This should be a physical Ethernet adapter that has logical device name ent0 (en0 interface). The logical number (ent#) for the device might be different on your system.
# ifconfig en0 down
# ifconfig en0 detach
__ 15. Use the smit tcpip fastpath to configure the Ethernet interface for the logical host Ethernet port. Use the Minimum Configuration & Startup SMIT menu option.
If the adapter's name is ent2, configure its interface en2. Use the following information to configure this interface:
• Reuse the host name, IP address, netmask, and gateway you recorded previously.
• Use the down arrow to move to the bottom of the SMIT panel and answer yes to the START Now line.
• Press Enter to run the SMIT panel.
EXempty • Type ESC 0 to exit SMIT.
__ 16. Use the ping AIX command to verify that your network interface can communicate on the network. Ping the IP address of your HMC.
Here is an example of a successful ping where hmcIP would be the actual HMC's IP address:
# ping hmcIP
PING 10.6.140.40: (10.6.140.40): 56 data bytes
64 bytes from 10.6.140.40: icmp_seq=0 ttl=64 time=0 ms 64 bytes from 10.6.140.40: icmp_seq=1 ttl=64 time=0 ms Type CTRL C to stop the ping.
__ 17. Run entstat -d on the new ent# device. Page through the statistics that are available for this type of device. You can also try the following command:
lsslot -c port
__ 18. Looking at the LHEA port assignments in Table 1 on page 3-4, what if you had to configure an LHEA port on your LPAR for the best performance for lots of network traffic to external hosts? What physical HEA port would you use?
Document that physical port ID here: ____________________
» Since all the LPARs are using physical port 0, you should configure your partition for the other physical port if there will be lots of network traffic to external hosts.
In that case, your LPAR would not share the same physical port as the other LPARs.
» Note, however, that all the logical ports associated with the same physical port allow partition-to-partition communication. LPARs that configure logical ports on the same physical ports can use internal LPAR-to-LPAR communications. If your LPAR was only going to have heavy traffic to other LPARs, using the same physical port, and thus the same HEA internal switch, would make more sense.
__ 19. Inform your instructor that you have finished this exercise.
End of exercise
Course materials may not be reproduced in whole or in part
3-8 Power Virtualization I © Copyright IBM Corp. 2009, 2013