• No results found

AN304XSTUDHINT

N/A
N/A
Protected

Academic year: 2021

Share "AN304XSTUDHINT"

Copied!
170
0
0

Loading.... (view fulltext now)

Full text

(1)

Power Systems for AIX -

Virtualization I: Implementing

Virtualization

(Course code AN30)

Student Exercises

with hints

ERC 4.0 cover

(2)

March 2013 edition

The information contained in this document has not been submitted to any formal IBM test and is distributed on an “as is” basis without any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer responsibility and depends on the customer’s ability to evaluate and integrate them into the customer’s operational environment. While each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.

© Copyright International Business Machines Corporation 2009, 2013.

This document may not be reproduced in whole or in part without the prior written permission of IBM.

Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.

Trademarks

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:

Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.

Windows and Windows NT are trademarks of Microsoft Corporation in the United States, other countries, or both.

UNIX is a registered trademark of The Open Group in the United States and other countries.

Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.

Other product and service names might be trademarks of IBM or other companies.

Active Memory™ AIX 6™ AIX®

BladeCenter® DS4000® DS6000™

DS8000® Electronic Service Agent™ EnergyScale™

Enterprise Storage Server® Express® Focal Point™

HACMP™ IBM Systems Director Active

Energy Manager™

Initiate®

i5/OS™ Notes® Passport Advantage®

POWER Hypervisor™ Power Systems™ Power Systems Software™

Power® PowerHA® PowerPC®

PowerVM® POWER6® POWER7+™

POWER7® pSeries® Redbooks®

(3)

TOC

Contents

Trademarks . . . v Exercises description . . . vii Exercise 1. Power Systems documentation overview . . . 1-1 Exercise 2. Processor virtualization configuration . . . 2-1 Exercise 3. Integrated Virtual Ethernet configuration . . . 3-1 Exercise 4. Virtual Ethernet adapter configuration . . . 4-1

Part 1: Configuring a virtual Ethernet connection (simple configuration) . . . 4-2 Part 2: Configuring additional VLANs . . . 4-10

Exercise 5. Virtual I/O Server and client partition configuration . . . 5-1 Exercise 6. SEA failover setup . . . 6-1

Part 1: Setting the virtual Ethernet adapters and trunk priority . . . 6-5 Part 2: Create the SEA failover feature . . . 6-12 Part 3: Testing the SEA failover . . . 6-19 Part 4: (Optional) Setting the VIO server IP address on an additional virtual Ethernet adapter . . . 6-22

Exercise 7. Dual VIO server configuration with MPIO in the client partition . . . 7-1

Part 1: Create the VSCSI client and server adapters . . . 7-5 Part 2: Create the virtual target device . . . 7-8 Part 3: MPIO failover tests . . . 7-10 Part 4: (Optional) Working with MPIO paths' priority . . . 7-15

Exercise 8. Virtual Fibre Channel adapter configuration . . . 8-1 Exercise 9. Manage service events . . . 9-1

Part 1: Service Tools . . . 9-2 Part 2: SFP: Check and close events . . . 9-8

Exercise 10. PowerVM system maintenance . . . 10-1

(4)

Course materials may not be reproduced in whole or in part

iv Power Virtualization I © Copyright IBM Corp. 2009, 2013

(5)

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:

Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.

Windows and Windows NT are trademarks of Microsoft Corporation in the United States, other countries, or both.

UNIX is a registered trademark of The Open Group in the United States and other countries.

Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.

Other product and service names might be trademarks of IBM or other companies.

Active Memory™ AIX 6™ AIX®

BladeCenter® DS4000® DS6000™

DS8000® Electronic Service Agent™ EnergyScale™

Enterprise Storage Server® Express® Focal Point™

HACMP™ IBM Systems Director Active

Energy Manager™

i5/OS™ Passport Advantage®

POWER Hypervisor™ Power Systems™ Power Systems Software™

Power® PowerHA® PowerPC®

PowerVM® POWER6® POWER7+™

POWER7® pSeries® Redbooks®

(6)

Course materials may not be reproduced in whole or in part

(7)

pref

Exercises description

Exercise instructions: This section describes what you should

accomplish. There are no definitive details regarding how to perform the tasks. You are given the opportunity to work through the exercise given what you learned in the unit presentation.

(8)

Course materials may not be reproduced in whole or in part

(9)

EXempty

Exercise 1. Power Systems documentation

overview

(

with hints)

What this exercise is about

In this exercise, students find the key documentation that supports the objectives of this course.

What you should be able to do

At the end of this exercise, you should be able to:

• Access the documentation for IBM POWER6 and POWER7 processor-based servers and partitioning

Introduction

In this exercise, you will find the key pieces of documentation that cover the configuration of LPARs on IBM POWER6 and POWER7 processor-based servers.

Requirements

• This workbook.

• A student workstation with IP connectivity to the Internet and equipped with a web browser.

(10)

Course materials may not be reproduced in whole or in part

1-2 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Exercise instructions

with hints

Preface

• All exercises depend on the availability of specific equipment in your classroom. You will

need a computer system 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; therefore, ask your instructor if you have trouble navigating the websites.

Access IBM Systems hardware and AIX documentation

In this exercise, you discover the documentation to support the managed systems and LPARs. You can refer to this documentation as you work through the rest of the exercises in this course. This exercise requires Internet access.

Some web addresses or names are subject to modification. If a link does not work exactly as described or has been changed, notify your instructor.

Hardware information and support

__ 1. Go to http://www.ibm.com. Click the Products tab, then click Systems > Power

Systems (AIX, IBM i, Linux) in the context menu and explore this page. This page

contains information about the current POWER processor-based models. A large number of links, useful documents, and detailed information are available.

Depending on your interest, click the different links and explore the information that is available.

__ 2. Go to http://www.ibm.com. Click the Support and downloads tab, follow the context menu, click Support by products, and then go to Servers & Systems. This will take you to the Support for IBM Systems page. From the Select product or service type for support list, select Power. Select a Power System model from the Hardware drop-down list, and click Go. Explore the page, follow the different links in the Configuration, Documentation, Diagnostic, and Problem resolution menus. __ 3. Use the following web address to access the IBM Systems Information Center:

