0% found this document useful (0 votes)
86 views105 pages

AN11G - 8.1 - en - AN11G8 - EXERCISES - HINTS

Uploaded by

charles russel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views105 pages

AN11G - 8.1 - en - AN11G8 - EXERCISES - HINTS

Uploaded by

charles russel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 105

V11.

cover

Front cover
Course Exercises Guide
with hints
Power Systems for AIX I: LPAR
Configuration and Planning
Course code AN11G ERC 8.1
March 2020 edition
Notices
This information was developed for products and services offered in the US.
IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative
for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not
intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or
service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate
and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this
document does not grant you any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive, MD-NC119
Armonk, NY 10504-1785
United States of America
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do not allow disclaimer
of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein;
these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s)
and/or the program(s) described in this publication at any time without notice.
Any references in this information to non-IBM websites are provided for convenience only and do not in any manner serve as an
endorsement of those websites. The materials at those websites are not part of the materials for this IBM product and use of those
websites is at your own risk.
IBM may use or distribute any of the information you provide in any way it believes appropriate without incurring any obligation to you.
Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other
publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other
claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those
products.
This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible,
the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to
actual people or business enterprises is entirely coincidental.
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many
jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM
trademarks is available on the web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml.
© Copyright International Business Machines Corporation 2009, 2020.
This document may not be reproduced in whole or in part without the prior written permission of IBM.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
V11.3
Contents

TOC

Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Exercises description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

Exercise 1. Introduction to partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1


Part 1: Access documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Part 2: Log in to the HMC GUI and run tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
Part 3: (Optional) Pin HMC screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10

Exercise 2. HMC operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1


Part 1: HMC configuration and management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Part 2: HMC command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Part 3: Managed System view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
Part 4: Partition view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-24

Exercise 3. HMC and managed system maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1


Part 1: Back up HMC data (back up critical console data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Part 2: HMC corrective service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Part 3: Managed System Licensed Internal Code updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10

Exercise 4. Basic LPAR operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1


Part 1: Identify LPAR resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Part 2: Create LPAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
Part 3: Working with partition profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Part 4: Activating and deactivating partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11
Part 5: Using HMC CLI commands for partition operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
Part 6: Delete partition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15

Exercise 5. Processor and memory management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1


Part 1: View system configuration and configure processor options . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Part 2: Viewing shared processor utilization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9

Exercise 6. Configuring I/O resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1


Part 1: Configuring virtual storage devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Part 2: Configuring virtual networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
Part 3: Configuring physical adapters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
Part 4: (Optional) Configuring Single Root I/O Virtualization (SR-IOV) logical ports . . . . . . . . . . . . 6-8

Exercise 7. Logical partition management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1


Part 1: Checking the RMC function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
Part 2: Gather LPAR information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
Part 3: Remove existing LPAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
Part 4: Create new LPAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6

© Copyright IBM Corp. 2009, 2020 iii


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Trademarks

TMK

Trademarks
The reader should recognize that the following terms, which appear in the content of this training
document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
AIX® IBM Cloud™ OS/400®
Power® PowerVM® POWER6™
POWER7® POWER8® Redbooks®
Linux® is a registered trademark used pursuant to a sublicense from the Linux Foundation, the
exclusive licensee of Linus Torvalds, owner of the mark on a worldwide basis.
Windows is a trademark of Microsoft Corporation in the United States, other countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other product and service names might be trademarks of IBM or other companies.

© Copyright IBM Corp. 2009, 2020 iv


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercises description

pref

Exercises description
This course includes the following exercises:
• Introduction to partitioning
• HMC operations
• HMC and managed system maintenance
• Basic LPAR operations
• Processor and memory management
• Configuring I/O resources
• Logical partition management
In the exercise instructions, you can check off the line before each step as you complete it to track
your progress.
Most exercises include required parts, which should always be completed. It might be necessary to
complete these before you can start later exercises. If you have sufficient time and want an extra
challenge, some exercises might also include optional parts that you can complete.
This course includes two versions of the course exercise guide: “with hints” and “without hints”.
The standard “Course Exercises Guide” provides high-level instructions for the tasks you should
perform. You need to apply the knowledge you gained in the unit presentation to perform the
exercise.
The “Course Exercises Guide with hints” provide more detailed instructions and hints to help you
perform the exercise steps.

© Copyright IBM Corp. 2009, 2020 v


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty

Exercise 1. Introduction to partitioning


(with hints)

Estimated time
01:00

Overview
This exercise covers HMC and LPAR reference material, logging in to the HMC graphical interface,
accessing the All Systems and All Partitions views, running tasks, and opening terminal consoles
with the HMC GUI.

Objectives
• Explore documentation that is related to PowerVM and LPARs
• Log in to the HMC GUI using the graphical interface and explore screens
• Access the systems view and the partitions view in the GUI
• Run common HMC tasks

Introduction
In this exercise, you find the key pieces of documentation that cover the configuration of LPARs and
HMC usage on IBM Power Systems servers. You will log in to the HMC graphical interface and view
common screens, run tasks, and open partition consoles.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
command-line interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system that is connected to an IP network that is visible
or accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 1-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: Access documentation


In this part of the exercise, you discover the documentation to support Power Systems and logical
partitions. You can refer to this documentation as you work through the rest of the exercises in this
course. This exercise requires Internet access.
Web addresses and web page designs are subject to modification. If a link does not work as
described or is not available, ask your instructor.
__ 1. Point your web browser to http://www.ibm.com. Select the Products drop down menu in the
upper left corner, then select IT Infrastructure > IBM Power Systems as shown below.

__ 2. The Power Systems page provides information about the hardware, software, and solutions
that are offered by IBM. Many links, useful documents, and detailed information are
available. The organization of this page might change from time to time. Explore the
features of this page.
__ 3. Explore the available menu options on the Power Systems page.

© Copyright IBM Corp. 2009, 2020 1-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ 4. Now, access the IBM Knowledge Center at:
https://www.ibm.com/support/knowledgecenter
__ 5. Under Find your product documentation, click Select a product.
__ 6. Type POWER8 in the search input box. Then, click on the POWER8 option in the results.
__ 7. Now that the Knowledge Center is displaying the POWER8 systems information, search for
information on creating logical partitions.
» In the upper right side of the page, enter creating logical partitions in the search box and
press Enter.
__ 8. You should see several relevant items for creating logical partitions. Click on a few options
to see the information that is provided.
__ 9. Next, go to the IBM Redbooks site: https://www.redbooks.ibm.com
__ 10. Search for PowerVM Virtualization Introduction. The results should include the two items
that are shown below. The first book that is listed is important reading for those who are
managing partitions. The second book is for more advanced administrators.

__ 11. Return to the IBM Knowledge Center (https://www.ibm.com/support/knowledgecenter) and


follow these steps.
__ a. Click Select a product.
__ b. Type Linux in the search input box.
__ c. Scroll through the items in the output. You should see Linux on IBM Systems. Select this
option. The result should show an extensive list of resources spread over three
categories: Getting started, Quick start guides and popular topics, and More
Information.
__ d. Bookmark this page on your personal PC if Linux is an area of importance to you.
__ e. In the upper left corner of the page, click the word Home.
__ f. Click Select a product.
__ g. Type AIX in the search input box.
__ h. Select the AIX option in the resulting list.
__ i. Again, note the extensive list of resources for AIX.
__ j. Bookmark this page on your personal PC if AIX is an area of importance to you.
__ k. Select AIX 7.2 as the desired version for product documentation.

© Copyright IBM Corp. 2009, 2020 1-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ l. Note that at any point you can change the selected version of AIX using the Change
version or product drop down menu.

Part 2: Log in to the HMC GUI and run tasks

Important

You will be accessing various configuration menus on the HMC. This is a shared resource. DO NOT
make any changes to the configuration unless directed to do so by the exercise instructions.

__ 12. Start a web browser session.


__ 13. Point your web browser to the appropriate URL address for your assigned HMC:
https://<addr> (where <addr> is the HMC IP address provided by your instructor).

© Copyright IBM Corp. 2009, 2020 1-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ 14. By default, the HMC uses a self-signed security certificate. Many modern web browsers,
including Firefox, do not automatically trust web sites that use self-signed certificates. Store
a browser security exception to permit connecting to the HMC using a self-signed
certificate. The steps below show how this is done using Firefox. The steps may be different
when using another browser, or a different level of Firefox than that used to develop the
exercise.
__ a. When presented with the page indicating there is a potential security risk, click
Advanced.

__ b. When presented with additional security information, click Add Exception.

__ c. When presented with additional security information, click Confirm Security


Exception.

© Copyright IBM Corp. 2009, 2020 1-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ 15. Log in to the HMC graphical interface using the steps below.
__ a. After storing the browser security exception, the HMC Sign In page should be displayed.

Note

The Sign In page can be customized by adding text at the top of the panel. Your lab environment
may look different than the example shown above.

__ b. Enter the HMC user ID and password that was provided by your instructor.
__ c. Click Sign In.
__ d. Make sure that you are logged in to your assigned managed system’s HMC as the
correct user. Check the user name that appears in the right top corner of the HMC GUI.
An example is shown below.

© Copyright IBM Corp. 2009, 2020 1-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ 16. Access the help menu by selecting ? at the upper right of the HMC GUI. The menu provides
several options to get you started using the HMC. Take a moment to scan through these
various options.

__ a. Select Help > Getting Started and read about the various HMC tasks and features.

__ b. In the Help menu, select the Knowledge Center link. A new browser tab is opened up
pointing to https://www.ibm.com/support/knowledgecenter. Notice that there are several
other links available under the Help menu.

© Copyright IBM Corp. 2009, 2020 1-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ 17. In the toolbar on the left side of the HMC GUI, roll your mouse over each of the four icons to
display their names. An example is shown below.

__ 18. The first icon in the toolbar is Resources. Click the Resources icon and notice the options.

__ 19. Select the All Systems item on the Resources menu.


__ 20. Find the icons that toggle the Gallery view (with icons) and the Table view. The icons look
like this and are at the top right of the content area:

__ 21. Switch between the Gallery view and the Table view. Choose the view that you want to
work with during class. Customizations such as this are retained the next time you log in to
the HMC.
__ 22. In the All Systems view, you should see one server listed. Notice the information that is
available, including allocated and available processor units and memory capacity.
__ 23. Click on the italicized i for to display additional information about the managed system. The
i looks like this:

© Copyright IBM Corp. 2009, 2020 1-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
The panel that is displayed includes details of the machine type and serial number. Click the
x in the upper right of the panel to close it.
__ 24. Click on the pie chart icon that looks like this:

Observe the additional resource capacity information. Click x to close the panel.
__ 25. Select the managed system by clicking the checkbox contained withing the icon (gallery
view), or next to its name (table view).
__ 26. Click the Actions menu button and notice the options that are available. Select the View All
Actions option and notice the additional options. Click outside of the pop-up menu to close
it.
__ 27. With the managed system still selected, choose View System Properties from the Actions
menu.
__ 28. Note the extensive menu on the left side of the page. This is referred to as the menu pod.
The items in the menu depend on the type of object that has been selected, and the state o
the object.
Click on several menu items and notice what is in the content area for each. View the
information; do not make any changes. Any changes that are made in the properties are
dynamic and could affect the lab exercises in this course. Many of the available menu items
are beyond the scope of this course. In particular, be sure to select the General Settings
menu option, and the Processor, Memory, I/O menu option.
__ 29. Now look at the client partitions that are running on the server. Click the Resources icon in
the toolbar on the left side of the HMC GUI, and select All Partitions. By default, the
partitions are displayed using the Gallery view (with icons). However, you can switch to the
table view if desired.
__ 30. Note the information available for the partitions. Click on the i and the pie chart icons for
your assigned partition to see the available information.
__ 31. Select your assigned LPAR. Click the Actions menu to see what is available for running
partitions. Click View All Actions.
__ 32. Now access the list of all partitions a different way. Click on the Resources icon again and
choose All Systems.
__ 33. Click on the name of the managed system. This should open the All Partitions view for that
managed system.

© Copyright IBM Corp. 2009, 2020 1-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
» Do not select the managed system. Click on the name of the managed system. The name is
sys880 in this example of a gallery view icon:

__ 34. Select your assigned partition once again. Run the Actions > View Partition Properties
task.
__ 35. Notice the options in the menu pod on the left. Click the General Properties, Processors,
and Memory options and view the content area for each item. Do not make any changes to
the partition’s configuration. Be sure to click on the Advanced button when you see it, to
view additional attributes.
__ 36. Roll your mouse over a few of the question mark (?) icons to view explanations of the
attributes.
__ 37. Let your instructor know you have completed the exercise. Alternatively, if you have time,
continue to the optional part of the exercise below. If you are finished with the exercise, log
off from the HMC.
» To log off from the HMC, click the down arrow next to your user name in the upper right corner
of the HMC. Then select Log Off from the menu. (Log Off is the only option on the menu).

Part 3: (Optional) Pin HMC screens


__ 38. If you have extra time, try the following steps to pin an HMC page.
__ a. You might still be viewing the partition properties page for your assigned partition. If not,
select your assigned partition and run Actions > View Partition Properties.
__ b. Select the Processors item in the menu pod.
__ c. Look for the push pin icon in the upper right corner of the content area. It is highlighted
in the box in the example below.

© Copyright IBM Corp. 2009, 2020 1-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 1. Introduction to partitioning

EXempty
__ d. Click the push pin. This pins the Processors properties page for the selected partition
and puts an entry in the Pins panel on the right side of the screen. Here is an example of
an entry in the Pins panel:

__ e. The next time that you want to go back to the Processors panel for your assigned LPAR,
you simply click the entry in the Pins panel.
__ f. Log off and log back in. Is your pinned page still in the Pins panel?
» The pinned page should still be in the Pins panel.
__ g. Go to the pinned page by clicking the link in the Pins panel. Once back on the
processors properties page, click that page’s push pin again. This unpins the page.
__ 39. Log off from the HMC.
» To log off from the HMC, click the down arrow next to your user name in the upper right corner
of the HMC. Then select Log Off from the menu. (Log Off is the only option on the menu).
__ 40. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 1-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty

Exercise 2. HMC operations


(with hints)

Estimated time
01:15

Overview
This exercise is designed to enable students to become familiar with the HMC V9 interface.

Objectives
• Schedule an operation for a partition
• Use HMC commands to view information about servers and partitions
• Use the HMC vtmenu command to access a partition console
• Perform key HMC operations

Introduction
This exercise covers the basic HMC operations including a review of all the HMC application
functions, HMC user management, and other tasks pertaining to the managed system operations.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
Command Line Interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system connected to an IP network that is visible or
accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 2-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: HMC configuration and management


In this part of the exercise, you discover the HMC configuration options. You create an HMC user
and explore the following HMC GUI tasks that are related to:
• HMC network-related information, such as IP address, routes gateways, and firewall
requirements
• Date and time settings, as well as the level of the HMC code
This exercise is a general overview of the HMC interface and some of the administrative tasks will
not be explored until later exercises.
__ 1. If not already logged in to your assigned HMC, sign in as you did in the previous exercise.
__ a. Enter the HMC user ID and password provided to you by the instructor.
__ b. Select the Sign In button.
__ c. Make sure that you are logged in to your assigned managed system’s HMC as the
correct user. Check the user name that appears in the upper right corner of the HMC
GUI.
__ 2. Select the HMC Management icon in the toolbar on the left side of the interface, then select
the Updates item from the menu. A pop-up window is displayed. Check the HMC code
version, release, and service pack; it should be V9.1.940 or later. Once you have viewed the
information, select Cancel to close the window.

© Copyright IBM Corp. 2009, 2020 2-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
This example shows the HMC is running the 9.1.940 release. Your assigned HMC might be
running a later version.

__ 3. HMC version information can also be viewed using the help menu (the ? symbol in the
upper right corner of the GUI). Select Help > About to view the HMC version information.
Once you have viewed the information, click x to close the panel.

__ 4. In the toolbar on the left side of the GUI, select HMC Management > Console Settings.
Next, select the Launch Guided Setup Wizard link in the content area to launch the
step-by-step configuration assistant (wizard).

© Copyright IBM Corp. 2009, 2020 2-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 5. Read the welcome information for the wizard, then click Next to continue to the next page.

__ 6. View the date, time, and time zone settings. Then, select Cancel and answer Yes to confirm
and to exit the wizard without saving any changes.
__ 7. If prompted to set up Call-Home, respond by selecting the option No, defer setting up
Call-Home. Click OK to complete the exit of the Guided Setup wizard. If a window pops up
and says the current network configuration does not match the HMC's certificate, answer
No.
__ 8. Access the help menu by selecting ? at the upper right of the HMC GUI. The menu provides
several options to get you started using the HMC. Take a moment to scan through the
various options.

__ a. Select Help > Getting Started and read about the various HMC tasks and features.

© Copyright IBM Corp. 2009, 2020 2-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty

__ b. In the Help menu, select the Knowledge Center link. A new browser tab is opened up
pointing to https://www.ibm.com/support/knowledgecenter. Notice that there are several
other links available under the Help menu.
__ 9. Now, you will create an HMC user ID.
__ a. Write down the HMC user ID. It should be of the form studentX where X is your student
number. Also, write down the password you want for this ID.
HMC user ID: ___________________________________________________
Password (at least eight characters): ________________________________
__ b. In the toolbar, select Users and Security > Users and Roles; then:
i. Select Manage User Profiles and Access. This will open the User Profiles window.
ii. Select User > Add.
__ c. Perform the following actions:
i. Enter the user ID (chosen previously).
ii. Type a description.
iii. Type a password (at least eight alphanumeric characters). Confirm the password by
typing it again.
iv. Select AllSystemResources in Managed Systems Roles. This gives the new user
access to all of the managed systems and partitions being managed by the HMC.
v. Select hmcoperator in Task Roles.
vi. Click User Properties. Select the Allow remote access via the web check box. Click
OK to return to the Add User page.

© Copyright IBM Corp. 2009, 2020 2-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
Here is an example of the Add User panel. Your User ID will be different.

__ d. Click OK to create the new user.


__ e. Confirm that the new user is in the list of all users.
__ f. Close the User Profiles window and log off from the HMC.
__ g. Sign in to the HMC as the user you just created.
__ 10. In the toolbar, select Serviceability. Analyze and explore the options that are listed:
__ a. View Console events log.

i. Navigate in the window and look at the Console Event list and details.
ii. Notice that you can filter events by date and time.
Select View > Using a Different Time Range.
Review the Change Time window.
Close the Change Time window.

© Copyright IBM Corp. 2009, 2020 2-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
iii. Close the View Console Events window.
__ b. Check who else is currently logged in to the HMC and review the tasks that they are
running. In the Users and Security section, select Manage Users and Tasks.
i. Look at the logged in users and the tasks they are running. Do not disconnect or log off
any user.

ii. Close the window.


__ 11. Follow the next set of steps to explore some of the options under Serviceability. Do not
perform any updating action, and close the windows when done.
__ a. In the toolbar, click Serviceability > Serviceable Events Manager.
__ b. You can use the Manage Serviceable Events window to specify selection criteria for the
serviceable events you want to view or manage. Select OK to accept the default criteria
and open the list of events. The Manage Serviceable Events - Serviceable Event
Overview window opens.
__ c. Select Full table view to see additional details about each event. Choose the most
recent event, select its reference code, and look at the description field.
(If the reference code begins with the # character, choose another event that begins with
a letter or number.)
__ d. Select Cancel twice to exit the serviceable events window.
__ 12. The HMC has its own system clock.
__ a. In the toolbar, select HMC Management > Console Settings. Then select Change
Date and Time in the content area.
__ b. View all of the time zones available. Do not change the configuration.
__ c. Select the NTP configuration tab to see how the Network Time Protocol (NTP) can be
configured. Select Cancel to exit out of the window.

© Copyright IBM Corp. 2009, 2020 2-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» Following is an output example:

Note

The following steps are related to the HMC network configuration. Do not change any network
options or configuration parameters.

__ 13. Under HMC Management > Console Settings, run the View Network Topology task to
examine the network configuration. This opens up a new window and might take a couple of
minutes to show the detailed configuration.

__ 14. In the Current Topology output screen:


__ a. Examine the details under the eth0 interface and note what types of network hosts are
listed there.

© Copyright IBM Corp. 2009, 2020 2-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ b. Collapse the eth0 interface (and expand the eth1 interface if not already expanded) and
then examine what is discovered through that interface.

Information

In some lab environments, you might find that only eth0 is being used and that the managed system
FSPs and the LPARs are all on the one public network interface. In other lab environments, you
might find that one interface has only the managed systems and their FSPs (a private network),
while the other interface is a public network with connectivity to the LPARs.

__ c. Select each interface (eth0 and eth1) one at a time to show the network parameters on
the right part of the screen.
__ d. If you have two active interfaces, note the interface that has an IP address on the same
subnet as your assigned partition. This interface has a connection to the partitions. 
(For example, if eth0 has IP address 192.168.128.1 and eth1 has IP address
10.6.109.40 and your partition’s IP address is 10.6.109.111, you will use eth1 in the next
few steps.)
__ e. Select your assigned LPAR under the interface that is on the same subnet as your
partition. Notice that details about that LPAR (including the IP address) are displayed on
the right. In addition, the Ping Current Node button (shown below the Current Topology
list) is now enabled.
__ f. Select Ping Current Node to test connectivity to your assigned partition.
__ g. Close the View Network Topology window.

© Copyright IBM Corp. 2009, 2020 2-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 15. Select the Change Network Settings task.

__ 16. Select the LAN Adapters tab, and select the Ethernet interface that is used for the LPAR
connection (same subnet as your assigned LPAR). It should be eth1. Select Details and
review the Basic Settings information. Notice the LAN address and IP address for this
interface. Do not change anything.

__ 17. Select the Firewall Settings tab. In the Available Applications list, what are the port
numbers that must be authorized to be able to access the HMC web interface (https)?
_________________________
» Secure Remote Web Access 443:tcp 12443:tcp 9960:tcp

© Copyright IBM Corp. 2009, 2020 2-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 18. In the Available Applications list, select Secure Shell (the firewall configuration on the HMC
that allows SSH traffic). View the status pane to the right. The HMC should already be
configured to allow SSH traffic. If that is the case, leave the configuration as is. If SSH traffic
is not allowed, inform the instructor.
» If SSH is not yet allowed, the method you would use to change this is as follows: There are two
panels. The upper panel has all of the options. Select Secure Shell with the port of 22:tcp. This
is the SSH port. Select Allow Incoming. If you had been mistaken and the SSH port was
already allowed, you would see a message that states it is already allowed.
__ 19. Close the LAN Adapter Details window.
__ 20. If you have a second Ethernet interface in use that supports the private network (eth0),
explore the basic settings of that other Ethernet interface. It might or might not be
configured in your environment. If it is configured, it might be a private network for
connecting to the managed systems Service Processors. Do not change the network
settings.

__ 21. Select Cancel to close the LAN Adapter Details window.


Select Cancel to close the Customize Network Settings window. If prompted, confirm exit
without saving.

Part 2: HMC command line


In this part of the exercise, you use SSH to run HMC commands remotely to gather system
information, learn about HMC command syntax, and find help information.

© Copyright IBM Corp. 2009, 2020 2-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty

Information

If you are not using the IBM Remote Lab environment, connect to your lab using the instructions
provided by your instructor.

__ 22. You need to use SSH (Secure Shell) to connect to the HMC and run some HMC commands.
An example tool that provides SSH connections is PuTTY. Start PuTTY and enter the host
name or IP address of the HMC.

Log in using your assigned HMC user ID and password. When you log in successfully, you
are connected to the HMC in a restricted shell session.
__ 23. You can recall and reuse commands that you entered earlier. You can use the shell
command set -o vi to use vi style command line editing. Doing this can save many
keystrokes of repetitive typing. Press the Esc key on your keyboard and type k once or
many times to bring back previous commands. You can then use the editing commands to
customize the new commands.
Likewise, set -o emacs can be used for emacs style editing.
__ 24. Display your HMC login environment PATH variable and list the commands that you can
execute.
echo $PATH shows all the directories that contain the commands you are allowed to run.
List the contents of the directories in your PATH variable.

© Copyright IBM Corp. 2009, 2020 2-12


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The commands and example output are shown below:
USER@hmc> echo $PATH
/hmcrbin/:/usr/hmcrbin
USER@hmc> ls /hmcrbin /usr/hmcrbin
/hmcrbin:
basename cut egrep grep ls mount ping sed sort uname
cat date fgrep ish more netstat ping6 sleep umount

/usr/hmcrbin:
OS_install cpdump lsdatarep lssvcevents rmlock
asmmenu cpfile lsdump lssvcinfo rmlparutil
bkconsdata cpsysplan lsfru lssyscfg rmprofdata
bkprofdata createse lshmc lssysconn rmpwdpolicy
chaccfg csmlicutil lshmcauth lssysplan rmrsrc-api
chbmccert defsysplanres lshmccert lssysplanres rmsyscfg
chcod deploysysplan lshmcencr lstskey rmsysconn
chcodpool diagcloudconn lshmcfs lsusrtca rmsysplan
chcomgmt diagrmc lshmcldap lsvet rmsysplanres
chcuod diff lshmcusr man rmvterm
chdatarep dircolors lshsc mccodop rnvi
chhmc dlslic lshwinfo migrcfg rrlpar
chhmcauth drstartlpar lshwres migrdbg rrstartlpar
chhmccert du lsilmtscan migrlpar rrstartremote
chhmcencr dump lsiotopo migrremote rsMMRioServer
chhmcfs expr lsipsec mkaccfg rsthwres
chhmcldap formatmedia lsled mkauthkeys rstprofdata
chhmcusr gen_backup_db lslic mkcodpool rstupgdata
chhwres genisoimage lslock mkdir runilmtscan
chipsec getcimstatus2 lslogon mkhmccert runlpcmd
chkmedia getdump lslparmigr mkhmcusr runsig
chled getfile lslparutil mkhmcusr_ldap saveupgdata
chlickey getgardrec lsmediadev mkisofs scp
chlparstate getopt lsmemdev mkmigrkeys sendfile
chlparutil getpcietopology lsmemopt mkprofdata setkeyoncec
chnportlogin getriotopology lsmigrdbg mkpwdpolicy setlparcap
chperfmon getupgfiles lsnodeid mkrsrc-api sha1sum
chprimhmc head lsnportlogin mksvcevent ssh
chproxy hmcshutdown lspartition mksyscfg ssh-keygen
chpsm hmcwin lsperfmon mksysconn startdump
chpwdpolicy host lsprimhmc mksysplan sum
chpwrmgmt hwdbg lsprofspace mkvterm tail
chsacfg installios lsproxy monhmc termtask
chspsnmp ldapsearch lspsm nlsmsg updhmc
chstat less lspwdpolicy optmem updlic
chsvc locale lspwrmgmt osinstall updpmh
chsvcevent logssh lsrefcode pedbg utilcollect
chsvcinfo lpar_netboot lsrepairfru pesh utilhmcevent
chsyscfg lpcfgop lsrrstartlpar refdev utilpurge

© Copyright IBM Corp. 2009, 2020 2-13


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
chsyspwd lsaccfg lsrsdevsize repairfru utilsnapmoni
chsysstate lsavailres lsrsrc rm viosvrcmd
chtskey lsbmccert lsrsrc-api rmaccfg vtmenu
chusrtca lscod lssacfg rmdir which
chvet lscodpool lsspsnmp rmdump who
clear lscomgmt lsstat rmfile whoami
cp lscuod lssvc rmhmcusr
__ 25. To learn more about the HMC commands and their syntax, use the HMC man pages. Run
the man lssyscfg command to see the information about the lssyscfg command.
» The command and example output are shown below:
USER@hmc> man lssyscfg
LSSYSCFG(1) User Manuals LSSYSCFG(1)
NAME
lssyscfg - list system resources
SYNOPSIS
lssyscfg -r {lpar | prof | sys | sysprof | cage | frame}
[-m managed-system | -e managed-frame]
[ . . . ]
__ 26. Try out other commands you find in /usr/hmcrbin on the HMC. Make sure the commands
only list information and do not change the system configuration. (That is, use the ls*
commands, not the ch*, mk* or rm* commands.)
A few commands are not documented and do not have manual pages. If you find one, run
the command with either the --help or the --usage option for usage information. Look at
these commands and notice how they are named. For example, while lshwres (List
Hardware Resources) lists information about system resources, the chhwres (Change
Hardware Resources) allows you to change the hardware resource configuration for
partitions.
__ 27. Review a man page at the HMC command line and then type q to close the man page. The
entire man page might disappear. If you prefer that the portion of the man page you were
viewing stays visible when you press q, change the TERM variable to ansi. To change the
TERM variable, run the following command:
export TERM=ansi
__ 28. Use the following commands to find the name of the managed system that is providing your
partition. Record the name of your managed system in exercise guide:
lssyscfg -r sys -F name
If this command returns more than one managed system, run the following command to find
which managed system has your partition. Substitute each managed system name for
msname in the command until you find your partition.
lssyscfg -m msname -r lpar -F name

© Copyright IBM Corp. 2009, 2020 2-14


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The commands and example output are shown below:
USER@hmc> lssyscfg -r sys -F name
sys897
sys898
USER@hmc:~> lssyscfg -m sys897 -r lpar -F name
sys897_partition1
sys897_partition2
sys897_partition3
sys897_partition4
sys897_partition5
sys897_partition6
USER@hmc:~> lssyscfg -m sys898 -r lpar -F name
sys898_partition7
sys898_partition8
sys898_partition9
sys898_partition10
sys898_partition11
sys898_partition12
__ 29. Many of the commands have long outputs. Try the following command (where msname is the
name of your managed system) and see what information is displayed:
lssyscfg -m msname -r sys
» The command and example output are shown below:
USER@hmc> lssyscfg -m sys899 -r sys
name=sys899,type_model=8286-42A,serial_num=2143F9V,ipaddr=172.16.0.99,sp_typ
e=fsp,state=Operating,detailed_state=None,sys_time=02/14/2020
21:47:40,power_off_policy=1,active_lpar_mobility_capable=1,inactive_lpar_mob
ility_capable=1,active_lpar_share_idle_procs_capable=1,active_mem_expansion_
capable=1,hardware_active_mem_expansion_capable=1,active_mem_mirroring_hyper
visor_capable=unavailable,active_mem_sharing_capable=1,addr_broadcast_perf_p
olicy_capable=0,aix_capable=1,bsr_capable=0,capi_capable=0,cod_mem_capable=1
,cod_proc_capable=1,dynamic_platform_optimization_capable=1,electronic_err_r
eporting_capable=1,firmware_power_saver_capable=1,hardware_power_saver_capab
le=1,hardware_discovery_capable=1,hca_capable=0,huge_page_mem_capable=1,lhea
_capable=0,lpar_avail_priority_capable=1,lpar_proc_compat_mode_capable=1,lpa
r_remote_restart_capable=1,powervm_lpar_simplified_remote_restart_capable=1,
dynamic_simplified_remote_restart_toggle_capable=1,powervm_lpar_remote_resta
rt_capable=1,lpar_suspend_capable=1,micro_lpar_capable=1,os400_capable=1,525
0_application_capable=1,os400_native_io_capable=1,redundant_err_path_reporti
ng_capable=1,shared_eth_failover_capable=1,sni_msg_passing_capable=0,sp_fail
over_capable=1,vet_activation_capable=1,virtual_fc_capable=1,virtual_io_serv
er_capable=1,virtual_switch_capable=1,vsn_phase2_capable=1,vsi_on_veth_capab
le=1,assign_5250_cpw_percent=0,max_lpars=320,max_power_ctrl_lpars=1,max_remo
te_restart_capable_lpars=320,max_suspend_capable_lpars=320,service_lpar_id=n
one,"lpar_proc_compat_modes=default,POWER6,POWER6+,POWER7,POWER8",curr_sys_k
eylock=norm,pend_sys_keylock=norm,curr_power_on_side=temp,pend_power_on_side
=temp,curr_power_on_speed=norm,pend_power_on_speed=norm,power_on_type=power
on,power_on_option=standby,power_on_lpar_start_policy=userinit,pend_power_on

© Copyright IBM Corp. 2009, 2020 2-15


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
_option=standby,pend_power_on_lpar_start_policy=userinit,power_on_method=02,
power_on_attr=0000,sp_boot_attr=5000,sp_boot_major_type=0B,sp_boot_minor_typ
e=09,sp_version=0008000C,mfg_default_config=0,curr_mfg_default_ipl_source=a,
pend_mfg_default_ipl_source=a,curr_mfg_default_boot_mode=norm,pend_mfg_defau
lt_boot_mode=norm,max_vtpm_lpars=60,vtpm_version=1,cluster_serial_num=none,p
eer_collective_serial_num=none
__ 30. Now try the same lssyscfg command with it restricted so that only certain fields are shown.
Most commands can control their output in this way. Add the --header option to see the
headers for each field. (Substitute the name of your managed system where the place
holder msname is shown.)
lssyscfg -m msname -r sys -F name,type_model --header
» The command and example output are shown below:
USER@hmc> lssyscfg -m sys899 -r sys -F name,type_model --header
name,type_model
sys899,8286-42A
The example output shows that the machine type is 8286 and the model number is 42A.
__ 31. Determine and run the command that shows a list of all systems that are being managed by
this HMC and display their machine type and serial numbers.
» The command and example output are shown below and shows only one managed system:
USER@hmc> lssyscfg -r sys -F name,type_model,serial_num --header
name,type_model,serial_num
sys899,8286-42A,2143F9V
__ 32. Using the same command with different options, find the current state of a specific managed
system and its operator panel value.
» The command and example output are shown below:
USER@hmc> lssyscfg -r sys -m sys899 -F name,state --header
name,state
sys899,Operating
__ 33. Try out the following command and see what it does:
lshmc -v

© Copyright IBM Corp. 2009, 2020 2-16


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The command and example output are shown below (this command displays vital product data
for the HMC):
USER@moe-hmc:~> lshmc -v
"vpd=*FC ????????
*VC 20.0
*N2 Fri Feb 14 22:18:24 UTC 2020
*FC ????????
*DS Hardware Management Console
*TM V917-f3f
*SE 7d4135d
*MN IBM
*PN N/A
*SZ 8370782208
*OS Embedded Operating Systems
*NA 10.8.12.252
*FC ????????
*DS Platform Firmware
*RM V9R1.940.0
*UVMID 917f:3f7d:4806:135d
"
__ 34. What command lists all of the HMC users? _____________________________
» The command and example output are shown below:
USER@hmc> lshmcusr
stud5024_1@pokvhmc14:~> lshmcusr
name=hscpe,taskrole=hmcpe,description=hscpe,pwage=99999,resourcerole=ALL:,au
thentication_type=local,remote_webui_access=0,remote_ssh_access=1,min_pwage=
0,session_timeout=0,verify_timeout=15,idle_timeout=0,inactivity_expiration=0
,resources=<ResourceID = ALL:><UserDefinedName =
AllSystemResources>,password_encryption=sha512,disabled=0,passwd_authenticat
ion=1
name=stud5024_8,taskrole=hmcsuperadmin,description=HMC
User,pwage=99999,resourcerole=ALL:,authentication_type=local,remote_webui_ac
cess=1,remote_ssh_access=1,min_pwage=0,session_timeout=0,verify_timeout=15,i
dle_timeout=0,inactivity_expiration=0,resources=<ResourceID =
ALL:><UserDefinedName =
AllSystemResources>,password_encryption=sha512,disabled=0,passwd_authenticat
ion=1

<some output omitted>


__ 35. Use the lspartition -dlpar command to list all active partitions that support dynamic
LPAR operations. Check the Active field for each partition. If Active = 1, then RMC is
active between the partition and the HMC and dynamic LPAR operations can be performed. 

Note: Each partition is identified by the Partition field, which includes the partition ID and
the managed system model / serial number and the partitions IP address. If this HMC
manages several managed systems, the partitions for all of the managed systems are listed
together in the output.

© Copyright IBM Corp. 2009, 2020 2-17


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The command and example output are shown below:
USER@hmc:~> lspartition -dlpar
<#0> Partition:<51*8284-22A*216BE2V, , 10.8.24.100>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1938>, DCaps:<0xd4f9f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<1004>
<#1> Partition:<65*8284-22A*216BE2V, , 10.8.24.15>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<652>
<#2> Partition:<67*8284-22A*216BE2V, , 10.8.24.17>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<652>
<#3> Partition:<66*8284-22A*216BE2V, , 10.8.24.16>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<652>
<#4> Partition:<68*8284-22A*216BE2V, , 10.8.24.18>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<650>
<#5> Partition:<63*8284-22A*216BE2V, , 10.8.24.13>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<651>
<#6> Partition:<62*8284-22A*216BE2V, , 10.8.24.12>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<651>
<#7> Partition:<64*8284-22A*216BE2V, , 10.8.24.14>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<652>
<#8> Partition:<61*8284-22A*216BE2V, , 10.8.24.11>
Active:<1>, OS:<AIX, 7.2, 7200-04-01-1939>, DCaps:<0xc2c5f>, CmdCaps:<0x4000003b, 0x3b>, PinnedMem:<651>

__ 36. What lshwres command syntax would you use to display all of the processor information on
the managed system? __________________________________
» The command and example output are shown below:
USER@hmc:~> lshwres -r proc -m sys880 --level sys
configurable_sys_proc_units=20.0,curr_avail_sys_proc_units=16.4,pend_avail_sys_proc_units=16.4,insta
lled_sys_proc_units=20.0,deconfig_sys_proc_units=0,min_proc_units_per_virtual_proc=0.05,max_virtual_
procs_per_lpar=256,max_procs_per_lpar=256,max_curr_virtual_procs_per_aixlinux_lpar=64,max_curr_virtu
al_procs_per_vios_lpar=64,max_curr_virtual_procs_per_os400_lpar=4,max_curr_procs_per_aixlinux_lpar=6
4,max_curr_procs_per_vios_lpar=64,max_curr_procs_per_os400_lpar=4,max_shared_proc_pools=64

__ 37. What lshwres command syntax would you use to display all of the memory information for
the partitions on the managed system? ______________________
» The command and example output are shown below:
USER@hmc:~> lshwres -r mem -m sys880 --level lpar
lpar_name=sys8802_lpar8,lpar_id=68,curr_min_mem=2048,curr_mem=2048,curr_max_mem=4096,pend_min_mem=20
48,pend_mem=2048,pend_max_mem=4096,run_min_mem=2048,run_mem=2048,curr_min_num_huge_pages=0,curr_num_
huge_pages=0,curr_max_num_huge_pages=0,pend_min_num_huge_pages=0,pend_num_huge_pages=0,pend_max_num_
huge_pages=0,run_num_huge_pages=0,mem_mode=ded,curr_mem_expansion=0.0,pend_mem_expansion=0.0,desired
_hardware_mem_expansion=1,curr_hardware_mem_expansion=1,desired_hardware_mem_encryption=1,curr_hardw
are_mem_encryption=1,curr_hpt_ratio=1:128,curr_ppt_ratio=1:4096
[ . . . ]

__ 38. On the HMC command line:


__ a. Use the mkvterm command to open a virtual terminal (console) to your assigned
partition.
» The following command opens a terminal session to the partition named sys8991_lpar1 on the
managed system sys899.
mkvterm -m sys899 -p sys8991_lpar1
__ b. Log in to your partition as root.
__ c. Next, log out and break the connection to return to the HMC command line:
Type exit to log out. At the new login prompt enter a tilde then a dot (~.). Answer y to
confirm that you want to terminate the connection and the connection will be broken.

© Copyright IBM Corp. 2009, 2020 2-18


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» Following is an example for terminating the session.
AIX Version 7
Copyright IBM Corporation, 1982, 2010.
Console login: root
root's Password:
Last login: Sat Feb 18 19:17:32 2012 on /dev/pts/0 from 10.30.0.214
sys897_partition1:/ ~.
Terminate session? [y/n] y
USER@hmc:~>
» Note: you do not actually see the dot (.) or the y when you type them.
__ 39. Run the vtmenu command and select your assigned LPAR. If the HMC is managing more
than one system, you’ll be presented with a list of systems. Pick your assigned system and
then you will be presented with a list of LPARs. (If the command tells you that the TERM
variable is unknown, choose vt320 from the list.) When the console session successfully
opens, close the session as you did with the mkvterm command.
» The command and example output are shown below. This is an example where the HMC is
managing two systems, sys897 and sys898. If your training HMC is only managing one server,

© Copyright IBM Corp. 2009, 2020 2-19


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
then it will take you directly to the list of partitions. Select your partition by typing the number in
front of its name.
USER@hmc:~> vtmenu

Retrieving name of managed system(s) . . . sys897 sys898


----------------------------------------------------------
Managed Systems:
----------------------------------------------------------
1) sys897
2) sys898
Enter Number of Managed System. (q to quit): 1
----------------------------------------------------------
Partitions On Managed System: sys897
OS/400 Partitions not listed
----------------------------------------------------------
1) sys897_partition1 Running
2) sys897_partition2 Running
3) sys897_partition3 Running
4) sys897_partition4 Running
5) sys897_partition5 Running
6) sys897_partition6 Running
Enter Number of Running Partition (q to quit): 1
1
Opening Virtual Terminal On Partition sys897_partition1 . . .
Open in progress
Open Completed.
AIX Version 7
Copyright IBM Corporation, 1982, 2014.
Console login: root
root's Password:
[ . . . ]