http://publib.boulder.ibm.com/eserver. This page is the entry point for hardware as well as software information. Click the IBM Systems Hardware

Information Center link.

When you are in the main IBM Systems Hardware Information Center, use the search option on the left side of the screen to find the topics related to the following phrases:

• Logical partition overview • Partitioning with the HMC

(11)

EXempty __ 4. Go to the AIX Information Center. Use the following URL:

http://publib.boulder.ibm.com/eserver

Click AIX Information Center link and, if the next page provides choices, select the

AIX 7.1 link.

When you are at the resulting IBM Systems Information Center page, select AIX

PDFs. This topic contains links to PDF versions of the AIX documentation.

__ 5. Go to the Power Systems Software website and see what is available: http://www.ibm.com/systems/power/software. Click the PowerVM -

Virtualization without limits link. Navigate the page and the different tabs.

__ 6. Find Linux information for POWER6 and POWER7 processor-based servers by visiting this site: http://www.ibm.com/systems/power/software/linux

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

(12)

Course materials may not be reproduced in whole or in part

(13)

EXempty

Exercise 2. Processor virtualization configuration

(

with hints)

What this exercise is about

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.

What you should be able to do

At the end of this exercise, you should be able to:

• 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 computer with a web browser and a network connection to an HMC running Version 7 configured to support a POWER7 processor-based system.

(14)

Course materials may not be reproduced in whole or in part

2-2 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Exercise instructions

with hints

Preface

• All exercises in this unit depend on the availability of specific equipment. You will

need a computer system connected to the World Wide Web, a web browser, a Telnet program, and a utility for running SSH. You will also need a managed system capable of running shared processor partitions. All lab systems need to be accessible to each other on a network.

All hints are marked by a » sign.

The hints in this exercise reflect results obtained on a Power System Model 750 with sixteen 3.0 GHz processors and a partition running AIX V7.1 Technology Level 1 SP 3. Your system's specific results might differ, but the overall

conclusions should be true for your system.

View system configuration and configure processor options

__ 1. Using Telnet, log in to your assigned LPAR and run the lparstat command. What is the current configuration of your partition for the following settings?

Type of processors: ____________________ Processor mode: ____________________ SMT: ____________________

Number of logical CPUs: ____________________

» Here is an example lparstat command and its output: # lparstat

System configuration: type=Dedicated mode=Donating smt=4 lcpu=4 mem=2048MB

%user %sys %wait %idle physc vcsw - - 0.0 0.4 0.0 99.6 0.25 106895367

» Based on the above output, the answers to the above questions are: Type of processors: Dedicated

Processor mode: Donating SMT: 4

Number of logical CPUs: 4

__ 2. Shut down your assigned LPAR. You do not need to wait for it to shut down to continue to the next step.

(15)

EXempty __ 3. Using your web browser, connect to your assigned HMC. Log in by typing hscroot.

__ 4. In this step, you will alter the Normal partition profile for your partition. __ a. Open the Normal profile properties window for your partition.

» Go to the Systems Management application on the HMC. Expand the Servers information, and then show the partition table view for your server.

» Select the partition by checking the check box in the Select column.

» Choose the Configuration > Manage Profiles task from the Tasks menu or from the tasks pad. In the pop-up window, check the profile name (Normal), and choose Edit from the Actions menu.

__ b. Change the profile to use shared processors. 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

that pops up.

» In the Processing mode box, select the Shared radio button.

» In the Processing units box, 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 last step, enter a 1 in the

Minimum virtual processors field, enter a 1 in the Desired virtual processors

field, and enter a 10 in the Maximum virtual processors field.

» On POWER7 hardware, the maximum number of virtual processors allowed is 10 times the value entered for maximum processing units.

__ d. Set the sharing mode to uncapped by clicking the Uncapped check box, and set the weight to 100. Click the OK button.

» On the same Processors tab you used in the last step, click the Uncapped check box and enter the value of 100 in the Weight box.

(16)

Course materials may not be reproduced in whole or in part

2-4 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» The Processors tab should now look like the example below.

__ 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, access the Operations menu and choose the Activate task.

» On the screen that pops up, the Normal profile should already be highlighted. Click the Open a terminal window or console session check box, and then click OK.

__ 6. When your partition has finished booting, log in and use the lparstat command to check the configuration.

» Log in to your partition and run the lparstat command. The output should reflect the changes you made in the partition profile.

(17)

EXempty » 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=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy vcsw phint - - - 0.0 0.0 1.6 98.4 0.00 0.0 12.8 63060 4

__ 7. Log in to the HMC command line using SSH and use the lshwres command to view the processor settings for the partition. Notice the new processor settings.

» The command syntax follows. Replace MSname with the actual managed system name and lparname with the actual LPAR name.

lshwres -r proc -m MSname --filter "lpar_names=lparname" --level lpar » Here is an example command and its output for the managed system named

sys464 and a partition named sys464_partition1:

hscroot@sys194-hmc:~> lshwres -r proc -m sys464 --filter \ "lpar_names=sys464_partition1" --level lpar

lpar_name=sys464_partition1,lpar_id=1,curr_shared_proc_pool_id=0,curr _shared_proc_pool_name=DefaultPool,curr_proc_mode=shared,curr_min_pro c_units=0.1,curr_proc_units=0.6,curr_max_proc_units=1.0,curr_min_proc s=1,curr_procs=1,curr_max_procs=1,curr_sharing_mode=uncap,curr_uncap _weight=100,pend_shared_proc_pool_id=0,pend_shared_proc_pool_name=D efaultPool,pend_proc_mode=shared,pend_min_proc_units=0.1,pend_proc_ units=0.6,pend_max_proc_units=1.0,pend_min_procs=1,pend_procs=1,pen d_max_procs=10,pend_sharing_mode=uncap,pend_uncap_weight=100,run_pro c_units=0.6,run_procs=1,run_uncap_weight=100

__ 8. From the console window or from a Telnet session to your logical partition, use the

lparstat AIX command with the -i option and view the information available. 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

(18)

Course materials may not be reproduced in whole or in part

2-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Example lparstat -i output:

Node Name : sys464_partition1 Partition Name : sys464_partition1