sys897_aix1:/ # ~.

Terminate session? [y/n] y

Hit <Enter> To Continue, q to quit: q


----------------------------------------------------------
Managed Systems:
----------------------------------------------------------
1) sys897
2) sys898
Enter Number of Managed System. (q to quit): q
Bye.
__ 40. Explore the monhmc HMC command.
What RMC subsystems are active? __________________________________

© Copyright IBM Corp. 2009, 2020 2-20


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The command and example output are shown below:
USER@hmc> monhmc -s rmc
Every 4.0s: MONHmc rmc Fri Feb 14 22:27:31 2020

Tasks: 3 total, 0 running, 3 sleeping, 0 stopped, 0 zombie


%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8174592 total, 353444 free, 4445176 used, 3375972 buff/cache
KiB Swap: 2096124 total, 2087668 free, 8456 used. 3258600 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


22306 root 20 0 607204 23576 11628 S 0.0 0.3 7:10.23 rmcd
22528 root 20 0 1664572 57204 5828 S 0.0 0.7 0:03.18 IBM.Servic+
22506 root 20 0 2199692 32428 8464 S 0.0 0.4 1:27.33 IBM.LparCm+
» Use <ctrl> c to escape.
__ a. How much memory is in use by the HMC? ___________________________________
» The command and example output are shown below:
USER@hmc> monhmc -r mem
Every 4.0s: MONHmc mem Fri Feb 14 22:29:52 2020

KiB Mem : 8174592 total, 348060 free, 4444088 used, 3382444 buff/cache
__ b. What is the current system load on each of the HMC’s CPUs? ____________________
» The command and example output are shown below:
USER@hmc> monhmc -r proc
Every 4.0s: MONHmc proc Fri Feb 14 22:30:54 2020

%Cpu0 : 2.3 us, 1.3 sy, 0.0 ni, 96.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 1.3 us, 0.3 sy, 0.0 ni, 98.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 0.3 us, 0.0 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
__ c. How much swap space on the HMC is free? __________________________________
» The command and example output are shown below:
USER@hmc> monhmc -r swap
Every 4.0s: MONHmc swap Fri Feb 14 22:31:47 2020

KiB Swap: 2096124 total, 2087668 free, 8456 used. 3259320 avail Mem
__ d. List the HMC server processes: _____________________________________

© Copyright IBM Corp. 2009, 2020 2-21


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
» The command and example output are shown below:
USER@hmc> monhmc -s hmcsvr
Every 4.0s: MONHmc hmcsvr Fri Feb 14 22:33:12 2020

Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie


%Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 20.0 us, 0.0 sy, 0.0 ni, 80.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8174592 total, 340076 free, 4444920 used, 3389596 buff/cache
KiB Swap: 2096124 total, 2087668 free, 8456 used. 3258868 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


9662 root 20 0 380276 7200 4632 S 0.0 0.1 9:35.48 /opt/hsc/h+
__ 41. Go back to your HMC web interface for the next part of this exercise.

Part 3: Managed System view


In this part of the exercise, you use the HMC GUI interface to get a view of the managed system.
__ 42. In the toolbar, select Resources > All Systems. Select your assigned managed system
and view the actions menu as shown in the example below.

© Copyright IBM Corp. 2009, 2020 2-22


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 43. Still in the actions menu for your managed system, go to View all Actions > Launch
Advanced System Management (ASM) to start the Advanced System Management
interface. Log in to the ASM using the admin user (ask your instructor for the password)
and expand all menus. In this class, the password for admin is usually set to abc123.

__ a. What is the logical memory block (LMB) size for this server? ________________
» In the Performance Setup section, look at the size of the LMB that is configured on your
system.

__ 44. View the various screens and other tasks that are available in the ASM interface. All these
tasks are related to the base system configuration and changing some specific values
requires a power off and a power on of the entire managed system. 
Do not change any configuration parameters.

© Copyright IBM Corp. 2009, 2020 2-23


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 45. Select Log out and close the ASM window. Return to the HMC GUI.
__ 46. In the All Systems view, select the managed system and run Actions > View System
Properties. Then select the Processor, Memory, I/O option from the menu pod. Review
the managed system properties.
__ a. How many processors are installed in the system? (Processors section)
_______________
__ b. What is the available processors value?______________________________________
__ c. How much memory is installed on the system? (Memory section)
_____________________
__ 47. Click the Licensed Capabilities option in the menu pod. It can be found under the Capacity
on Demand section.
__ a. Is the system capable of Live Partition Mobility? ______________________
__ b. Is the system capable of Active Memory Expansion? _______________________
In this part of the exercise, you saw some HMC configuration options, managed system properties,
and some of the tasks that you can perform on the managed system. In the next part, you work with
an LPAR, its properties, and its associated profile.

Part 4: Partition view


In this part of the exercise, you use the HMC graphical interface to get a view of the partition.
__ 48. In the toolbar, select the Resources icon and select All Systems. Click the name of your
assigned server. The system's partitions should be displayed. Adjust the display so that all
the partitions are displayed.
__ 49. Note the different ways to get to the tasks that can be performed on an LPAR object.
__ a. Select your assigned LPAR by clicking the checkbox contained within the LPAR tile and
then click Actions.
__ b. Right-click the tile for the partition. This automatically enables the checkbox and
displays the actions menu.

© Copyright IBM Corp. 2009, 2020 2-24


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ c. Perform the View Partition Properties action for your assigned partition.

__ d. There are four options in the menu pod under the Properties category: General
Properties, Processor, Memory and Physical I/O Adapters. Select each one and
note the information available.
__ e. Select Virtual Networks and Virtual Storage options in the menu pod under the Virtual
I/O category.
__ f. Return to the partitions view by selecting the Partitions link in the breadcrumb trail at
the top of the page as shown below.

© Copyright IBM Corp. 2009, 2020 2-25


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ 50. Explore your LPAR’s profile. The existing profile was created to start the course. For now,
do not make any changes, just look at the information available.
__ a. Select your LPAR.
__ b. In the actions menu for your LPAR, select Profiles > Manage Profiles.

__ c. Your partition should have only one profile, usually named normal. Select the Select
box next to the profile, then select Actions > Edit. This will open the profile for editing.
(Alternatively, you can click the name of the profile.)

__ d. One by one, select the Processor, Memory, and I/O tabs. Compare the values
displayed on each tab to the values displayed in the Properties task you ran earlier. Do
not spend a lot of time in this step and do not make any changes.
__ e. Select Cancel to close the Logical Partition Profile Properties window. 
Select Close to close the Managed Profiles window.
__ 51. In the HMC GUI, create and manage a custom group by following the steps below.
__ a. On the toolbar, select the Resources icon then All Groups.
__ b. Click Create a Group.
__ c. Assign a group name (use studentXgrp where X is your student number), select your
partition, and click OK. The group should now be visible from the Resources icon.

© Copyright IBM Corp. 2009, 2020 2-26


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 2. HMC operations

EXempty
__ d. Select the newly created group after clicking the Resources icon. Verify that you can
see all the member LPARs (just your LPAR at this point).
» Example is shown below:

Feel free to spend the rest of the lab time exploring additional features of the HMC.
__ 52. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 2-27


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty

Exercise 3. HMC and managed system


maintenance
(with hints)

Estimated time
01:15

Overview
In this exercise you perform HMC-related administrative and maintenance tasks.

Objectives
• Schedule an operation for a partition
• Schedule an HMC data backup task
• Display HMC update information
• View managed system firmware release and service pack level

Introduction
In this exercise, you schedule a critical console data backup (HMC data backup). You determine
the current HMC code, the managed system firmware level, and how to apply a corrective service
update as well.
With the exception of the first two steps, there are no differences between the Enhanced+ style
user interface and the Classic style user interface.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
Command Line Interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system connected to an IP network that is visible or
accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 3-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: Back up HMC data (back up critical console data)

Note

The terms critical console data backup, HMC data backup, and management console data backup
can be used interchangeably. Which term you see in the HMC GUI depends on the version of the
software on the HMC.

The steps that follow walk you through the process of creating an HMC critical console data (CCD)
backup.
Creating a critical console data backup should be part of your system management backup
strategy. It should be created before and after a major change. This is because it captures global
system information that can be used to recover from a catastrophic HMC failure as well as for
cloning purposes.
In this part of the exercise you back up HMC data from your assigned HMC, and store the backup
file in the /tmp file system on your assigned AIX partition. Prior to initiating the backup, you must
ensure there is sufficient free space in the /tmp file system.
__ 1. Using PuTTY or another tool, open a session and connect to your assigned AIX partition.
Log in as the root user using the password information provided by your instructor.
__ 2. Run the following command to list the amount of free space in the /tmp file system.
df -Ig /tmp
__ 3. If there is less than 4 GB of free space in the /tmp file system, run the following command to
increase the amount of free space by 4 GB.
chfs -a size=+4G /tmp
__ 4. Open a web browser and connect to your assigned HMC. Sign in using the ID and
password provided by your instructor.
__ 5. In the toolbar, select HMC Management > Console Management, then select Backup
Management Console Data in the content area.

© Copyright IBM Corp. 2009, 2020 3-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
__ 6. Do not select the Exclude Network Configuration or Include Performance and Capacity
Monitoring Data options. Select Back up to remote site, then click Next.

__ 7. In the Back up Critical Data to Remote Site window:


__ a. Select FTP as the Transfer Protocol Type.
__ b. Enter your partition’s IP address in the Remote server field.
__ c. Enter the user ID of root and root’s password.
__ d. Specify /tmp in the Remote Directory field (otherwise it uses root’s home directory).
__ e. Click OK to start the backup.

© Copyright IBM Corp. 2009, 2020 3-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
» Example is shown below:

» Another window opens showing the backup progress. See the output example:

© Copyright IBM Corp. 2009, 2020 3-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty

Important

Creating the backup can take a considerable amount of time. In the lab environment used for
course development, creating the backup took approximately 55 minutes. Start the process, and
then proceed with Part 2, "HMC corrective service," on page 3-6. When you have completed all
remaining exercise parts, check the status of the HMC backup and when it completes continue with
Step 8.
If you run into issues moving the backup file to your AIX LPAR, verify that the root user ulimit
value is set to unlimited.
# ulimit
unlimited

__ 8. When the backup process completes, check that the backup file was created in the/tmp
directory, then delete the file.
Best practices recommend that you create a separate file system for the backup (rather
than using a system-defined file system) and that you act as a user other than root.
» The commands and example outputs are shown below:
# ls -lrt /tmp/HMCBackup*
-rw-r----- 1 root system 1046749701 Nov 19 20:32
HMCBackup_20141119.190926.tgz

# rm /tmp/HMCBackup_20141119.190926.tgz

© Copyright IBM Corp. 2009, 2020 3-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
Part 2: HMC corrective service
__ 9. Use the HMC GUI to find the current HMC code level and view the update HMC code menu. 
In the toolbar, select HMC Management > Console Management. In the content area,
select Update the Hardware Management Console and examine the first screen in the
Install HMC Corrective Service Wizard window.

__ a. Click Next to move to the Select Service Repository pane. In this pane you can choose
the location from which to obtain the update: Removable media or Remote Server.
__ b. Click Next to move to the Installation and Configuration Options pane. Depending on
your choice in the Select Service Repository pane, you see fields to specify the type of
removable media or the address, login credentials, and remote directory for the remote
server. You need the remote server information for the IBM Support FTP server if you
want the HMC to obtain these updates directly from the IBM FTP server.
__ c. Do not complete the fields in the Installation and Configuration Options pane. There is
no update available for this class. In the next pane, you could select the specific service
package that you want to install.
__ d. Since you do not perform an update in this exercise, select Cancel to exit the wizard.

© Copyright IBM Corp. 2009, 2020 3-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
__ 10. If your lab system has Internet access, use a web browser to go to the Fix Central website
at https://www.ibm.com/support/fixcentral to view the available HMC machine code levels.

Note

The instructions in the next few steps are correct at the time this course was updated. However,
IBM does update and improve the Fix Central site periodically and field names and choices might
change. Ask your instructor for help if needed. The following steps are based on available options in
March 2020.

__ 11. Click the Find product tab. Type Power Hardware Management Console in the Product
selector field, and then select Power Hardware Management Console in the results.
What product do you see?________________________________.

» The product 7063-CR1 MC825 is visible.


__ 12. Return to the Product selector box, and re-type Power Hardware Management to see
other options. You should see selections similar to the following:

© Copyright IBM Corp. 2009, 2020 3-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
__ 13. Select the Power Hardware Management Console for 7063 Machine Types option. Next,
select V9R1 in the Installed Version dropdown menu:

__ 14. Click Continue. This brings up the Select fixes window where you can select which specific
fixes you want to download.
__ 15. Scroll through the list of updates. Note: Depending on the details of the release that you
select, there might or might not be a list of patches. Select a fix to download. (You won’t
actually download it.) This example shows a patch is selected:

__ 16. Click Description. This opens a new window with the release notes or readme file for the
selected software. Close the release notes window when you are done reviewing it.
__ 17. Click Continue at the bottom of the page.
__ 18. Sign in using your IBM ID, or select Create IBM id to create a new ID.

© Copyright IBM Corp. 2009, 2020 3-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty

Note

If you do not have an IBM ID and do not want to create an IBM ID now, just read though the
remaining steps of this part of the exercise.

__ 19. Select Download using bulk FTPS/SFTP and click Continue.

__ 20. Review the terms and conditions and click I agree at the bottom.

© Copyright IBM Corp. 2009, 2020 3-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
__ 21. In the next page, you will see the location of the FTP website where you can download the
fix package. Do not download any HMC update. When you are finished looking at this
page, exit Fix Central.

Part 3: Managed System Licensed Internal Code updates


__ 22. Use the HMC GUI to find the active system firmware release and service pack level on your
managed system.
__ a. In the toolbar, select Resources > All Systems. Next, select your managed system,
and then select Actions > Updates >View System Information. Select None -
Display current values when prompted for the location of a repository, then click OK.
__ b. In the following example, notice that the machine type and model is 8284-22A and the
current activated level (loaded into memory) Licensed Internal Code (LIC) is FW860.80
(212).
If you want more information about the meaning of the other fields, select the Help
button in the lower right of this window.