Partition Number : 1 Type : Shared-SMT-4 Mode : Uncapped Entitled Capacity : 0.60 Partition Group-ID : 32769 Shared Pool ID : 0

Online Virtual CPUs : 1

Maximum Virtual CPUs : 10

Minimum Virtual CPUs : 1

Online Memory : 2048 MB Maximum Memory : 4096 MB Minimum Memory : 1024 MB Variable Capacity Weight : 100

Minimum Capacity : 0.10 Maximum Capacity : 1.00 Capacity Increment : 0.01 Maximum Physical CPUs in system : 16

Active Physical CPUs in system : 16

Active CPUs in Pool : 16

Shared Physical CPUs in system : 16

Maximum Capacity of Pool : 1600

Entitled Capacity of Pool : 60

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 :

(19)

EXempty __ 9. 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 from the last boot.

» Example lparstat output: # lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy vcsw phint - - - 0.1 0.8 0.0 99.1 0.01 1.8 0.5 332 0 0.0 0.6 0.0 99.4 0.01 1.3 0.0 312 0 0.0 0.8 0.0 99.2 0.01 1.6 0.0 278 0 0.0 0.6 0.0 99.4 0.01 1.1 0.0 221 0

__ 10. What is the available shared processing pool statistic that might or might not display in the lparstat output? If it does not display in the lparstat output on your system, configure 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 this app statistic, go to the HMC Systems

Management application and back to the LPAR table view. Select your partition

(20)

Course materials may not be reproduced in whole or in part

2-8 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Hardware tab. Click the Processors tab. Click the Allow performance information collection check box, as shown in this example:

» Click OK.

» 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.

» 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=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 0.1 0.8 0.0 99.2 0.01 1.6 0.0 15.00 234 0 0.0 0.6 0.0 99.4 0.01 1.3 0.0 14.23 279 0 0.0 0.6 0.0 99.4 0.01 1.2 2.4 14.99 220 0 0.0 0.6 0.0 99.4 0.01 1.1 0.0 15.18 226 0

__ 11. 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

(21)

EXempty 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=16 ent=0.60

__ 12. Enable 2-way and 4-way simultaneous multi-threading, and run the lsdev -c

processor command again. Is the output different? Why or why not?

» The lsdev command output is the same because this is a shared processor partition and it lists virtual processors (not logical processors).

__ 13. Run the lparstat command to list the logical processors. Observe the 2-way and 4-way simultaneous multi-threading (SMT) supported by POWER7.

» POWER7 supports 2-way and 4-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=16 ent=0.60

» 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=16 ent=0.60

(22)

Course materials may not be reproduced in whole or in part

2-10 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» In the window that opens, enter 3 in the Virtual processors box in the Assigned column. Click OK.

» Go back to your partition's terminal window, and run lsdev -c processor again. The output should look similar to this:

# lsdev -c processor

proc0 Available 00-00 Processor proc4 Available 00-04 Processor proc8 Available 00-08 Processor

» Now AIX sees three processors. These are the virtual processors.

__ 15. Run the lparstat command again with no options. How many logical processors are in the partition?

» The lparstat command will show twelve logical processors (lcpu=12) because there are three virtual processors configured in the partition and simultaneous multi-threading 4 is enabled. There are four logical processors for each virtual processor. We know that simultaneous multi-threading is enabled because the

lparstat command shows smt=4 in the configuration line at the top. # lparstat

System configuration: type=Shared mode=Uncapped smt=4 lcpu=12 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 0.0 0.0 0.1 99.9 0.00 0.0 0.9 13.69 465840 5

Overviewing shared processor utilization

__ 16. Open a Telnet session to your LPAR, and run the following command to put a processing load on the system:

yes | sum &

You can minimize this window. Leave this command running for the rest of the exercise.

__ 17. Open a second Telnet session or a console window for your partition. Run the following command:

lparstat 1 4

(23)

EXempty » Example command and output:

# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=12 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 57.2 2.8 0.0 39.9 1.34 224.1 16.6 13.45 13744 0 57.3 2.7 0.0 39.9 1.34 223.7 16.5 14.56 13624 0 57.3 2.7 0.0 40.0 1.34 224.1 15.8 13.74 13740 0 57.3 2.7 0.0 40.0 1.34 223.9 15.4 11.70 13678 0 » Some things to notice include:

This is an uncapped partition because the total %entc exceeds 100%. The %entc value is above 220% of the LPAR capacity entitlement of 0.6.

The physc value is approximately 1.34 and corresponds to the physical CPU capacity consumed by your LPAR. When you are using 1.34 physc with a configured entitled capacity of 0.6, it is correct to see the %entc at approximately 224%.

__ 18. 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?

» 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 : 16

» 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=4 lcpu=12 mem=2048MB psize=16 ent=0.60

(24)

Course materials may not be reproduced in whole or in part

2-12 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» 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 approximately 13 processor units are available in the shared processor pool.

__ 19. From the HMC Systems Management application, dynamically change the virtual processor setting back to one. Run the lparstat 1 4 command again. What do you notice? Can you explain the physc value?

» Example command and its output: # lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 72.7 2.9 0.0 24.4 1.00 166.6 30.0 13.56 22902 6 71.1 2.8 0.0 26.1 1.00 166.6 30.8 13.86 23658 0 71.1 2.8 0.0 26.2 1.00 166.6 30.0 14.26 23694 6 71.1 2.9 0.0 26.1 1.00 166.6 31.5 13.74 23574 0 » Some things to notice include:

- %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 a 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%.

__ 20. Your assigned LPAR should still be running the "yes | sum &" command. In the second terminal window to your partition, run the lparstat 1 4 command; then dynamically change your partition to be a capped mode partition. In the second terminal window to your partition, run the lparstat 1 4 command again. Compare the two outputs. What do you notice?

(25)

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

# lparstat 1 4

System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 72.3 2.9 0.0 24.7 1.00 166.2 32.2 13.27 23694 6 73.6 3.3 0.0 23.1 1.00 166.6 31.8 14.51 23541 6 71.0 2.8 0.0 26.2 1.00 166.6 31.5 12.86 23652 3 72.4 2.9 0.0 24.7 1.00 166.6 31.2 13.47 23649 0 » To change the partition from uncapped to capped, go to the HMC Systems