Record the machine type and model (MTM) for your system: _________________

© Copyright IBM Corp. 2009, 2020 3-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
Record the firmware release and service pack level (Activated Level): _________________
__ c. Click Close to close the window.
__ 23. You can also determine the machine type and model from your AIX LPAR, by using either of
these AIX commands:
lscfg -vp -l sysplanar0 | more
lsconf | more
» Example output for these commands is shown below.
# lscfg -vp -l sysplanar0
sysplanar0 System Planar

PLATFORM SPECIFIC

Name: IBM,8284-22A
Model: IBM,8284-22A
Node: /
Device Type: chrp

System VPD:
Record Name.................VSYS
Flag Field..................XXSV
Brand.......................S0
Hardware Location Code......U8284.22A.216BE2V
Machine/Cabinet Serial No...216BE2V
Machine Type and Model......8284-22A
System Unique ID (SUID).....0004AC1AB5D5
World Wide Port Name........C0507607EF96
Product Specific.(FV).......SV810_061
Version.....................ipzSeries
Physical Location: U8284.22A.216BE2V

[ . . . ]

# lsconf | more
System Model: IBM,8284-22A
Machine Serial Number: 216BE2V
Processor Type: PowerPC_POWER8
Processor Implementation Mode: POWER 8
Processor Version: PV_8_Compat
Number Of Processors: 1
Processor Clock Speed: 3425 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 61 sys8802_lpar1
Memory Size: 2048 MB
Good Memory Size: 2048 MB
Platform Firmware level: SV860_212
Firmware Version: IBM,FW860.80 (SV860_212)
Console Login: enable
Auto Restart: true
Full Core: false
[ . . . ]

© Copyright IBM Corp. 2009, 2020 3-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 3. HMC and managed system maintenance

EXempty
__ 24. You can check the system firmware level from your LPAR by using any of these AIX
commands:
lscfg -vp -l sysplanar0 | grep Microcode
lsconf | grep Firmware
lsmcode -c
» Example output for these commands is shown below.
# lscfg -vp -l sysplanar0 | grep Microcode
Microcode Image.............SV860_212 SV860_103 SV860_212
Microcode Level.............FW860.80 FW860.30 FW860.80
Microcode Build Date........20190801 20170628 20190801

# lsconf | grep Firmware


Platform Firmware level: SV860_212
Firmware Version: IBM,FW860.80 (SV860_212)

# lsmcode -c
The current permanent system firmware image is FW860.30 (SV860_103)
The current temporary system firmware image is FW860.80 (SV860_212)
The system is currently booted from the temporary firmware image.
__ 25. If required, return to Step 8 on page 3-5 to check on the status of the HMC backup.
__ 26. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 3-12


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty

Exercise 4. Basic LPAR operations


(with hints)

Estimated time
01:00

Overview
This exercise covers the configuration of partitions, partition profiles, and the activation of partitions.

Objectives
• Perform basic LPAR operations
▪ Activate and shutdown partitions
▪ Schedule partition operation
▪ Modify, copy, and delete partition definitions
▪ Open and close terminal windows
▪ Back up and restore partition configuration data

Introduction
In this lab exercise, you use the HMC applications and menus to create, configure, and delete a
logical partition.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
Command Line Interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system connected to an IP network that is visible or
accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 4-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: Identify LPAR resources


__ 1. Log in to the HMC GUI using the ID and password information provided by your instructor.
__ 2. In the toolbar, select Resources > All Systems, then select your assigned system.
__ 3. From the Partition view, look at the contents of the Menu Pod. Next, select your assigned
LPAR. How does the Menu Pod change?
» Depending on the type of object that is selected, the menu pod will change. The following
examples show these side by side:

© Copyright IBM Corp. 2009, 2020 4-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
__ 4. How do you limit the view of LPARs to only those that have a name including the word
“student” on your managed system?
» From the top of the Partitions view, select the “+” sign, type in the word student in the box, and
click Apply:

__ 5. View the General Properties for your LPAR. Which attribute values can be changed?
______________________________________
______________________________________
______________________________________
» The Partition Name, Key Lock Position, and Description attributes can be changed on the
General Properties page. In addition, two Virtualization capabilities (Suspend/Resume, and
Simplified Remote Restart) can be enabled or disabled. Additional advanced settings can be
changed if the Advanced button is clicked.

© Copyright IBM Corp. 2009, 2020 4-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» The General settings for your LPAR will look similar to the following example:

__ 6. Navigate through the remaining Properties options to see your current configuration. Do
NOT make any changes at this time.

Part 2: Create LPAR


__ 7. Display current memory resources assigned on your managed system.
» In the breadcrumb trail, first select your managed system. Next, from the menu pod, select
Processor, Memory, I/O to view this information. Make a note of the available and assigned
processor and memory resources.

© Copyright IBM Corp. 2009, 2020 4-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty

Note

Since other students are also performing these lab steps at the same time, you may not see the
same change illustrated in the following exercise examples.

__ 8. From the Partitions view, click Create Partition.


» The Create Partition button is located at the top of the window.

__ 9. Create a new partition, with the name student_X (replacing the X with your student
number) Use the auto-assign setting for LPAR ID. Click OK to create the new partition with
default memory and CPU settings. Click Close when the creation process completes.

© Copyright IBM Corp. 2009, 2020 4-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» The Create Partition dialog panel should look similar to the example below.

__ 10. The Partitions content area should now show your new LPAR. Remember, you are sharing
the HMC and managed system, so there will be other student LPARs on the same page.

__ 11. Return to view the processor and memory usage values of the managed system. Has
anything changed?

© Copyright IBM Corp. 2009, 2020 4-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» As mentioned before, since other students are performing these steps on the same HMC and
managed system, the change in values you observe might be different. However. there should
be a change to the values in either case.

__ 12. Activate your newly created LPAR using the current configuration. What happens?
» Since no devices have been configured, you cannot boot the LPAR at this point, but you can
activate into open firmware mode.

__ 13. Shutdown the LPAR you just started.


» From the Actions button, select Shutdown, and then from the pop-up menu, select Immediate
from the options provided, and click OK. Then click Yes to continue with the immediate

© Copyright IBM Corp. 2009, 2020 4-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
shutdown operation. Since there is no operating system installed in the partition, it is safe to use
the Immediate shutdown method.

Part 3: Working with partition profiles


__ 14. In the toolbar, select Resources > All Systems. Select your managed system name in the
content area.
__ 15. Select your newly created LPAR and copy the existing partition profile that was created
along with the partition. Name the copy alternate.

© Copyright IBM Corp. 2009, 2020 4-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» To copy a profile, select the check box next to the partition name, select Actions > Profiles >
Manage Profiles. In the window, select the profile name, and choose Copy in the Actions
menu. In the window that opens, type alternate for the new profile name, then click OK.

__ 16. Modify this new profile by changing the memory settings so that the desired memory is 
1.25 GB (1 GB 256 MB). (This change should be a 256 MB increase from the existing profile
desired memory value.) This new profile value does not take effect until you activate the
partition later in this exercise.
» To alter a profile, select the profile, select the Actions menu, and choose Edit.

© Copyright IBM Corp. 2009, 2020 4-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» To alter the memory configuration, select the Memory tab. Change the desired setting to 1.25
GB and select OK to validate and accept the new settings.

__ 17. Determine the current active default profile for your LPAR.
» In the Managed Profiles window, the Status column indicates the last activated profile and the
default profile. The default partition profile is the profile that is created at initialization.
__ 18. Close the Managed Profiles window.
__ 19. Change the LPAR default profile to the newly created alternate profile.
Finally, open the Managed Profiles window again and verify that your new profile is now
the default. Close the Managed Profiles window.
» Select the partition, and choose the Profiles > Change Default Profile task in the Actions
menu. In the window that opens, use the menu to change the default profile to the alternate
profile and select OK.
» Choose the Profiles > Manage Profiles item in the Actions menu. In the Managed Profiles
window, view the Status column. The profile named default_profile has a status of Last
Activated and the profile named alternate has a status of Default Profile.
» Close the Managed Profiles window.
__ 20. Examine the memory properties for your managed system. 
Do not forget that you can use the Help button to get more information.
How much memory is configurable? ________________________________
How much memory is available for partition usage? ____________________
How much memory is allocated to the system firmware (FW), page table entries (PTE), and
translation control entries (TCE)? ________________________
» In the toolbar, select the Resources icon then All Systems. Select your managed system by
selecting the check box next to the managed system icon, then run Actions > View System
Properties. In the menu pod, select Processor, Memory, I/O. Expand the memory section if
necessary to answer the questions.

© Copyright IBM Corp. 2009, 2020 4-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
Part 4: Activating and deactivating partitions
__ 21. Use the HMC GUI to check the state of your student_X partition. How can you tell if it is
running?
» Navigate to the all systems view. Select the name of your managed system in the content area
to see the partitions.
» Look at your partition icon and note the state it is in. The state of your partition should be Not
activated.
__ 22. Connect to the HMC by using SSH and log in using the user ID and password provided by
the instructor.
__ 23. Check the state of your partition by using the HMC CLI.
» There are several ways that you can check the state:
▪ Run lssyscfg -r lpar -m managedsystemname -F name,state.
▪ Run vtmenu, select your managed system (if your HMC supports multiple systems), and
view the state of your LPAR on the right column. Then, exit vtmenu.
__ 24. Before activating your student_X partition, change the profile name to reflect the change in
status. Using the HMC GUI, rename the profile named default_profile to be
old_default.
» Select your LPAR on the HMC GUI and select Actions > Profiles > Manage Profiles. In the
menu, select the default_profile profile. Choose Edit from the Action menu. Change the
profile name to old_default, select OK, and close the window.
__ 25. Using the HMC, activate your partition with the profile named alternate. Watch the
partition state and when it is back to Open firmware, move on to the next step.
» Select the partition name, and select Actions > Activate from the menu. Choose the profile
that is named alternate and click Finish. When the partition has been activated, click Close
to close the Activate panel.
__ 26. Check the memory that is now allocated to your partition. Is this amount of memory what
you expected?
» The partition should now have 1.25 GB memory. To check, select Resources > All Partitions
in the toolbar. Your partition icon will show the allocated memory. Also check and note the
managed system available memory. To do so, select Resources > All Systems in the toolbar.
The managed system icon will show you both the allocated and available memory.
__ 27. Your partition should be active with the alternate profile. Shut down the partition using
the Immediate shutdown option.
» From the Actions button, select Shutdown, and then from the pop-up menu, select Immediate
from the options provided, and click OK. Then click Yes to continue with the immediate
shutdown operation. Since there is no operating system installed in the partition, it is safe to use
the immediate shutdown method
__ 28. When the partition state is shown as Not activated, activate the partition using the profile
you renamed to old_default in a previous step.

© Copyright IBM Corp. 2009, 2020 4-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» Select the partition name, and select Actions > Activate from the menu. Choose the profile
that is named old_default and click Finish. When the partition has been activated, click
Close to close the Activate panel.
__ 29. Check the available memory on the managed system. Is this amount of memory what you
expected?
» To check, select Resources > All Systems in the toolbar. Then, find your managed system
icon in the content area and note the available memory. You should see that the available
memory is increased by 0.25 GB for each student who has performed this step of the exercise.
__ 30. Shut down your student_X partition using the Immediate shutdown option.
__ 31. Schedule your student_X partition to activate tomorrow, at 10:00 AM. After you successfully
schedule this activation, delete the scheduled operation.
__ a. To schedule an operation, on the HMC, go to Resources > All Partitions. From there,
select your LPAR by selecting the check box next to the partition name.
__ b. Choose Actions > Schedule Operations.
__ c. In the Add a Scheduled Operation window, select Options > New.
__ d. Choose the Activate on an LPAR option in the table, then click OK.
__ e. Choose tomorrow’s date and 10:00:00 AM in the Date & Time tab.
__ f. Navigate to the Repeat tab. Make sure that single operation is selected.
__ g. Select the Options tab. Notice that you can choose the profile name. Use the
alternate profile name. Click Save to create the scheduled operation, then click OK
on the confirmation window.
__ h. To delete the schedule operation, select it in the table in the Customize Scheduled
Operations window and then select Options > Delete. Click OK in the confirmation
window. You can now close the Customized Scheduled Operations window.

Part 5: Using HMC CLI commands for partition operations


__ 32. From an SSH session, use the HMC command line to activate your partition with the profile
that is named old_default.
What is the command that you used? _________________________________
» Example command:
USER@hmc> chsysstate -r lpar -o on -m sys899 -n student_X -f old_default
__ 33. Use the lssyscfg and lshwres HMC commands to gather the requested information in
the following substeps. Use the --help option for each command to view the syntax
information. Write down the command that you use.
__ a. List the names of all the partitions on your managed system and their current profile.

© Copyright IBM Corp. 2009, 2020 4-12


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
» Example command and outputs: (There might be several ways to get this information.)
USER@hmc> lssyscfg -r lpar -m sys899 -F name curr_profile
sys8991_lpar1 normal
sys8991_lpar8 normal
sys8991_lpar7 normal
sys8991_lpar6 normal
sys8991_lpar5 normal
sys8991_lpar4 normal
sys8991_lpar3 normal
sys8991_lpar2 normal
sys8991_vios normal
student_1 old_default
student_2 old_default
student_3 old_default
student_4 old_default
student_5 old_default
student_6 old_default
student_7 old_default
student_8 old_default
» If you want to simplify repetitive CLI operations on the HMC, it is recommended that you create
scripts on your workstation that use SSH to run your commands on the HMC. Or, you can
enable command-line editing. For example, to use vi commands, use the set -o vi
command.
__ b. What HMC command would you use to determine the state of your partition?
» Example command and outputs: (There might be several ways to get this information.)
USER@hmc> lssyscfg -r lpar -m sys899 -F name,state --filter "lpar_names=student_1"
student_1,Open firmware
__ c. List the names of all of the profiles for a particular partition by using a filter.
» Example command and output which shows the command searching for an LPAR with a
specified name: (There might be several ways to get this information.)
USER@hmc> lssyscfg -r prof -m sys899 --filter "lpar_names=student_1" -F
name,lpar_name --header
name,lpar_name
old_default,student_1
alternate,student_1

© Copyright IBM Corp. 2009, 2020 4-13


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
__ d. View the memory resources currently in use by the partitions.
» Example command and output: (There might be several ways to get this information.)
USER@hmc> lshwres -m sys899 -r mem --level lpar -F lpar_name,run_mem --header
lpar_name,run_mem
sys8991_lpar1,2048
sys8991_lpar8,2048
sys8991_lpar7,2048
sys8991_lpar6,2048
sys8991_lpar5,2048
sys8991_lpar4,2048
sys8991_lpar3,2048
sys8991_lpar2,2048
sys8991_vios,2048
student_1,1024
student_2,1024
student_3,1024
student_4,1024
student_5,1024
student_6,1024
student_7,1024
student_8,1024
__ e. View the processor resources currently in use by the partitions.
» Example command and outputs: (There might be several ways to get this information.)
USER@hmc> lshwres -m sys899 -r proc --level lpar -F lpar_name,run_procs --header
lpar_name,run_procs
sys8991_lpar1,1
sys8991_lpar8,1
sys8991_lpar7,1
sys8991_lpar6,1
sys8991_lpar5,1
sys8991_lpar4,1
sys8991_lpar3,1
sys8991_lpar2,1
sys8991_vios,2
student_1,1
student_2,1
student_3,1
student_4,1
student_5,1
student_6,1
student_7,1
student_8,1
__ f. Shutdown your student_X partition using the immediate option.
» Example command:
USER@hmc> chsysstate -m sys899 -r lpar -o shutdown -n student_X --immed

© Copyright IBM Corp. 2009, 2020 4-14


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 4. Basic LPAR operations

EXempty
__ g. Display the state of the managed system.
» Example command and outputs: (There might be several ways to get this information.)
USER@hmc> lssyscfg -r sys -m sys899 -F state --header
state
Operating
__ h. List the names of all of the managed systems managed by this HMC, along with their
associated FSP IP addresses.
» Example command and outputs: (There might be several ways to get this information.)
USER@hmc> lssyscfg -r sys -F name,ipaddr --header
name,ipaddr
sys899,192.168.255.100

Part 6: Delete partition


__ 34. The final part of this exercise is to remove the student_X LPAR you created previously.
Verify the LPAR is in the Not activated state. Then, select the LPAR and choose Actions >
Delete Partition. Do not select any of the options, just click OK to continue the delete
operation.

__ 35. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 4-15


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty

Exercise 5. Processor and memory


management
(with hints)

Estimated time
01:00

Overview
This exercise covers configuring shared processor partitions and the advanced processor options.
Students use the lparstat command to see configuration information and statistics specific to
micro-partitions.

Objectives
• Configure a micro-partition with shared processor options
• Configure virtual processors
• Enable and disable SMT on AIX
• Configure capped and uncapped partitions
• View processor-related configuration and statistics with the lparstat command

Introduction
In this exercise, you will configure the advanced processor options for AIX partitions and use tools
to view processor-related configuration and performance information.

Requirements
• This workbook.
• A student workstation equipped with a web browser and a utility for running SSH.
• Access to a POWER8 processor-based managed system and a Hardware Management
Console running HMC V8 configured for this course.

© Copyright IBM Corp. 2009, 2020 5-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.
• The hints in this exercise reflect results obtained on a Power System Model 822 with twenty 
3.4 GHz processors and a partition running AIX V7.2 Technology Level 4 SP 1. Your system's
specific results might differ, but the overall conclusions should be true for your system.

Part 1: View system configuration and configure processor options


__ 1. Using your web browser, connect to your assigned HMC. Sign in using the HMC user ID
information provided by your instructor.
__ 2. From the taskbar, select Resources > All Partitions.
__ 3. Select your assigned AIX partition, and perform the Shutdown operation. Select the
Operating System Immediate shutdown option.
__ 4. In this step, you will alter the normal partition profile for your partition.
__ a. Edit the normal profile for your partition.
» Select your assigned AIX partition, and run the Profiles > Manage Profiles task from the
Actions menu. In the pop-up window, select the profile name (normal), and choose Edit from
the Actions menu.
__ b. Configure the processing units to be 0.1 minimum, 0.6 desired, and 1.0 maximum.
Leave the properties window open for a few more steps until you have finished
configuring the profile.
» Click the Processors tab in the Logical Partition Profile Properties window.
» In the Processing units area, enter 0.1 for the minimum, 0.6 for the desired, and 1.0 for the
maximum parameters.
» Do not click the OK button yet.
__ c. Change both the virtual processor minimum setting and the virtual processor desired
setting to 1. (One or both of these values may already be set to 1.) Set the virtual
processor maximum setting to the maximum allowed for the maximum number of
processing units configured in your partition. Do not click the OK button yet.
» On the same Processors tab you used in the previous step, enter 1 in the Minimum virtual
processors field, enter 1 in the Desired virtual processors field, and enter 20 in the
Maximum virtual processors field.
» On POWER8 hardware, the maximum number of virtual processors allowed is up to 20 times
the value entered for maximum processing units.

© Copyright IBM Corp. 2009, 2020 5-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
__ d. Set the sharing mode to uncapped by selecting the Uncapped check box, and set the
weight to 100.
» On the same Processors tab you used in the last step, select the Uncapped check box and
enter a value of 100 in the Weight box.
» The Processors tab should now look like the example below.

__ e. Click the OK button to confirm the changes to the profile. If prompted, click Yes to
update the profile and set sync suspended until next activation. Then click the Close
button to close the Managed Profiles window.
__ 5. Activate your partition with the newly modified normal profile.
» Your logical partition might still be selected from the last operation. If it is not, click the check
box in the Select column to select it.
» To activate the partition, use the Actions > Activate task.
» On the window that pops up, select Activate (Normal) as the operation type, and select
normal from the Partition Configuration menu.

© Copyright IBM Corp. 2009, 2020 5-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
__ 6. When your partition has finished booting, use PuTTY or another tool to connect using SSH.
Log in to the partition as root.
__ 7. Use the lparstat command to check the partition configuration.
» Log in to your partition and run the lparstat command. The output should reflect the changes
you made in the partition profile.
» Here is an example lparstat command and its output that shows the new settings.
# lparstat

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy vcsw phint %nsp
----- ----- ------ ------ ----- ----- ------ ----- ----- -----
0.0 0.0 0.3 99.7 0.00 0.0 0.7 242218 0 81
__ 8. Use PuTTY or another tool to log in to the HMC command line using SSH. Use your
assigned HMC user ID and password.
__ 9. On the HMC CLI, use the lshwres command to view the processor settings for your
partition.
» The command syntax follows. Replace MSname with the actual managed system name and
lparname with the actual LPAR name.
lshwres -r proc -m MSname --level lpar --filter "lpar_names=lparname"
» Here is an example command and its output for the managed system named sys869 and a
partition named sys8692_partition1:
stud5009_1@pokhmc62:~> lshwres -r proc -m sys869 --level lpar --filter \
"lpar_names=sys8692_partition1"
lpar_name=sys8692_partition1,lpar_id=1,curr_shared_proc_pool_id=0,curr_shared_p
roc_pool_name=DefaultPool,curr_proc_mode=shared,curr_min_proc_units=0.1,curr_pr
oc_units=0.6,curr_max_proc_units=1.0,curr_min_procs=1,curr_procs=1,curr_max_pro
cs=20,curr_sharing_mode=uncap,curr_uncap_weight=100,pend_shared_proc_pool_id=0,
pend_shared_proc_pool_name=DefaultPool,pend_proc_mode=shared,pend_min_proc_unit
s=0.1,pend_proc_units=0.6,pend_max_proc_units=1.0,pend_min_procs=1,pend_procs=1
,pend_max_procs=20,pend_sharing_mode=uncap,pend_uncap_weight=100,run_proc_units
=0.6,run_procs=1,run_uncap_weight=100
__ 10. In the SSH session to your AIX partition, use the lparstat command with the -i option
and view the information that is displayed. Use the man page for lparstat if you have
questions about the output of this command.
» The output of the AIX lparstat -i command shows the processor and memory resources
settings for your partition.

© Copyright IBM Corp. 2009, 2020 5-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» Example lparstat -i output:
# lparstat -i
Node Name : sys8802_lpar1
Partition Name : sys8802_lpar1
Partition Number : 61
Type : Shared-SMT-4
Mode : Uncapped
Entitled Capacity : 0.60
Partition Group-ID : 32829
Shared Pool ID : 0
Online Virtual CPUs : 1
Maximum Virtual CPUs : 20
Minimum Virtual CPUs : 1
Online Memory : 2048 MB
Maximum Memory : 4096 MB
Minimum Memory : 2048 MB
Variable Capacity Weight : 100
Minimum Capacity : 0.10
Maximum Capacity : 1.00
Capacity Increment : 0.01
Maximum Physical CPUs in system : 20
Active Physical CPUs in system : 20
Active CPUs in Pool : 20
Shared Physical CPUs in system : 20
Maximum Capacity of Pool : 2000
Entitled Capacity of Pool : 220
Unallocated Capacity : 0.00
Physical CPU Percentage : 60.00%
Unallocated Weight : 0
Memory Mode : Dedicated
Total I/O Memory Entitlement : -
Variable Memory Capacity Weight : -
Memory Pool ID : -
Physical Memory in the Pool : -
Hypervisor Page Size : -
Unallocated Variable Memory Capacity Weight: -
Unallocated I/O Memory entitlement : -
Memory Group ID of LPAR : -
Desired Virtual CPUs : 1
Desired Memory : 2048 MB
Desired Variable Capacity Weight : 100
Desired Capacity : 0.60
Target Memory Expansion Factor : -
Target Memory Expansion Size : -
Power Saving Mode : Static Power Savings
Sub Processor Mode : -

© Copyright IBM Corp. 2009, 2020 5-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
__ 11. Run the lparstat command with an interval of 1 and count of 4. Notice the fields that are
displayed. Without the interval and count arguments, the statistics shown are since the last
boot.
» Example lparstat output:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy vcsw phint %nsp
----- ----- ------ ------ ----- ----- ------ ----- ----- -----
0.1 0.4 0.0 99.5 0.01 2.0 0.0 271 0 60
0.1 0.3 0.0 99.5 0.01 1.7 0.0 253 0 60
0.0 0.2 0.0 99.8 0.01 1.0 0.0 181 0 60
0.0 0.2 0.0 99.7 0.01 1.1 0.0 185 0 60
__ 12. What is the available shared processing pool statistic that may or may not be displayed in
the lparstat output? If it does not display in the lparstat output on your system, configure
your partition it so that it does. How do you do this?
Once you reconfigure the partition, run lparstat again to make sure the statistic displays in
the output.
» The statistic is app. It is not visible in the lparstat output shown in the hints for the previous
step.
» To configure the partition to show the app statistic in the output of lparstat, click your assigned
partition name in the All Partitions view in the HMC GUI. In the General view, click the
Advanced button then select the Enable Performance Information Collection check box, as
shown in this example:

» Click Save to apply the partition configuration changes.


» Run lparstat again in your partition. You should see a new app field, which is the amount of
available (that is, free) shared processing units in the shared processor pool. If the app statistic
does not appear in the lparstat output, make sure you enabled it correctly. If you confirm that
you enabled it correctly and it still does not appear, shut down your partition and reactivate it.

© Copyright IBM Corp. 2009, 2020 5-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» Here is an example lparstat output with this app field:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp
----- ----- ------ ------ ----- ----- ------ --- ----- ----- -----
0.2 0.3 0.0 99.5 0.01 1.5 0.0 19.94 182 0 60
0.0 0.2 0.0 99.8 0.01 1.0 0.0 19.93 180 0 60
0.0 0.3 0.0 99.7 0.01 1.1 0.0 19.93 190 0 60
0.1 0.5 0.0 99.3 0.01 1.8 0.0 19.93 182 0 60
__ 13. Disable simultaneous multi-threading (SMT); then run the lsdev -c processor command
to list the virtual processors. You should see the output like this:
# lsdev -c processor
proc0 Available 00-00 Processor
The output shown above lists one available processor called proc0. Your LPAR has 0.60
processing units. Can you explain what this output of the lsdev command means?
» To disable simultaneous multi-threading, use the smtctl -m off command.
» The lsdev command lists the processors that the operating system sees. When a partition is
using dedicated processors, lsdev shows physical processors. When a partition is using
shared processors, lsdev shows virtual processors (that is, the number of physical processors
the partition thinks it has). Since your partition is now running with shared processors and has
only one virtual processor, the lsdev -c processor command will report one available
processor.
» Also, observe the logical processors (lcpu) using the lparstat command. There should be
only 1 lcpu per virtual processor when SMT is disabled:
# lparstat

System configuration: type=Shared mode=Uncapped smt=Off lcpu=1 mem=2048MB


psize=20 ent=0.60
__ 14. Enable 2-way simultaneous multi-threading, and run the lsdev -c processor command
again. Is the output different? Why or why not?
» POWER8 supports 2-way, 4-way, and 8-way SMT. To enable 2-way SMT, use the smtctl -t 2
command.
» The lsdev -c processor command output is the same as in the previous step because this is
a shared processor partition and the command lists virtual processors (not logical processors).
Enabling or disabling SMT changes the number of logical processors, but not the number of
virtual processors.
__ 15. Run the lparstat command to list the logical processors. Observe the 2-way simultaneous
multi-threading (SMT) supported by POWER8.

© Copyright IBM Corp. 2009, 2020 5-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» POWER8 supports 2-way, 4-way, and 8-way SMT. To enable 2-way SMT, use the smtctl -t 2
command. Observe the logical processor (lpcu) count using the lparstat command:
# lparstat