Management application. In the LPAR table view, select your partition and

choose Dynamic Logical Partitioning > Processor > Add or Remove. In the window, uncheck the Uncapped check box. Click OK.

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

System configuration: type=Shared mode=Capped smt=4 lcpu=4 mem=2048MB psize=16 ent=0.60

%user %sys %wait %idle physc %entc lbusy app vcsw phint - - - --- 70.8 3.1 0.0 26.1 0.60 99.9 31.2 13.60 14448 3 70.9 3.2 0.0 26.0 0.60 100.0 31.8 14.45 14469 0 70.9 3.0 0.0 26.0 0.60 100.0 30.2 14.12 14433 0 71.1 3.0 0.0 25.9 0.60 100.0 31.0 14.36 14283 0

» 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% (or much higher due to rounding issues).

__ 21. This ends the exercise. Stop the "yes | sum &" command, and close any terminal windows that are open. Contact your instructor for instructions on what to do next.

(26)

Course materials may not be reproduced in whole or in part

(27)

EXempty

Exercise 3. Integrated Virtual Ethernet

configuration

(

with hints)

What this exercise is about

This exercise has students configure a partition to use a logical host Ethernet adapter (LHEA) logical port as its network device. The host Ethernet adapter (HEA) is also referred to as the Integrated Virtual Ethernet (IVE) adapter.

What you should be able to do

At the end of this exercise, you should be able to:

• Add a logical port from the HEA to a partition's configuration • Configure networking on the LHEA port interface

Introduction

In this exercise, you will configure a LHEA logical port in a partition, configure the interface for this port, and run a network performance command to view statistics about the logical port.

Requirements

• This workbook.

• A workstation with a web browser connected to a network. • A managed system connected to the same network as the

workstations.

(28)

Course materials may not be reproduced in whole or in part

3-2 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Exercise instructions

with hints

Preface

• All exercises of this unit depend on the availability of specific equipment in your

classroom. You will need:

- A computer system with a web browser.

- A managed system configured with at least one partition per student. - A system from which to execute remote commands to the HMC (through

SSH): All lab systems need to be accessible to each other on a network.

Hints are provided for exercises in case you need them and to provide solutions for the exercise steps. All hints are marked by a » sign.

View managed system and LPAR configuration

In this exercise, the goal is to configure your assigned LPAR to use an HEA logical port and configure it so that it has network connectivity.

__ 1. Connect to the HMC using a web browser. Login as hscroot.

__ 2. Go to the Systems Management application on the HMC. Go to the LPAR table view. Do not select any LPAR.

__ 3. Open the task to see the HEA configuration by making sure no partitions are selected, and then selecting the Hardware Information > Adapters > Host

Ethernet task.

Note that in the lab configuration, the machines are single node systems; therefore, there is only one HEA. You should get a window similar to the following example:

(29)

EXempty __ 4. Select the Physical Port Location Code T1 as follows:

Then select the Configure button and view the various attributes of the HEA. Keep the default values. How many logical ports per physical port group are available to be configured on your system?

» You can tell by looking at the MCS value in the Host Ethernet Adapters window.

» Given the example shown in the hints above, the MCS value is two and there is no logical port assigned to an LPAR; therefore, available logical port IDs are one through eight.

• You might want to select the Help button to get additional information

about these attributes.

(30)

Course materials may not be reproduced in whole or in part

3-4 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» With only your partition selected, run the Console Window > Open Terminal

Window task. Log in as root.

» Here is an example of the command and output that shows no HEAs. You should only see physical Ethernet adapters:

# lsdev -c adapter -S a

ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

fcs0 Available 01-00 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Available 01-01 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) vsa0 Available LPAR Virtual Serial Adapter

__ 7. Shut down your assigned LPAR. You do not have to wait for it to shut down to go to the next step.

» Run the shutdown -F AIX command.

__ 8. Edit your LPAR's Normal profile to include an HEA logical port. Use the following information for assigning an LHEA port:

Table 1: LHEA port assignment

» With only your partition selected, run the Configuration > Manage Profiles task.

» Select the Normal profile, and then run Edit on the Actions menu. » Go to the Logical Host Ethernet Adapter (LHEA) tab.

Student number:

LPAR Name HEA

Physical Port ID HEA Physical Port Group HEA logical Port ID First managed system

student 1 partition1 0 1 1 student 2 partition2 0 1 2 student 3 partition3 0 1 3 student 4 partition4 0 1 4 student 5 partition5 0 1 5 student 6 partition6 0 1 6

Second managed system

student 7 partition7 0 1 1 student 8 partition8 0 1 2 student 9 partition9 0 1 3 student 10 partition10 0 1 4 student 11 partition11 0 1 5 student 12 partition12 0 1 6

(31)

EXempty » Select the physical port ID 0 of the port group 1. Here is an example where

physical port ID 0 is selected:

» Click Configure.

» Select the logical port for your partition according to the information in Table 1 above. Here is an example with logical port ID 1 selected:

(32)

Course materials may not be reproduced in whole or in part

3-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013

__ 10. Activate your LPAR with its Normal profile.

» Your LPAR should still be selected. Run the Operations > Activate task and activate it with its Normal profile. If you still have a console window for the partition, you do not have to check the check box for a terminal window. If you do not have a console window, check the check box.

__ 11. Once your LPAR has booted, log in to its console. Run the lsdev -c adapter -S a AIX command again. You should see these two new devices:

ent2 Available Logical Host Ethernet Port (lp-hea) lhea0 Available Logical Host Ethernet Adapter (l-hea)