System configuration: type=Shared mode=Uncapped smt=On lcpu=2 mem=2048MB


psize=20 ent=0.60
__ 16. Enable 4-way simultaneous multi-threading, then run the lparstat command to list the
logical processors.
» To enable 4-way SMT, use either the smtctl -m on command or the smtctl -t 4 command.
Again, observe the lparstat output:
# lparstat

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB


psize=20 ent=0.60
__ 17. Enable 8-way simultaneous multi-threading, then run the lparstat command to list the
logical processors.
» To enable 8-way SMT, use the smtctl -t 8 command. Again, observe the lparstat output:
# lparstat

System configuration: type=Shared mode=Uncapped smt=8 lcpu=8 mem=2048MB


psize=20 ent=0.60
__ 18. Dynamically add two most virtual processors to your partition, then run the lsdev -c
processor command again. What does the output show now?
» To dynamically add two more virtual processors, select your partition in the HMC interface All
Partitions table view, and start the Actions > View Partition Properties task.
» In the page that opens, click Processors in the menu pod area. Enter 3 as the Allocated value
for Virtual Processors and click Save.
» In your partition's terminal window, run lsdev -c processor again. The output should look
similar to this:
# lsdev -c processor
proc0 Available 00-00 Processor
proc8 Available 00-08 Processor
proc16 Available 00-16 Processor
» Now AIX sees three processors. These are the virtual processors.
__ 19. Run the lparstat command again with no options. How many logical processors are in the
partition?
» The lparstat command will show twenty four logical processors (lcpu=24) because there are
three virtual processors configured in the partition and simultaneous multi-threading 8 is
enabled. There are eight logical processors for each virtual processor. We know that

© Copyright IBM Corp. 2009, 2020 5-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
simultaneous multi-threading is enabled because the lparstat command shows smt=8 in the
configuration line at the top.
# lparstat

System configuration: type=Shared mode=Uncapped smt=8 lcpu=24 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp
----- ----- ------ ------ ----- ----- ------ --- ----- ----- -----
0.0 0.0 0.1 99.8 0.00 0.0 0.8 19.89 517896 0 75

Part 2: Viewing shared processor utilization


__ 20. In the SSH session to your AIX partition, run the following command to generate a
processing load in the partition:
yes | sum &
Leave this command running for the rest of the exercise. The & symbol starts the command
in the background, so the shell can still be used interactively.
__ 21. Run the following AIX command:
lparstat 1 4
Look at the %entc and physc values. What do you notice?
» Example command and output:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=8 lcpu=24 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
47.6 2.7 0.0 49.7 1.59 264.4 9.3 18.31 12800 0 101 0.00
47.6 2.9 0.0 49.6 1.60 267.1 4.7 18.23 12800 0 101 0.00
47.6 2.7 0.0 49.7 1.60 266.1 8.7 18.28 12961 0 101 0.00
47.7 2.7 0.0 49.6 1.59 264.4 8.8 18.31 12752 0 101 0.00
» Some things to notice include:
▪ This is an uncapped partition because the total %entc exceeds 100%. The %entc value is
about 266% of the LPAR capacity entitlement of 0.6.
▪ The physc value is approximately 1.60 and corresponds to the physical CPU capacity
consumed by your LPAR. When you are using 1.60 physc with a configured entitled
capacity of 0.6, it is correct to see the %entc at approximately 266%.
__ 22. From the output of lparstat 1 4, what is the capacity of the shared processor pool? Also,
are there any excess cycles available? How could you answer this question?

© Copyright IBM Corp. 2009, 2020 5-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» The psize value displayed in the initial configuration line of the output indicates the number of
processors in the shared pool. As an alternative, you can look at this line in the lparstat -i
output:
Active CPUs in Pool : 20
» To find out if there are available cycles in the pool, you can run lparstat 1 4 and look at the
value in the app column to see if there is any available shared processor pool capacity. Here is
an example command and its output:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=8 lcpu=24 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
47.6 2.7 0.0 49.7 1.59 264.4 9.3 18.31 12800 0 101 0.00
47.6 2.9 0.0 49.6 1.60 267.1 4.7 18.23 12800 0 101 0.00
47.6 2.7 0.0 49.7 1.60 266.1 8.7 18.28 12961 0 101 0.00
47.7 2.7 0.0 49.6 1.59 264.4 8.8 18.31 12752 0 101 0.00
» In the lparstat with an interval output, we see that app is not zero. The available (unused)
capacity in the shared processor pool depends on the consumption of all the configured LPARs
using the shared processor pool on your system. Depending on what activity is running on the
other LPARs, the app column value can be different from the example.
» In this example, the app column value shows that just over18 processor units are unused in the
shared processor pool.
__ 23. Use the HMC GUI to dynamically change the virtual processor setting for your partition back
to one.
» To dynamically remove two virtual processors, select your partition in the HMC interface All
Partitions table view, and start the Actions > View Partition Properties task.
» In the page that opens, click Processors in the Menu Pod area. Enter 1 as the Allocated value
for Virtual Processors and click Save.
__ 24. Run the lparstat 1 4 command again. What do you notice? Can you explain the physc
value?

© Copyright IBM Corp. 2009, 2020 5-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» Example command and its output:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=8 lcpu=8 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
59.0 2.6 0.0 38.4 1.00 166.2 16.6 18.96 11760 0 101 0.38
59.1 2.5 0.0 38.4 1.00 166.4 17.8 18.95 11801 0 101 0.40
59.1 2.5 0.0 38.4 1.00 166.4 17.5 18.96 11801 0 101 0.40
59.1 2.5 0.0 38.4 1.00 166.4 18.4 18.96 11699 0 101 0.29
» Some things to notice include:
▪ The values for %entc decreased and is at approximately 166%. This is consistent with a
partition configured as uncapped where it has one virtual processor and has an entitled
capacity of 0.6. It is using physc of 1.00, which is consistent with using the entire capacity
of one virtual processor for this uncapped partition. When you are using 1.0 physc but are
configured for 0.6 entitled capacity, it is correct to see the %entc value at 166%.
__ 25. Your assigned partition should still be running the "yes | sum &" command in the
background. Run the lparstat 1 4 command; then use the HMC GUI to dynamically
change your partition to be a capped mode partition. Then run the lparstat 1 4 command
again. Compare the two outputs. What do you notice?
» Example lparstat 1 4 command output when the partition is uncapped:
# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=8 lcpu=8 mem=2048MB


psize=20 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
58.9 2.6 0.0 38.5 1.00 166.1 14.5 18.96 11596 0 101 0.38
59.1 2.5 0.0 38.4 1.00 166.4 14.8 18.96 11841 0 101 0.40
59.1 2.5 0.0 38.4 1.00 166.4 15.9 18.96 11661 0 101 0.40
59.1 2.5 0.0 38.4 1.00 166.4 17.0 18.96 11811 0 101 0.40
» To change the partition from uncapped to capped, select your partition in the All Partitions table
view and start the Actions > View Partition Properties task. In the page that opens, click
Processors in the menu pod. The page contains a switch to change the partition configuration
between Capped and Uncapped. Currently the switch is in the Uncapped position. Move the
switch to the Capped position and click Save.

© Copyright IBM Corp. 2009, 2020 5-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 5. Processor and memory management

EXempty
» Example lparstat 1 4 command output when the partition is capped:
# lparstat 1 4

System configuration: type=Shared mode=Capped smt=8 lcpu=8 mem=2048MB psize=20


ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint %nsp %utcyc
----- ----- ------ ------ ----- ----- ------ --- ----- ----- ----- ------
58.7 2.7 0.0 38.5 0.60 99.7 18.5 19.36 7164 0 101 0.62
58.7 3.0 0.0 38.3 0.60 99.9 17.6 19.33 7028 0 101 0.51
58.9 2.7 0.0 38.3 0.60 99.9 17.5 19.35 7138 0 101 0.67
58.9 2.6 0.0 38.4 0.60 99.9 15.9 19.36 7152 0 101 0.67
» What you should notice about the two outputs is that the physc in the capped partition only
goes as high as the entitled capacity, which is 0.60. The %entc now does not go higher than
100%. In some cases it may be a little more than 100% due to rounding errors.
__ 26. Close the terminal session connected to your AIX partition.
__ 27. Use the HMC GUI to shutdown your assigned AIX partition. Select the Operating System
Immediate option.
__ 28. Edit the normal profile for your partition, and return the processor configuration to the initial
values as follows:
- Minimum shared processing units: 0.1
- Desired shared processing units: 0.2
- Maximum shared processing units: 0.3
- Minimum virtual processors: 1
- Desired virtual processors: 1
- Maximum virtual processors: 2
- Uncapped
- Weight: 128
__ 29. Activate your AIX partition using the newly updated normal profile.
__ 30. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 5-12


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty

Exercise 6. Configuring I/O resources


(with hints)

Estimated time
01:30

Overview
This exercise covers the configuration of physical and virtual I/O resources for client partitions.

Objectives
• Add storage
• Add access to a VLAN
• Add an SR-IOV port
• Add a physical adapter

Introduction
Students practice adding and removing virtual SCSI disks, virtual Fibre Channel ports, virtual
optical media devices, virtual networks, and SR-IOV ports to and from a partition’s configuration.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
command-line interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system that is connected to an IP network that is visible
or accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 6-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: Configuring virtual storage devices


This course focuses on using the HMC GUI to configure virtual devices in client partitions by using
the partition properties. Configuring virtual devices in this way uses the “Virtual I/O Server
simplification” features of the HMC. Client administrators do not need extensive VIOS experience to
configure devices in this way. Another way to configure virtual devices is by using the partition
profile. If the profile method is used, the configuration is manual and complicated. You need
extensive knowledge of how virtual adapters work and experience with the VIOS environment. This
manual method is beyond the scope of this course. VIOS administrators need additional knowledge
of the VIOS environment for troubleshooting and more advanced configurations.
__ 1. With a web browser, log in to your HMC GUI using your assigned user ID.
__ 2. From the toolbar, navigate to the Resources > All Partitions page.
__ 3. Select your assigned AIX partition. The partition should be running.
__ 4. With your partition selected, open the partition properties.
» Run Actions > View Partition Properties.
__ 5. Click on the Virtual Storage option in the menu pod.
__ 6. Expand the Logical Volume section of the page.

© Copyright IBM Corp. 2009, 2020 6-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
» Example showing the Add Virtual SCSI button:

__ 7. In this step, you will add an existing logical-volume backed device to your partition.
__ a. Click Add Logical Volume.
__ b. On the Add Logical Volume panel, the default setting assumes you will add a new
logical volume backing device on a non-rootvg volume group that resides on a virtual I/O
server partition on the managed system. The table on the panel describes all such
non-rootvg volume groups. The only non-rootvg volume group that is configured on the
training systems is listed in the table (datavg).

Information

The GUI will not show any VIOS rootvg as an option, as it is not recommended to place backing
storage in rootvg.

__ c. Select the Add existing logical volume option.


__ d. After selecting the Add existing logical volume option, a table is displayed that lists all
logical volumes in the volume group selected in the first table. Select the logical volume
with the name lvX, where X is replaced with your student ID.

© Copyright IBM Corp. 2009, 2020 6-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
» Example Add Logical Volume panel:

__ e. Click OK.
__ f. When the panel closes, the Virtual Storage page now shows the new device in the table
in the Logical Volumes section.

© Copyright IBM Corp. 2009, 2020 6-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
» Example Virtual Storage page:

__ 8. Click Adapter View in the upper right side of the screen. The page now shows a table with
information about the mapping of virtual SCSI adapters and devices between virtual I/O
server partitions and the client partition. You may have to use the scrollbar in the table to
view the information for the newly added device.

__ 9. Click Storage View to return to the previous format for the page.
__ 10. Now, right-click the name of your logical volume and look at the options on the popup menu.
__ 11. View the device mapping first, then remove the logical volume.
» Select the newly added logical volume and select Action > View Device Mapping. Notice the
VIOS partition that is supporting this logical volume. Close the View Device Mapping panel by
clicking Close.
» Select the newly added logical volume if it is not already selected, and select Action >
Remove. Click OK to continue with the removal of the device.

© Copyright IBM Corp. 2009, 2020 6-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
__ 12. Now select the Virtual Fibre Channel tab on the Virtual Storage page. Your partition
should not have any existing virtual FC device.
__ 13. Click Add Virtual Fibre Channel Device. If there is an NPIV-compatible FC adapter that is
configured in a virtual I/O server partition on the managed system, then you get a list of one
or more adapter ports. Select a Fibre Channel port and click OK. As with virtual SCSI, the
HMC automatically and dynamically adds all required devices to support this new NPIV
connection.
__ 14. When a virtual Fibre Channel connection is added, you see information like this example
below. Notice the WWPNs. These are the world wide port names that uniquely identify this
client port on the SAN.

__ 15. Select the newly added device mapping in the table, then run Action > Remove. Click OK
to continue the device removal.
__ 16. Next, click on the Virtual Optical Device tab. Click Add Virtual Optical Device.
__ 17. Enter a device name of the form stX_cd0 where X is your student number.
__ 18. Choose the VIOS partition in the table that appears. Click OK to dynamically add this device
to your partition. You should now see a virtual optical device.
» Example Add Virtual Optical Device screen:

© Copyright IBM Corp. 2009, 2020 6-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
__ 19. Select the virtual optical device in the table and choose Action > Load from the menu. This
option shows you the virtual optical media that is in the VIOS partition’s Media Repository and
can be used by client partitions. There should be one ISO image listed.
» Example showing the panel to select optical media:

__ 20. Load, then unload, the image in the Media Repository. When the media is loaded, notice the
name of the media in the Media File column on the Virtual Optical Device tab. Its size is also
shown.
» Right click on the row in the table with your new virtual optical media device. Choose Load on
the menu. Select the name of the media and click OK.
» To unload, right-click on the device row again; choose Unload on the menu.
__ 21. Delete the virtual optical device.
» Right-click the name of your virtual optical device and choose Remove on the menu. Click OK.

Part 2: Configuring virtual networks


In this part of the exercise, you explore the Virtual Networks panel. Your lab server is configured
with one virtual Ethernet network and this is providing network connectivity for your partition.
Network connectivity is required to dynamically configure resources for a running partition. The
VIOS has a special device configured called a Shared Ethernet adapter which bridges the network
traffic to an external switch.
__ 22. You should still be viewing your partition’s properties. Click on Virtual Networks in the menu
pod on the left.

© Copyright IBM Corp. 2009, 2020 6-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
» For example:

__ 23. This should take you to the Virtual Networks page. The table should show that one virtual
network is configured for your partition. Since the partition is already configured for this
virtual network, there is nothing for you to add. However, click the Attach Virtual Network
button. This brings up a panel where, if there were more networks on the managed system,
you could select another virtual network for this partition. Click Cancel to exit the Attach
Virtual Network panel without modifying the configuration.

Part 3: Configuring physical adapters


__ 24. You should still be in the partition properties for your originally assigned partition that is
running. Select the Physical I/O Adapters item in the menu pod as shown below:

__ 25. There should be no physical adapters listed. Click Add Adapter.


__ 26. There are likely not enough available adapters for all of the students in the class to add one
to their partition. If you want to add an adapter, add one quickly and then remove it quickly.
If you get to this Add Physical Adapters window and there are no adapters listed, it is
because there are no unassigned adapters. Wait a few minutes and try again. If this doesn’t
work, ask your instructor to make an announcement to other students to unconfigure their
physical adapters.

Part 4: (Optional) Configuring Single Root I/O Virtualization (SR-IOV)


logical ports
If you have extra time, you can perform the steps for this optional part of the exercise.
SR-IOV adapters have physical ports that can be shared among a group of partitions. Partitions
configure a logical port that is associated with one of the physical ports.

© Copyright IBM Corp. 2009, 2020 6-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
__ 27. You should still be in your originally assigned partition’s properties. Click the Hardware
Virtualized I/O option in the list of resources on the left side of the window.
» For example:

If your lab server has at least one physical SR-IOV adapter, you can proceed with the following
steps.
__ 28. You will configure a logical port that is associated with an SR-IOV adapter into your new
partition following these steps:
__ a. On the SR-IOV tab, there should be no information in the SR-IOV Logical Ports table.
Click Add Port.
__ b. The first screen has you choose an SR-IOV physical port. Click the link to select a
physical port. In a production environment, you would select a physical port that is
connected to the desired network switch and VLAN. The port is identified based on the
location code. For this exercise, select any port that has at least one available logical
port, then click OK.

© Copyright IBM Corp. 2009, 2020 6-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 6. Configuring I/O resources

EXempty
__ c. The next screen allows you to configure attributes of the logical port. Configure the
capacity to be 10 percent.

__ d. View the options in the Advanced Settings section.


__ e. Click OK to add the logical port to the partition.
__ 29. Now remove the SR-IOV logical port. Right click on the row in the table with your logical port
and choose Remove Logical Port on the menu. Click OK to confirm removal of the logical
port.
» For example:

__ 30. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 6-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty

Exercise 7. Logical partition


management
(with hints)

Estimated time
01:00

Overview
Students gather information about an assigned LPAR, then delete the LPAR. The final test of the
course is to rebuild the LPAR definition and boot the operating system.

Objectives
• Create new LPAR
• Access LPAR properties
• Dynamically change partition resources

Introduction
Students use the HMC Enhanced+ GUI and the template library to create a partition. Students also
perform DLPAR operations to change a partition’s resource allocations.

Requirements
• This workbook
• A workstation that is connected to a network with an HTTP web browser in addition to a
command-line interface (CLI) utility to support HMC and LPAR remote access
• A POWER8 processor-based managed system that is connected to an IP network that is visible
or accessible to students’ workstations for remote lab access
• A student system from which to start an SSH session to the HMC

© Copyright IBM Corp. 2009, 2020 7-1


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
Exercise instructions with hints

Preface
• All exercises depend on the availability of specific equipment in your classroom. You need a
computer system that is configured with a network connection that can access an HMC and the
corresponding system and LPARs.
• The web page URLs in this exercise were correct when this course was written. By nature, web
pages tend to change over time; so ask your instructor if you have trouble navigating the
websites.
• All hints are marked by a » sign.

Part 1: Checking the RMC function


__ 1. With a web browser, log in to your HMC GUI using your assigned user ID.
__ 2. Use the toolbar to navigate to the Resources > All Partitions view in the HMC GUI.
__ 3. Resource Monitoring and Control (RMC) daemons are needed for dynamic resource
changes and for some HMC tasks to work properly. To check that the RMC daemons are
active in your assigned partition, click the lowercase cursive i next to your partition name to
view information about the partition. Look for the status of the RMC connection. In this
example, the connection shows as Active, which is what is needed.

If the status is not active, then ask your instructor for help. If the status is active, continue to
the next step. Use the x in the upper right of the i panel to close it.

Part 2: Gather LPAR information

Important

In this exercise, you delete your LPAR and then re-create it from scratch.
In this part, you document the current configuration of your LPAR. Documenting the current
configuration is critical so that you can re-create the LPAR to use the same resources as your
original partition. In particular, details of any physical or virtual I/O adapters, and backing device
information for virtual storage (including boot disk information) are critical so that two students do

© Copyright IBM Corp. 2009, 2020 7-2


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
not try to use the same device as the boot disk for different partitions. Depending on your lab
environment, some steps may not be applicable. Record your information carefully.

__ 4. Record the current configuration information of your assigned AIX LPAR that is reflected in
the partition properties.
You could collect most of the details from the partition profile, however doing so requires
additional steps to determine details of virtual networks and virtual storage backing devices.
Examining the partition properties in the HMC GUI allows all critical data to be examined.
__ a. Go to the All Partitions view and click on the name of your assigned LPAR.
__ b. On the partition General properties page, record the available information in the table
below.
Table 1. Name, type, ID
Partition name OS Type / Environment Partition ID

__ c. Click the Advanced button to view additional information. Record the information in the
table below.
Table 2. Advanced information
Enable Connection Maximum Virtual Adapters Enable Performance
Monitoring Information Collection

__ d. Select the Processors item in the menu pod, and record the available information in the
tables below.
Table 3. Processor configuration
Processor mode 
(Shared or Dedicated) Capped or Uncapped Weight

Table 4. Processor resource information


Virtual Processors Processing units
Maximum Allocated Minimum Maximum Allocated Minimum

© Copyright IBM Corp. 2009, 2020 7-3


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
__ e. Select the Memory item in the menu pod, and record the available information in the
table below.
Table 5. Memory information

Memory Mode Memory Units Memory Allocation


(MB or GB) Maximum Allocated Minimum

__ f. Select the Physical I/O Adapters item in the menu pod, and record the available
information in the table below.
Table 6. Physical I/O adapters
Physical Location Code Description Adapter type (disk or
network)

» In the normal lab environment for this course, the AIX LPARs are not configured with any
physical I/O adapters.
__ g. Select the Virtual Networks option in the menu pod, and document the information in
the table below. Click Adapter View to switch to a format that displays the adapter ID.
Table 7. Virtual Network information
Virtual Network Name Port VLAN ID Virtual Ethernet Adapter ID

» In the normal lab environment for this course, the managed system has a single virtual network
named VLAN1-ETHERNET0, and the client virtual Ethernet adapter ID is 3.
__ h. Select the Virtual NICs option in the menu pod, and document any available information
in the table below.
Table 8. Virtual NIC information
Device Name  vNIC Auto Capacity % Backing Device Location Code
(vNIC Adapter ID) Priority Failover

» In the normal lab environment for this course, the AIX LPARs are not configured with any VNIC
devices.

© Copyright IBM Corp. 2009, 2020 7-4


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
__ i. Select the Virtual Storage option in the menu pod, and document the information in the
table below. Be sure to expand the Shared Storage Pool Volume and Logical Volume
sections. Click Adapter View to determine the client virtual adapter ID associated with
the vscsi0 device.
Table 9. Virtual storage information
Device Name Size Volume Group Virtual I/O Client Virtual
Server Adapter ID

» In the normal lab environment for this course, the AIX LPARs are configured with one logical
volume-backed virtual storage device. At this stage in the exercises, the partition should not be
configured with any virtual Fibre Channel or virtual optical devices.
» In the normal lab environment for this course, the vscsi0 device has adapter id 2.
__ j. Select the Hardware Virtualized I/O option in the menu pod, and document any
information in the table below.
Table 10. Hardware virtualized I/O
Adapter Name Physical Port ID (Device name) Location Code Capacity (%)

» In the normal lab environment for this course, the AIX LPARs are not configured with any
hardware virtualized I/O devices.

Part 3: Remove existing LPAR


__ 5. Return to the All Partitions view in the HMC GUI.
__ 6. Select your partition, and run the Actions > Shutdown operation. Select the Operating
System Immediate option to perform the task. Wait until the partition state is shown as Not
activated before proceeding to the next step.
__ 7. Select the name of your partition to view the General properties page.
__ 8. Select the Virtual Storage option in the menu pod.
__ 9. Expand the Logical Volume section, and remove the virtual storage device that is
configured for the partition.
» Select the logical volume in the table, and run Actions > Remove. Click OK to confirm the
removal of the device.
» If you are presented an error message, verify the device has been removed.
» If you do not remove the device at this point, you will not be able to use the GUI to configure the
device for the new LPAR that you will create. The device mapping will remain in the virtual I/O
server, and the only way to remove it is using the CLI.
__ 10. Select the Partitions item in the breadcrumb trail.

© Copyright IBM Corp. 2009, 2020 7-5


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
__ 11. Select your assigned partition, and run the Actions > Delete Partition task. Do not select
any additional options related to removal of virtual disks or cleanup of I/O mappings. Click
OK to proceed with removal of the partition.
» Example:

» If you select the Delete associated virtual disks option, the backing LV will be removed. In this
case, you will not be able to complete the remainder of the exercise.

Part 4: Create new LPAR


__ 12. From the GUI session, click Create Partition to begin the process.
» If you do not see this button, navigate to the Partitions menu.
__ 13. Enter the Partition name of the original partition, but add “-new” to the partition name (so the
partition list will ultimately be different from the original view). Enter the partition ID and
maximum number of virtual adapters (recorded previously).

© Copyright IBM Corp. 2009, 2020 7-6


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» Example panel. Enter the partition name and partition ID you recorded previously.

» The default Partition Type value will create an AIX/Linux LPAR. Do not change to IBM i.
__ 14. Select the Processor Configuration item on the panel, then enter the processor
configuration information recorded previously.

© Copyright IBM Corp. 2009, 2020 7-7


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» Example panel:

__ 15. Select the Memory Configuration item on the panel, (you may have to use the scroll bar
on the right side of the panel to find it) then enter the memory configuration information
recorded previously.

© Copyright IBM Corp. 2009, 2020 7-8


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» Example panel:

__ 16. Click OK to create the new partition. This action creates the partition with a profile named
default_profile configured with the specified processor and memory information. The profile
name can be changed afterwards if desired. Click Close to close the partition creation
dialog panel.
__ 17. In the partitions view, select the name of the newly created partition. In the next few steps,
you will complete the partition by recreating the virtual networks and virtual storage
configuration you recorded in the original partition.
__ 18. Select the Virtual Networks option in the menu pod. In this step, you will configure the new
partition to replicate the virtual network configuration of the original partition.
__ a. Click Attach Virtual Network.
__ b. In the dialog panel, select the Show and attach new virtual ethernet adapters option.
__ c. In the main table on the dialog panel, select the virtual network to which the partition
should be attached. Enter the desired Virtual Adapter ID value (recorded previously) in
place of the default value of Next Available. When creating a brand new partition, the
adapter ID value is normally not important. However, in this exercise you are recreating
an existing partition and will be booting from the original partition operating system
image. This means it is critical to specify the same virtual adapter ID for the virtual
Ethernet adapter so that the existing TCP/IP configuration is retained.

© Copyright IBM Corp. 2009, 2020 7-9


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» Example panel.

» In the normal lab environment used for this course, the virtual Ethernet adapter uses ID value 3.
__ d. Click OK to configure the partition to access the specified virtual network.
__ 19. Select the Virtual Storage option in the menu pod. In this step, you will configure the new
partition to replicate the virtual storage configuration of the original partition.
__ a. Expand the Logical Volume section, then click Add Logical Volume.
__ b. Ensure that the datavg volume group is selected in the first table, if it is not already
selected.
__ c. Select the Add existing logical volume option.
__ d. In the table, select the device name for the logical volume you recorded previously.

© Copyright IBM Corp. 2009, 2020 7-10


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» Example panel.

__ e. Click Edit Connection. In the dialog panel, enter the client adapter ID that you recorded
previously. The server adapter ID should be left with the default value of Next Available.
» Example panel.

© Copyright IBM Corp. 2009, 2020 7-11


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3
Exercise 7. Logical partition management

EXempty
» In the normal lab environment used for this course, the client adapter uses ID value 2.
__ f. Click OK to finish editing the connection information.
__ g. Click OK to add the logical volume-backed virtual storage to the partition.
__ 20. Open an SSH session to your HMC, and log in using the user ID and password provided by
the instructor.
__ 21. In the HMC CLI session, run the vtmenu command, and access the console for your new
partition.
__ 22. In the HMC GUI, return to the Partitions view.
__ 23. In the GUI, select your LPAR and run the Actions > Activate task. You can choose to
activate either the current configuration or the profile named default_profile. Either option
will result in activating the new partition with the same configuration. What happens in the
console window?
__ 24. Once the LPAR boots, verify that you can log in as the root user. Then, and ping another
host on network to verify that the network configuration is correct.
__ 25. Let your instructor know you have completed the exercise.

End of exercise

© Copyright IBM Corp. 2009, 2020 7-12


Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V11.3

backpg

© Copyright International Business Machines Corporation 2009, 2020.

You might also like