The logical numbers (ent# and lhea#) for the devices might be different on your system.

__ 12. Run the lsparent -Cl ent2 command to see the parent of the LHEA (lp-hea). The logical number (ent#) for the device might be different on your system.

» # lsparent -Cl ent2

lhea0 Available Logical Host Ethernet Adapter (l-hea)

__ 13. Open a virtual console to your LPAR. Use the smit tcpip fastpath to list your TCP/IP configuration. Record the host name, IP address, network mask and default gateway here.

Host name: ____________________ IP address: ____________________ Network mask: ____________________ Default gateway: ____________________

__ 14. Use the virtual console session to run the ifconfig AIX command to bring down and detach the existing Ethernet interface. This should be a physical Ethernet adapter that has logical device name ent0 (en0 interface). The logical number (ent#) for the device might be different on your system.

# ifconfig en0 down # ifconfig en0 detach

__ 15. Use the smit tcpip fastpath to configure the Ethernet interface for the logical host Ethernet port. Use the Minimum Configuration & Startup SMIT menu option. If the adapter's name is ent2, configure its interface en2. Use the following information to configure this interface:

• Reuse the host name, IP address, netmask, and gateway you recorded

previously.

• Use the down arrow to move to the bottom of the SMIT panel and answer

yes to the START Now line.

(33)

EXempty • Type ESC 0 to exit SMIT.

__ 16. Use the ping AIX command to verify that your network interface can communicate on the network. Ping the IP address of your HMC.

Here is an example of a successful ping where hmcIP would be the actual HMC's IP address:

# ping hmcIP

PING 10.6.140.40: (10.6.140.40): 56 data bytes

64 bytes from 10.6.140.40: icmp_seq=0 ttl=64 time=0 ms 64 bytes from 10.6.140.40: icmp_seq=1 ttl=64 time=0 ms Type CTRL C to stop the ping.

__ 17. Run entstat -d on the new ent# device. Page through the statistics that are available for this type of device. You can also try the following command:

lsslot -c port

__ 18. Looking at the LHEA port assignments in Table 1 on page 3-4, what if you had to configure an LHEA port on your LPAR for the best performance for lots of network traffic to external hosts? What physical HEA port would you use?

Document that physical port ID here: ____________________

» Since all the LPARs are using physical port 0, you should configure your partition for the other physical port if there will be lots of network traffic to external hosts. In that case, your LPAR would not share the same physical port as the other LPARs.

» Note, however, that all the logical ports associated with the same physical port allow partition-to-partition communication. LPARs that configure logical ports on the same physical ports can use internal LPAR-to-LPAR communications. If your LPAR was only going to have heavy traffic to other LPARs, using the same physical port, and thus the same HEA internal switch, would make more sense. __ 19. Inform your instructor that you have finished this exercise.

(34)

Course materials may not be reproduced in whole or in part

(35)

EXempty

Exercise 4. Virtual Ethernet adapter configuration

(

with hints)

What this exercise is about

This exercise covers the configuration of a virtual Ethernet network for LPAR communication. It explores the operations involved with

managing virtual Ethernet adapters.

What you should be able to do

At the end of this exercise, you should be able to:

• Configure a network communication between two partitions

through virtual Ethernet adapters, and test the POWER Hypervisor provided VLAN connection

• Configure a virtual adapter with additional VID and a VLAN adapter in your AIX partition

Introduction

In this exercise, you create and configure a virtual Ethernet adapter and test the connectivity between your partition and another student's partition. You will use both the HMC graphical interface and HMC commands to complete the tasks.

Requirements

• This workbook.

• A workstation with Web UI to access the HMC over an IP.

• A POWER7 processor-based managed system connected to the same network as the workstations.

(36)

Course materials may not be reproduced in whole or in part

4-2 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Exercise instructions

with hints

Preface

• This exercise depends on the availability of specific equipment in your

classroom. You will need:

- A managed system configured with at least one partition per student running

AIX V7.1.

- A system from which to execute remote commands to the HMC (using web

user interface or SSH).

- Network connectivity that is set up to allow all the systems to communicate

properly.

» Hints are provided for exercises in case you need them and to provide solutions for the exercise steps. All hints are marked by a » sign. Also, please note that the screen shots in this and subsequent exercises are suggestive in nature and the screens you will see might differ depending on the hardware setup or the version of the HMC and VIOS. Ensure that you understand the steps, and if you have any doubt, feel free to speak to your instructor.

Part 1: Configuring a virtual Ethernet connection (simple configuration)

In this part of the exercise, you use the HMC to create a virtual Ethernet adapter for your partition, and you configure the virtual Ethernet adapter and the corresponding AIX interface. You and another student will use the same VLAN ID for the virtual Ethernet adapter configuration. You will test the connection to the partition configured on the same VLAN and check that you are not able to ping other partitions.

The following diagram shows the network topology that students will configure during part one of the exercise. It represents the partitions hosted on a managed server for student

(37)

EXempty one through student six. A similar partition configuration is set up on another system for

students seven to twelve.

__ 1. Start your browser, connect to the HMC, and log in using the user and password that has been provided for you in the class instructions. Navigate to the LPAR table view for your system, and check the status of your partition. Your partition should be running for this part of the exercise. If it is not, activate it using the Normal profile. Continue to step two without waiting for the activation to complete.

» Click the Systems Management link in the HMC navigation area. » Click your managed system in the list of servers.

» Select your LPAR in the working pane; then use the Tasks menu to request the partition activation (Operations > Activate).

__ 2. Dynamically add a virtual Ethernet adapter to your partition. Create the adapter with the lowest available virtual slot number, and assign it the virtual LAN ID value as mentioned in the table below.

Table 2: Virtual Ethernet adapter configuration

POWER Hypervisor

POWER Hypervisor

Student number Managed system Port default VLAN ID IP address 1 first 1 1.1.1.1 2 first 1 1.1.1.2 3 first 2 1.1.1.3 4 first 2 1.1.1.4 5 first 3 1.1.1.5

(38)

Course materials may not be reproduced in whole or in part

4-4 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Select your LPAR in the working pane, and then use the Context menu or the

Tasks pad to access the Dynamic Logical Partitioning > Virtual Adapters

task.

» On the Actions menu, select Create > Ethernet Adapter...

» In the screen that pops up, change the VLAN ID to the corresponding value and click OK. Do not select any other check boxes, and verify that the VSwitch field is set with the default ETHERNET0(Default) value. Here is an example where the virtual LAN ID of 1 is entered for the partition 1:

12 second 3 1.1.1.12 Student number Managed system Port default VLAN ID IP address

(39)

EXempty » The Virtual Adapter dialog screen should now look like this:

» Click OK to create the virtual Ethernet adapter.

__ 3. Since you added the virtual Ethernet adapter dynamically, what must you do to have AIX recognize the new device? Open an ASCII terminal to your partition using SSH or Telnet, log in as root, and run the cfgmgr command to configure the virtual Ethernet adapter. Use the lsdev command to see the list of configured devices, and then verify that there is one new virtual Ethernet adapter available.

» The important step is to run the cfgmgr command.

» Here are example commands and outputs. In this example, ent3 is the new virtual Ethernet adapter.

# lsdev -Cc adapter | grep ent

ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent2 Available Logical Host Ethernet Port (lp-hea)

# cfgmgr

# lsdev -Cc adapter -Sa | grep ent

ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003) ent2 Available Logical Host Ethernet Port (lp-hea)

ent3 Available Virtual I/O Ethernet Adapter (l-lan)

In the following steps, you will use commands to check the virtual Ethernet configuration from the AIX command-line interface.

(40)

Course materials may not be reproduced in whole or in part

4-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Here is example command and output information. # entstat -d ent3 | grep ID

Invalid VLAN ID Packets: 0 Port VLAN ID: 1

VLAN Tag IDs: None Switch ID: ETHERNET0

__ 5. Use the lscfg AIX command to list the virtual slot ID of the virtual Ethernet adapter. » Virtual slot ID is mentioned in the physical location code; use the lscfg

command.

» Here is example command and output information. In this example, the virtual Ethernet adapter is connected to virtual slot ID 2.

# lscfg -l ent3

ent3 U8233.E8B.1084AER-V1-C2-T1 Virtual I/O Ethernet Adapter (l-lan) __ 6. List the MAC address of the virtual Ethernet adapter from the AIX CLI. You can use

lscfg or entstat.

» Here are example commands and outputs. # entstat -d ent3 | grep Address

Hardware Address: 06:06:eb:31:e8:02 # lscfg -vl ent3 | grep Address

Network Address...0606EB31E802

__ 7. Log in to the HMC CLI using the ssh command, and list the configuration of the virtual Ethernet adapter on your partition.

» Here are example commands and output.

hscroot@hmc109:~> lshwres -r virtualio --rsubtype eth -m sys464

--level lpar --filter lpar_names=sys464_partition1

lpar_name=sys464_partition1,lpar_id=1,slot_num=2,state=1,is_required= 0,is_trunk=0,ieee_virtual_eth=0,port_vlan_id=1,vswitch=ETHERNET0,addl _vlan_ids=,mac_addr=0606EB31E802,allowed_os_mac_addrs=all,qos_priorit y=none

__ 8. View the virtual network topology. Access the HMC web user interface, select your partition, and use the Dynamic Logical Partitioning > Virtual Adapters task. On the Actions menu, select Create > Ethernet Adapter.... In the screen that pops up, click the View Virtual Network, select your VLAN, and look at the network details. Click Close and Cancel twice to exit without creating a new virtual adapter.

(41)

EXempty » An example screen is shown below. You may not see the details of the other

partition using the same VLAN ID if the other student has not yet dynamically added the virtual Ethernet adapter.

__ 9. Now it is time to configure the AIX Ethernet interface. Use the smitty chinet fastpath, and select the interface corresponding to the virtual adapter. In the example from the last step, you would configure the en3 interface. Use the IP address mentioned in Table 2 on page 4-3 according to your student number, set 255.255.255.0 for the netmask, and change the current STATE to up. Press the

Enter key to run the command, and press F10 or Esc 0 to exit SMIT when the

operation is completed successfully.

__ 10. List the IP routing table of your partition, and verify that IP routes are created using the corresponding interface.

(42)

Course materials may not be reproduced in whole or in part

4-8 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Here are example commands and output.

# netstat -rn

Routing tables

Destination Gateway Flags Refs Use If Exp Groups

Route Tree for Protocol Family 2 (Internet):

default 10.6.140.254 UG 1 655 en2 -1.1.1.0 1.1.1.1 UHSb 0 0 en3 - - = > 1.1.1/24 1.1.1.1 U 0 3 en3 1.1.1.1 127.0.0.1 UGHS 0 2 lo0 1.1.1.255 1.1.1.1 UHSb 0 0 en3 -10.6.140.0 10.6.140.41 UHSb 0 0 en2 - - = > 10.6.140/24 10.6.140.41 U 1 1099 en2 10.6.140.41 127.0.0.1 UGHS 2 8 lo0 10.6.140.255 10.6.140.41 UHSb 0 0 en2 127/8 127.0.0.1 U 5 16776 lo0

-__ 11. Coordinate with the other student who is using the same VLAN for his or her partition on the same managed system (refer to Table 2 on page 4-3). Ping his or her partition IP address on the 1.1.1.X network. Verify that the two virtual Ethernet adapters can communicate.

» Here are example commands and outputs.

# ping -c 3 1.1.1.2

PING 1.1.1.2: (1.1.1.2): 56 data bytes

64 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=0 ms 64 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=0 ms 64 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=0 ms ----1.1.1.2 PING

Statistics----3 packets transmitted, Statistics----3 packets received, 0% packet loss round-trip min/avg/max = 0/0/0 ms

__ 12. Test the speed of the virtual network; 1 megabyte should be transferred in less than 10 milliseconds. This test should not be considered as a performance

measurement; it is just given as an example. Use the ftp command to connect to your partner's partition using the 1.1.1.X network; then type binary to transfer as binary form, and type the following command to send 1 MByte:

(43)

EXempty » Here are example commands and outputs.

# ftp 1.1.1.2

Connected to 1.1.1.2.

220 sys464_partition2 FTP server (Version 4.2 Tue Oct 19 16:17:02 CDT 2010) ready.

Name (1.1.1.2:root): root

331 Password required for root. Password:

230-Last unsuccessful login: Tue May 4 16:02:15 CEDT 2010 on /dev/pts/0 from st

or_nim

230-Last login: Sat Jan 5 00:16:30 CET 2013 on ftp from ::ffff:1.1.1.1 230 User root logged in.

ftp> binary

200 Type set to I.

ftp> put "|dd if=/dev/zero bs=1M count=1" /dev/null 200 PORT command successful.

150 Opening data connection for /dev/null. 1+0 records in.

1+0 records out.

226 Transfer complete.

1048576 bytes sent in 0.01098 seconds (9.325e+04 Kbytes/s) local: |dd if=/dev/zero bs=1M count=1 remote: /dev/null ftp>bye

__ 13. Verify that you cannot ping a partition defined on a different VLAN. » Here is an example showing the ping command and its output. # ping -c1 1.1.1.3

PING 1.1.1.3: (1.1.1.3): 56 data bytes ----1.1.1.3 PING

(44)

Course materials may not be reproduced in whole or in part

4-10 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Part 2: Configuring additional VLANs

In this part of the exercise, you will dynamically change the configuration of your partition so that it can participate on two VLANs.

The following diagram shows the network topology that students will configure during part two of the exercise. Notice that the part one configuration remains unchanged, and you will perform the steps to add the additional VLAN. The final configuration allows all partitions in the same server to communicate each other.

A similar configuration is set up on the other managed server for students seven to twelve.

__ 14. Dynamically change the virtual Ethernet adapter's configuration so that it can

participate on two VLANs. Specify the additional VLAN ID 4. In a later step, you will configure the respective network interface with an IP address according to the following table.

Table 3: Additional VLAN ID configuration

» Click the Systems Management link in the HMC navigation area. » Expand the Servers list so that you can select your managed system.

Student number

IEEE 802.1Q Additional VLAN ID

IP Address for the new VLAN interface 1 4 4.4.4.1 2 4 4.4.4.2 3 4 4.4.4.3 4 4 4.4.4.4 5 4 4.4.4.5 6 4 4.4.4.6 7 4 4.4.4.7 8 4 4.4.4.8 9 4 4.4.4.9 10 4 4.4.4.10 11 4 4.4.4.11 12 4 4.4.4.12

(45)

EXempty » Select your LPAR in the working pane, and then use the Context menu or the

Tasks pad to access the Dynamic Logical Partitioning > Virtual Adapters

task.

» Select the virtual Ethernet adapter that you created earlier. Click the Edit option in the Actions menu.

» In the window that opens, select the IEEE 802.1q compatible adapter check box and enter the second VLAN ID in the Add VLAN ID field. Then click the Add button so that the VLAN ID appears in the Additional VLAN IDs list.

» Here is an example:

» Click OK on this screen, and then click OK again to close the Logical Partition

Profile Properties window.

__ 15. In a terminal connected to your partition, run lsdev -C | grep ent to list all Ethernet adapters. Is a VLAN device entry listed?

(46)

Course materials may not be reproduced in whole or in part

4-12 Power Virtualization I © Copyright IBM Corp. 2009, 2013

» Here is an example command and its output. # lsdev -C | grep ent

ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

ent2 Available Logical Host Ethernet Port (lp-hea) ent3 Available Virtual I/O Ethernet Adapter (l-lan) » No VLAN entry is in this output.

__ 16. Use the entstat -d command to check the port VLAN IDs of the virtual Ethernet adapter. Does the additional VLAN ID show up in the output?

» Here is example command and output information showing the newly added additional VLAN ID in the VLAN Tag IDs field.

# entstat -d ent3 | grep ID Invalid VLAN ID Packets: 0 Port VLAN ID: 1

VLAN Tag IDs: 4 Switch ID: ETHERNET0

__ 17. Use the smit addvlan fastpath command to create a new AIX VLAN pseudo device instance associated with the additional VLAN ID using the virtual Ethernet adapter that you created previously. Do not specify a VLAN priority in the SMIT menu. » Here is an example of the addvlan SMIT screen where the VLAN ID 4 has been

entered:

Add A VLAN Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields] VLAN Base Adapter ent3

* VLAN Tag ID [4] +# VLAN Priority [] +#

__ 18. List all Ethernet adapters in your partition. Is there a new AIX VLAN device entry now? ____________________________________________________________

(47)

EXempty » You should now see a VLAN pseudo device listed in the lsdev output. Here is an

example of the lsdev command and its output showing that there is now a new ent4 instance listed as a VLAN.

# lsdev -C | grep ent

ent0 Available 00-00 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

ent1 Available 00-01 2-Port 10/100/1000 Base-TX PCI-Express Adapter (14104003)

ent2 Available Logical Host Ethernet Port (lp-hea) ent3 Available Virtual I/O Ethernet Adapter (l-lan) ent4 Available VLAN

__ 19. Use the smit chinet fastpath command to configure the interface of the new VLAN device. Select the interface, and use the IP address mentioned in Table 3 on

page 4-10. It should be similar to 4.4.4.x, where x is your student number. Use 255.255.255.0 for the network mask, and set the current state to up. Press Enter to execute the command.

__ 20. In this part of the lab exercise, all the students on the same server have a network interface defined on the VLAN ID number 4 and configured with an IP address on the 4.4.4.x subnet. Synchronize with another student and ping his or her partition using the corresponding 4.4.4.X address. Is the ping successful now?

» Here is an example showing the ping command and its output. Partition1 pings partition3 successfully.

# ping -c 2 4.4.4.3

PING 4.4.4.3: (4.4.4.3): 56 data bytes

64 bytes from 4.4.4.3: icmp_seq=0 ttl=255 time=0 ms 64 bytes from 4.4.4.3: icmp_seq=1 ttl=255 time=0 ms ----4.4.4.3 PING

Statistics----2 packets transmitted, Statistics----2 packets received, 0% packet loss round-trip min/avg/max = 0/0/0 ms

Adding a second virtual Ethernet adapter using a port default VLAN ID instead of an additional VID on the single virtual Ethernet adapter would have resulted in an equivalent TCP/IP configuration. For this reason, AIX VLAN adapters are not frequently used in the virtualized environment.

__ 21. Shut down your partition using the shutdown -F AIX command. __ 22. Let your instructor know when you have completed the exercise.

(48)

Course materials may not be reproduced in whole or in part

(49)

EXempty

Exercise 5. Virtual I/O Server and client partition

configuration

(

with hints)

What this exercise is about

This exercise covers the installation and configuration of a virtual I/O server and an AIX client partition. It covers the setup of a virtual Ethernet LAN, an SEA for network access, and a VSCSI environment that provides disks for the client partition.

For your information, another optional lab exercise is available at the end of the course. It covers the setup of a virtual media repository and the creation of a file-backed VSCSI disk.

What you should be able to do

At the end of this exercise, you should be able to: • Create a virtual I/O server partition

• Install the virtual I/O server operating system

• Configure the virtual I/O server to support a virtual client partition:

- Configure an SEA

- Configure a VSCSI environment

• Create the virtual client partition

• Install AIX from a network installation management server

Introduction

This exercise is presented in two topics. • The first topic contains two parts:

(50)

Course materials may not be reproduced in whole or in part

5-2 Power Virtualization I © Copyright IBM Corp. 2009, 2013

- Part 4: Install the AIX client partition operating system

Requirements

• This workbook

• A workstation with web UI to access the HMC over an IP.

• A POWER7 processor-based managed system connected to the same network as the workstations.

(51)

EXempty

Exercise instructions

with hints

Preface

• This exercise depends on the availability of specific equipment in your

classroom. You will need:

- A managed system to configure a VIO server and an AIX V7.1 partition. - A NIM server prepared with corresponding resources.

- A system from which to execute remote commands to the HMC (using SSH)

and to access the HMC web user interface.

- Network connectivity that is set up to allow all the systems to communicate

properly.

Hints are provided for exercises in case you need them and to provide solutions for the exercise steps. All hints are marked by a » sign.

• The following diagram shows the configuration that you will implement during

this lab.

- In Topic 1, you will create and install the VIO server partition.

- In Topic 2, you will configure an SEA and a vhost in the VIO server to provide

virtual resources for a client partition; then you will create and install the client partition.

(52)

Course materials may not be reproduced in whole or in part

5-4 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Shared LUNs (LUNS assigned to several Fibre Channel adapters):

• You will use one of the shared LUNs (10 GB in size) for your client partition AIX

installation.

• It is not necessary to share this LUN for this exercise because you build a unique

configuration VIO server. The LUN is shared because in a following exercise you will work as a team with another student and share resources to build a secure environment with a dual VIO server configuration.

Several 10 GB shared LUNs have been set up for the class. Each student will select one of these LUNs to install the client LPAR operating system.

When performing LPAR creation tasks, use the VLAN IDs and LPAR names assigned by your Instructor.

Topic 1 - Part 1: Create the VIO server partition

In this part of the exercise, you will use the physical slots of your existing assigned LPAR as the physical slots for the virtual I/O server partition.

__ 1. If your partition is running, shut it down. While you are waiting for the partition to shut down, open the partition's properties window and note all the physical I/O slots that have been assigned to it. Write them down here (it will be used later in the VIOS definition).

Ethernet adapter slot: _______________________________________________ Fibre Channel adapter slot: ___________________________________________ » Issue the shutdown -F command if your partition is running.

» In the HMC interface, select your assigned partition in the work area, and choose

Properties in the Tasks pad. Select the Hardware tab and then the I/O sub-tab,

and note all the slots that the partition currently owns. In the following example, this partition either owns or is remembered to have owned slot C4 and C6.

(53)

EXempty » Make a note of the complete slot number information for each adapter, not just

the last portion of the slot, for example C4. This is because some managed systems may have multiple I/O enclosures, and each enclosure may have a slot called C4. The complete slot information identifies the I/O enclosure that

contains the slot.

__ 2. When your assigned partition is shut down, close any open console window, and then delete the partition.

» Select your assigned partition in the work area; then choose Operations >

delete.

__ 3. Create a virtual I/O server partition. Use the partition name provided by your

instructor, and name the profile Normal. The VIOS partition will use the physical I/O resources of the partition that you deleted in the previous step so that it can have access to a storage subsystem.

The following table shows the managed server allocation for all the students attending the class. One managed server is shared by six students. See your instructor for the LPAR name information.

Table 4: Student and VIOS allocation Student ID Virtual I/O

server partition name

VIO server partition ID First managed server

Student 1 1 Student 2 2 Student 3 3 Student 4 4 Student 5 5 Student 6 6

Second managed server

Student 7 7 Student 8 8 Student 9 9 Student 10 10 Student 11 11 Student 12 12

(54)

Course materials may not be reproduced in whole or in part

5-6 Power Virtualization I © Copyright IBM Corp. 2009, 2013

Table 5: VIO configuration details

Wizard step Parameter or action Value

Create Partition

Partition ID Your student ID

Partition name Provided by the

instructor

Mover service partition

Check or uncheck (does not matter, this is for partition

mobility)

Partition Profile Profile name Normal

Processors Shared

Processing Settings

Minimum processing units 0.1 Desired processing units 0.6 Maximum processing units 1.0

Shared processor pool DefaultPool (0) Minimum virtual processors 1

Desired virtual processors 1 Maximum virtual processors 10

Uncapped Yes (check box)

Weight 128

Memory Settings

Minimum memory 1 GB

Desired memory 2 GB

Maximum memory 4 GB

Active Memory Expansion Not checked I/O

Two slots must be added as required (One Fibre Channel and one Ethernet adapter).

Refer to the values recorded in Step 1.

References

Related documents

software packages/projects... The first trend is using visual tools to allow users to construct pathway models. The second is the development of Web-based ap- plications. Nowadays,

The college has developed web-based systems to assist faculty: initial verification /attendance, enrollment changes during the term for unofficial withdrawals, and end of term

[r]

This standard contains the essential welding variables for carbon steel plate and pipe in the thickness range of 16 through3/4 in., using manual shielded metal arc welding. It cites

Modules across their own purpose sales is to make educated forecasts and utility of sale of an invoice number that in sale of payment for leaving the template?. Little reason to

Key words: bile duct proliferation, chlordanes, dichlorodiphenyltrichloroethane, dieldrin, East Greenland, HCB, hexacyclohexanes, Ito cells, lipid granulomas, liver, mononuclear

Newby indicated that he had no problem with the Department’s proposed language change.. O’Malley indicated that the language reflects the Department’s policy for a number

LINEST is an array function, which means that when you enter the formula in one cell, multiple cells will be used for the output of the function.. To specify that LINEST is an