Академический Документы
Профессиональный Документы
Культура Документы
cover
Front cover
Student Exercises
with hints
ERC 4.0
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:
Active Memory
BladeCenter
DS8000
Enterprise Storage Server
HACMP
i5/OS
POWER Hypervisor
Power
PowerVM
POWER7
SystemMirror
AIX 6
DS4000
Electronic Service Agent
Express
IBM Systems Director Active
Energy Manager
Notes
Power Systems
PowerHA
POWER6
pSeries
Tivoli
AIX
DS6000
EnergyScale
Focal Point
Initiate
Passport Advantage
Power Systems Software
PowerPC
POWER7+
Redbooks
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.
V8.0
Student Exercises with hints
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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part 1: Update the Virtual I/O Server software . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part 2: Using viosbr to backup the virtual and logical configuration . . . . . . . . . . .
Part 3: Using cron to schedule tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-1
10-2
10-4
10-7
Exercise 11. (Optional) File-backed virtual disk and virtual media repository
configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-1
Part 1: Create a file-backed virtual disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Part 2: Create a virtual media repository and a blank virtual DVD-RAM . . . . . . . 11-7
Contents
iii
Part 3: Backup/restore your client LPAR OS to the virtual optical media device . 11-8
iv
Power Virtualization I
V8.0
Student Exercises with hints
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:
Active Memory
BladeCenter
DS8000
Enterprise Storage Server
HACMP
i5/OS
POWER Hypervisor
Power
PowerVM
POWER7
SystemMirror
AIX 6
DS4000
Electronic Service Agent
Express
IBM Systems Director Active
Energy Manager
Power Systems
PowerHA
POWER6
pSeries
Tivoli
AIX
DS6000
EnergyScale
Focal Point
Passport Advantage
Power Systems Software
PowerPC
POWER7+
Redbooks
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.
Trademarks
vi
Power Virtualization I
V7.0.2
Student Exercises with hints
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.
Exercises description
vii
viii
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
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.
1-1
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
End of exercise
1-3
1-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
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.
Utility for running Telnet or SSH.
2-1
Power Virtualization I
V7.0.2
Student Exercises with hints
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.
2-3
The Processors tab should now look like the example below.
2-4
Power Virtualization I
V7.0.2
Student Exercises with hints
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
resources settings for your partition.
2-5
2-6
Power Virtualization I
V7.0.2
Student Exercises with hints
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
and choose Properties on the Tasks menu or from the Tasks pad. Click the
2-7
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
proc0 Available 00-00 Processor
2-8
Power Virtualization I
V7.0.2
Student Exercises with hints
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
__ 14. Dynamically add two more virtual processors. Run the lsdev -c processor
command again. What does the output show?
To dynamically add two more virtual processors, go to the Systems
Management application on the HMC. In the LPAR table view, select the
partition and choose Dynamic Logical Partitioning > Processor > Add or
Remove on the menu.
2-9
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
V7.0.2
Student Exercises with hints
EXempty
: 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
%user %sys %wait %idle physc %entc lbusy
app vcsw phint
----- ----- ------ ------ ----- ----- -------- ----- ----57.2
2.8
0.0
40.0 1.34 222.5
16.2 13.28 13521
0
57.1
3.0
0.0
39.9 1.34 223.8
3.6 13.17 2252
0
57.3
2.8
0.0
39.9 1.34 223.7
16.6 13.17 13680
0
57.6
2.8
0.0
39.6 1.34 223.6
17.1 13.81 13707
0
2-11
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?
V7.0.2
Student Exercises with hints
EXempty
End of exercise
2-13
V7.0.2
Student Exercises with hints
EXempty
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.
A system from which to start an SSH session to the HMC.
3-1
3-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
Then select the Configure button and view the various attributes of the HEA. Keep
the default values. How many logical ports per physical port group are available to
be configured on your system?
You can tell by looking at the MCS value in the Host Ethernet Adapters window.
Given the example shown in the hints above, the MCS value is two and there is
no logical port assigned to an LPAR; therefore, available logical port IDs are one
through eight.
You might want to select the Help button to get additional information
about these attributes.
Select OK or Cancel to exit.
__ 5. Close the Host Ethernet Adapters window.
__ 6. Open a terminal window to your LPAR, and run the lsdev -c adapter -S a AIX
command to see if there are any available host Ethernet devices. There should not
be any. Use the -S a flag so that devices listed as Defined do not appear in the
lsdev output.
3-3
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
Student LPAR Name
HEA
HEA
number:
Physical Physical
Port ID Port Group
First managed system
student 1
partition1
0
1
student 2
partition2
0
1
student 3
partition3
0
1
student 4
partition4
0
1
student 5
partition5
0
1
student 6
partition6
0
1
Second managed system
student 7
partition7
0
1
student 8
partition8
0
1
student 9
partition9
0
1
student 10 partition10
0
1
student 11 partition11
0
1
student 12 partition12
0
1
HEA
logical
Port ID
1
2
3
4
5
6
1
2
3
4
5
6
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.
3-4
Power Virtualization I
V7.0.2
Student Exercises with hints
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:
3-5
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
End of exercise
3-7
3-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
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.
A system from which to start SSH sessions to the HMC and
partitions.
4-1
4-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
one through student six. A similar partition configuration is set up on another system for
students seven to twelve.
POWER Hypervisor
__ 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
Student
Managed
Port
IP address
number
system
default
VLAN ID
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
6
first
3
1.1.1.6
7
second
1
1.1.1.7
8
second
1
1.1.1.8
9
second
2
1.1.1.9
10
second
2
1.1.1.10
11
second
3
1.1.1.11
Copyright IBM Corp. 2009, 2013
4-3
Student
number
Managed
system
Port
IP address
default
VLAN ID
12
second
3
1.1.1.12
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:
4-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
The Virtual Adapter dialog screen should now look like this:
Adapter (14104003)
Adapter (14104003)
Adapter (14104003)
Adapter (14104003)
In the following steps, you will use commands to check the virtual Ethernet
configuration from the AIX command-line interface.
__ 4. Use the entstat -d command to check the port VLAN ID of the virtual Ethernet
adapter.
4-5
__ 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.
4-6
Power Virtualization I
V7.0.2
Student Exercises with hints
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.
4-7
Gateway
Flags
Refs
Use If
655 en2
0 en3
3 en3
2 lo0
0 en3
0 en2
1099
8
0
16776
en2
lo0
en2
lo0
Exp Groups
__ 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, 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:
put "|dd if=/dev/zero bs=1M count=1" /dev/null
4-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
4-9
__ 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
Student
IEEE 802.1Q
IP Address for the
number
Additional VLAN ID
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
Click the Systems Management link in the HMC navigation area.
Expand the Servers list so that you can select your managed system.
4-10 Power Virtualization I
V7.0.2
Student Exercises with hints
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?
_________________________________________________________________
4-11
__ 18. List all Ethernet adapters in your partition. Is there a new AIX VLAN device entry
now? ____________________________________________________________
V7.0.2
Student Exercises with hints
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
(14104003)
ent1
Available 00-01
(14104003)
ent2
Available
ent3
Available
ent4
Available
__ 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, 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.
End of exercise
4-13
V7.0.2
Student Exercises with hints
EXempty
Introduction
This exercise is presented in two topics.
The first topic contains two parts:
- Part 1: Create the VIO server partition
- Part 2: Install the virtual I/O server operating system
The second topic contains four parts:
- Part 1: Configure an SEA on the virtual I/O server
- Part 2: Configure a VSCSI disk on the virtual I/O server
- Part 3: Create the client LPAR
Copyright IBM Corp. 2009, 2013
5-1
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.
A system from which to start an SSH session to the HMC.
5-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
Notice that two kinds of LUNs are assigned to the Fibre Channel adapter of your VIO
Server partition.
Non-shared LUNs (LUNS assigned to only one Fibre Channel adapter):
One of the non-shared LUNs will be used as the rootvg disk for the installation of
the VIO server operating system. It should be 30 GB in size.
The other non-shared LUN (8 GB in size) will be used in an optional exercise for
creating a file backed pool.
Copyright IBM Corp. 2009, 2013
5-3
5-4
Power Virtualization I
V7.0.2
Student Exercises with hints
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
VIO server
server partition
partition ID
name
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
The following table shows all the parameters and values needed for the
configuration of your VIO server partition. You will use this information to fill in the
corresponding fields of the Create LPAR Wizard. All the wizard steps are listed in
the left column of the table.
5-5
Processing Settings
Memory Settings
I/O
5-6
Power Virtualization I
Profile name
Shared
Minimum processing units
Desired processing units
Maximum processing units
Shared processor pool
Minimum virtual processors
Desired virtual processors
Maximum virtual processors
Uncapped
Weight
Minimum memory
Desired memory
Maximum memory
Active Memory Expansion
Two slots must be added as
required (One Fibre Channel and
one Ethernet adapter).
Value
Your student ID
Provided by the
instructor
Check or uncheck
(does not matter, this
is for partition
mobility)
Normal
0.1
0.6
1.0
DefaultPool (0)
1
1
10
Yes (check box)
128
1 GB
2 GB
4 GB
Not checked
Refer to the values
recorded in Step 1.
V7.0.2
Student Exercises with hints
EXempty
Wizard step
Virtual Adapters
Parameter or action
Value
Maximum virtual adapters
50
Actions -> Create Virtual
Adapter -> Ethernet Adapter...
Adapter ID
11
ETHERNET0
VSwitch
(Default)
Student number (for
Port Virtual Ethernet
example, student
seven uses VLAN 7)
This adapter is required for
Not checked
partition activation.
IEEE 802.1q
Not checked
Use this adapter for Ethernet
Checked
bridging
Trunk priority
1
Actions -> Create Virtual
Adapter -> SCSI Adapter...
Adapter ID
12
This adapter is required for
Not checked
partition activation.
Keep the option
Any client partition can connect.
selected.
Skip this step.
Skip this step.
Boot modes
Normal
To create a new partition, click the Systems Management link in the HMC
navigation area, click Servers, and then select your managed system.
In the Tasks pad, click Configuration > Create Logical Partition > VIO Server.
When the Create Lpar Wizard opens, name your partition using the information
provided by your instructor. Use your student number as the partition ID.
5-7
Click Next and proceed to use the wizard to create the partition, using the
specified profile name, processor and memory settings, and I/O physical slot
resources. Remember that selecting an I/O slot is not enough; you need to click
Add as Required above the list.
Click Actions to create the virtual adapters. Continue to click Next until you
reach the Profile Summary panel. Remember to set 'Maximum virtual adapters'
to 50, because you will need these adapter IDs in subsequent exercises.
You can go back to a previous wizard step at any time by clicking in the left
navigation pane.
Skip the LHEA step. Click Next.
Skip the HCA step. Click Next.
Verify that the configuration is what you want, and then click Finish.
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ 5. You need an IP address for the VIO server partition, and you need to know the NIM
server IP address for the network boot operation. Also, an IP address will be needed
in the next part of the exercise for the AIX virtual client partition. Ask your instructor
for your assigned IP addresses. Enter them in the following table.
Table 6: IP addresses for your partitions
VIO server IP address
NIM server IP address
Netmask
Gateway address
AIX client IP address
__ 6. From the Server Management application of the HMC, activate your Virtual I/O
Server LPAR using the SMS boot mode.
On the HMC, click the name of your managed system and select your partition
in the working area.
From the Tasks pad or the Context menu, click Operations > Activate >
Profile. The Activate Partition menu opens with a selection of partition profiles.
Ensure that the correct profile is highlighted.
Select Open a terminal window or console session to open a virtual terminal
window.
Click Advanced to open the advanced options menu.
For the boot mode, select SMS.
Click OK and then OK again to start the activation.
__ 7. Interact with the menus. Choose the Setup Remote IPL (Initial Program Load)
menu option, and select the network adapter device. You should see the physical
Ethernet adapter, which might be a dual port device, and the virtual Ethernet adapter
(interpartition logical LAN). Choose the first port of the physical adapter, and press
5-9
Enter. In the following example, the item number two must be chosen to select port
1 of the physical adapter.
__ 8. Select the IP Protocol Version of IPv4. Select the Network Service of BOOTP.
__ 9. On the Network Parameters panel, select 1 IP Parameters.
__ 10. In the next screen (IP Parameters), there are four options. Type the number of the
option you want to alter. For example, press 1 and then the Enter key to alter the
Client IP address. Type the value, and then press Enter.
For the values to enter, refer to Table 6 on page 5-9. If uncertain, ask your instructor
for help.
__ a. Enter your virtual I/O server's IP address for the client IP address. Do not enter
your AIX partition's IP address. Doing so will result in having an AIX image
installed for the VIOS rather than a VIOS image. The NIM server uses the client
IP address to identify what image to serve to that client.
__ b. Enter the NIM server's IP address for the server IP address.
__ c. Enter the gateway IP address (if necessary for NIM to VIOS network
communication).
__ d. Enter the subnet mask. The VIOS will use the same subnet mask as your AIX
LPAR.
__ e. For example:
V7.0.2
Student Exercises with hints
EXempty
When done, press the Esc key to go to the Network Parameters menu. Press 2 to
select 2 Adapter Configuration. Disable the spanning tree (if it is not already
disabled). Press 2 then 2 again to disable. Note that the name of the option is
Spanning Tree Enabled. This is always the option name regardless of whether it is
enabled. Press Esc to go back to the Adapter Configuration.
__ 11. Ask your instructor to confirm the speed value. Suggested values for the
speed/duplex settings are auto/auto. Press Esc to go back to the Adapter
Configuration menu. Press Esc again to go back to the Network Parameters
menu.
__ 12. Press 3 to select 3 Ping Test. Press 1 to execute the ping test. Wait for a few
seconds, and the message Ping Success should display if the ping test succeeded.
Press any key to return to the Ping Test screen. Otherwise, talk to your instructor in
case of a ping test failure.
__ 13. Press M to go back to the Main Menu; then select 5 Select Boot Options.
__ 14. Specify the PCI Ethernet adapter to be the boot device. Press 1 to select Select
Install/Boot Device. Select 6 Network, and select 1 BOOTP. In the next screen
(Select Device), the Ethernet adapters are listed. Choose the same adapter as the
one you have just configured in the previous steps. Type the corresponding number,
and press Enter.
In the following example, item number two must be chosen to select Port 1 of the
physical adapter.
__ 15. Press 2 for Normal Mode Boot; then select 1 Yes when asked Are you sure you
want to edit System Management Services? to exit SMS and do a Normal Mode
boot.
__ 16. You will see the network boot output in the window. Eventually, you will see the
Virtual I/O Server installation process. Respond as you normally would to select the
system console and language.
__ 17. Your terminal screen should display the Installation and Maintenance screen.
Press 2 and Enter to select Change/Show Installation Settings and Install.
__ 18. Press 1 and Enter to select Disks where you want to install(hdisk0). You will notice
that several disks are available for selection. Be careful to select the disk with the
size of 30720 MB (30 GB). There should only be one disk of this size.
Copyright IBM Corp. 2009, 2013
5-11
__ 19. Accept your disk choice by pressing 0 to continue with choices listed above.
__ 20. You should be back at the System Backup Installation and Settings panel. Start
the installation by selecting 0 to continue with the installation process. When the
installation completes, the LPAR reboots to a logon screen.
Depending on your environment, the install might take as little as six minutes.
__ 21. The partition will reboot when the installation is complete. When the installation
completes and the LPAR reboots, log in as padmin and use the password provided
by your instructor.
__ 22. Use the configuration assistant command for the VIOS, cfgassist, to set the date
and time zone for the partition. The cfgassist command is menu-driven and allows
administrators to manage some of the initial setup requirements of the Virtual I/O
Server. The new time zone will take effect after the next time the operating system
reboots. You can also use the chdate command to change the date and time zone.
V7.0.2
Student Exercises with hints
EXempty
5-13
Security Commands
lsfailedlogin
lsgcl
viosecure
mkldap
ldapadd
ldapsearch
snmpv3_ssw
mkkrb5clnt
LAN Commands
cfglnagg
cfgnamesrv
entstat
fcstat
hostmap
hostname
lsnetsvc
lstcpip
mktcpip
chtcpip
netstat
optimizenet
ping
prepdev
rmtcpip
seastat
startnetsvc
stopnetsvc
traceroute
vasistat
UserID Commands
chuser
lsuser
mkuser
passwd
rmuser
Device Commands
chdev
chkdev
chpath
cfgdev
lsdev
lsmap
lsnports
5-14 Power Virtualization I
Maintenance Commands
alt_root_vg
backup
backupios
bootlist
cattracerpt
chdate
chlang
cfgassist
cl_snmp
cpvdi
dsmc
diagmenu
errlog
fsck
invscout
ldfware
loginmsg
lsfware
lslparinfo
motd
mount
pdump
Copyright IBM Corp. 2009, 2013
V7.0.2
Student Exercises with hints
EXempty
lspath
mkpath
mkvdev
mkvt
rmdev
rmpath
rmvdev
rmvt
vfcmap
Physical Volume Commands
lspv
migratepv
Logical Volume Commands
chlv
cplv
extendlv
lslv
mklv
mklvcopy
rmlv
rmlvcopy
Volume Group Commands
activatevg
chvg
deactivatevg
exportvg
extendvg
importvg
lsvg
mirrorios
mkvg
redefvg
reducevg
syncvg
unmirrorios
Storage Pool Commands
chbdsp
chsp
lssp
mkbdsp
replphyvol
restore
restorevgstruct
save_base
savevgstruct
showmount
shutdown
snap
snmp_info
snmp_trap
startsysdump
starttrace
stoptrace
svmon
sysstat
topas
uname
unmount
viostat
vmstat
viosbr
wkldmgr
wkldagent
wkldout
artexget
artexset
artexmerge
artexlist
artexdiff
Monitoring Commands
cfgsvc
lssvc
postprocesssvc
startsvc
stopsvc
Shell Commands
awk
cat
chmod
clear
cp
crontab
5-15
mksp
rmbdsp
rmsp
Virtual Media Commands
chrep
chvopt
loadopt
lsrep
lsvopt
mkrep
mkvopt
rmrep
rmvopt
unloadopt
date
ftp
grep
head
ls
man
mkdir
more
mv
rm
sed
stty
tail
tee
vi
wall
wc
who
__ 24. On occasion, you might need the oem_setup_env command to access the AIX root
user shell. From here, you can invoke AIX commands and access SMIT if desired.
Type exit to get out of the oem_setup_env shell.
The purpose of this oem_setup_env command is to allow customers to install OEM
software needed to support storage solutions. All configuration commands of the
virtual I/O server should be performed through the padmin user CLI rather than the
root user CLI.
__ 25. Let your instructor know when you have completed the exercise topic.
V7.0.2
Student Exercises with hints
EXempty
5-17
as the VLAN ID. Use the -migrate and -auto flags of the mkvdev command to
migrate the IP configuration from the physical Ethernet adapter to the generated
SEA interface. This will generate an entX adapter (where X is the next numeric suffix
in the series used for the Ethernet adapters) and the related interfaces, enX and
etX.
Be aware that you cannot configure an IP address on the interfaces related to either
the physical Ethernet adapter or the virtual Ethernet adapter which are being used
by the SEA.
The following example creates an SEA that maps the physical Ethernet adapter
ent0 to the virtual Ethernet adapter ent2, using ent2 as the default adapter and 1
as the default VLAN ID. The IP configuration from the interface en0 is migrated
to the interface en3 of the generated SEA.
$ mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 1 -migrate
-auto
en0 changed
ent3 Available
en3
et3
en3 changed
inet0 changed
In this example, the virtual Ethernet switch will use this SEA to bridge any traffic
on VLAN ID 1 that needs to be sent to the physical network.
__ 30. List the virtual adapters. You should see the SEA. Record its device name:
$ lsdev -virtual
__ 31. Use the entstat command to list the Ethernet statistics of the SEA.
Use the command:
entstat -all <SEA adapter> | more
__ 32. Ping your HMC to test that your configuration worked.
Here is an example of the ping command and output.
ping 10.6.140.40 2
PING 10.6.140.40: (10.6.140.40): 56 data bytes
64 bytes from 10.6.140.40: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.6.140.40: icmp_seq=1 ttl=255 time=0 ms
----10.6.140.40 PING Statistics---2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
__ 33. Use the lstcpip command to display the routing table.
V7.0.2
Student Exercises with hints
EXempty
Note the virtual adapter slot number that you defined when creating the VIOS
partition.
__ 35. Now check to see that you have available disks on your VIOS partition. The number
of disk devices visible will depend on the specific configuration of the systems being
used for the class. It is expected that you should see eight hdisk devices in the
output of the lsdev command. For example:
$ lsdev -type disk
name
hdisk0
hdisk1
hdisk2
hdisk3
hdisk4
hdisk5
hdisk6
hdisk7
Copyright IBM Corp. 2009, 2013
status
Available
Available
Available
Available
Available
Available
Available
Available
description
MPIO Other FC
MPIO Other FC
MPIO Other FC
MPIO Other FC
MPIO Other FC
MPIO Other FC
MPIO Other FC
MPIO Other FC
SCSI
SCSI
SCSI
SCSI
SCSI
SCSI
SCSI
SCSI
Disk
Disk
Disk
Disk
Disk
Disk
Disk
Disk
Drive
Drive
Drive
Drive
Drive
Drive
Drive
Drive
5-19
Each VIOS partition should be configured with two non-shared LUNs. If eight disks
are visible, this means there are six shared LUNs visible in the VIOS. In some
environments, there may be twelve shared LUNs visible on each VIOS.
__ 36. Now you must create a virtual target device that maps one FC SCSI physical disk to
the VSCSI server adapter defined on your virtual I/O server. This virtual disk will be
used for your AIX client LPAR operating system installation.
One LUN of 10 GB size has been defined during the lab setup for each student, and
these LUNs have been assigned to all Fibre Channel adapters of your managed
system (shared LUNs). This configuration will be needed for the next lab exercise
(dual VIO server environment with MPIO setup).
Each student on a managed system will use one of these LUNs; this step and the
information in Table 7 will determine the LUN assignment for each student.
__ a. First, check which physical hdisk devices are of 10 GB size. Execute the
following script from your Virtual I/O Server CLI; it displays disk size in MB:
lsdev | grep hdisk | while read a b
do
print "$a \c"
echo bootinfo -s $a | oem_setup_env
done
Here is an output example; hdisk1 to hdisk6 are 10 GB in size.
hdisk0
hdisk1
hdisk2
hdisk3
hdisk4
hdisk5
hdisk6
hdisk7
30720
10240
10240
10240
10240
10240
10240
8192
V7.0.2
Student Exercises with hints
EXempty
__ c. Select from the table the hdisk that you will use as a backing device for your
client partition; for example, based on the previous command output:
The normal lab setup for this class has six students sharing a single managed
system. When the class has twelve students, student 7 to student 12 are
configured on a second managed system. Each managed system has a
separate set of six shared LUNs, so the 10 GB devices visible to students 1 to 6
are separate from the set of devices visible to students 7 to 12.
__ d. Run the following command: lsdev -dev hdisk# -attr | grep lun_id
(where hdisk# is your selected disk), and write down the unique lun_id.
lun_id: ________________________________________________________
Here is an example of the command and output.
$ lsdev -dev hdisk3 -attr | grep lun_id
lun_id
0x3000000000000
Logical Unit Number ID False
Note
The hdisk name (hdiskX) is defined during the configuration sequence (cfgmgr), and
the associated disk number is related to the configuration order. The configuration is
done in order of increasing lun_id values of the LUNs assigned to the Fibre Channel
adapter.
You can run the following command: lsdev -dev hdisk# -attr | grep lun_id
This will show you the unique lun_id for the related LUN.
__ 37. Modify the reserve_policy parameter of your 10 GB disk devices from single_path to
no_reserve. These modifications are needed for the next exercises (MPIO setup in a
dual VIOS environment), and cannot be performed when the disk is in use. Run the
following command for this hdisk of 10 GB:
$ chdev -dev <hdisk#> -attr reserve_policy=no_reserve
__ 38. Create the virtual target device using the following command:
mkvdev -vdev hdiskY -vadapter vhost0 -dev lparX_vtd
(where hdiskY is your hdisk number and X is your student number).
Here is an example mkvdev command.
$ mkvdev -vdev hdisk2 -vadapter vhost0 -dev lpar2_vtd
lpar2_vtd Available
5-21
__ 39. List your virtual adapter device mapping by using the lsmap command. View the
output details, and check the lun_id in the physical location field.
Here is an example of the output from the lsmap command:
$ lsmap -all
SVSA
Physloc
Client Partition ID
-------------- ----------------------------------------- -----------------vhost0
U8233.E8B.1084AER-V1-C12
0x00000000
VTD
lpar1_vtd
Status
Available
LUN
0x8100000000000000
Backing device
hdisk1
Physloc
U5877.001.RCH8623-P1-C6-T1-W500507680140B855-L1000000000000
PVID
VG
00f784aee0fd700a
rootvg
none
none
none
none
none
none
none
None
None
None
None
None
None
None
Remember that you must be careful before using disks of the VIO server for LVM
operations. They might have no volume group information shown but are possibly
being used as virtual disks for client LPARs. For example, running importvg -vg
myvg hdisk1 on the VIOS CLI will destroy the rootvg of the corresponding client
partition.
V7.0.2
Student Exercises with hints
EXempty
part of the LPAR name. For all other LPAR configuration parameters (partition profile
name, processor settings, memory, and so on), refer to Table 9 on page 5-24.
Skip the physical I/O, and add a virtual Ethernet adapter and a VCSI client adapter.
Note
Management can be simplified by keeping VSCSI adapter slot numbers consistent
between the virtual I/O server and the client partition.
Match the VSCSI client adapter slot number to the slot number of the VSCSI server
adapter (slot number is given in the table). Have this VSCSI client adapter connect
to the VIOS partition's VSCSI server adapter. For example, you could map slot 12
on the VIOS partition to slot 12 on this AIX LPAR.
Table 8: LPAR configuration
Client LPAR
Student number
Client LPAR ID
name
First managed server
Student 1
lpar1
21
Student 2
lpar2
22
Student 3
lpar3
23
Student 4
lpar4
24
Student 5
lpar5
25
Student 6
lpar6
26
Second managed server
Student 7
lpar7
27
Student 8
lpar8
28
Student 9
lpar9
29
Student 10
lpar10
30
Student 11
lpar11
31
Student 12
lpar12
32
The following table shows all the parameters and values needed for the
configuration of your AIX partition. You will use this information to fill in the
corresponding fields of the Create LPAR Wizard. All the wizard steps are listed in
the left column of the table.
5-23
Parameter or Action
Value
Your student ID + 20
(see Table 8 above)
lparX (X is your
student ID)
Normal
Partition ID
Create Partition
Partition name
Partition Profile
Processors
Processing Settings
Memory Settings
I/O
Profile name
Shared
Minimum processing units
Desired processing units
Maximum processing units
Shared Processor Pool
Minimum virtual processors
Desired virtual processors
Maximum virtual processors
Uncapped
Weight
0.1
0.6
1.0
DefaultPool (0)
1
1
10
Yes (check box)
128
Minimum memory
Desired memory
Maximum memory
Active Memory Expansion
Skip this step, and click Next.
1 GB
2 GB
4 GB
Not checked
V7.0.2
Student Exercises with hints
EXempty
Wizard step
Parameter or Action
Value
Maximum virtual adapters
50
Actions -> Create Virtual Adapter
-> Ethernet Adapter...
Adapter ID
11
ETHERNET0
VSwitch
(Default)
Student number (for
Port Virtual Ethernet
example, student
seven uses VLAN 7)
This adapter is required for virtual
Not checked
server activation.
IEEE 802.1q
Not checked
Use this adapter for Ethernet
Not checked
bridging
Actions -> Create Virtual Adapter
-> SCSI Adapter...
Adapter ID
12
This adapter is required for
Not checked
partition activation.
Server partition
Select your VIOS
Server adapter ID
12
Virtual Adapters
Normal
On the HMC, select your managed system and choose Create Logical Partition
> AIX or Linux on the Tasks menu.
5-25
In the first wizard panel, enter the partition ID and the partition name from the
LPAR configuration table.
V7.0.2
Student Exercises with hints
EXempty
Select your VIOS partition in the Server partition field, and specify the VSCSI
server adapter slot number in the Server adapter ID field. Click OK > Next.
Here is an example of this screen.
If you are not certain which virtual server SCSI adapter to use here, click System
VIOS Info to access the Virtual I/O Server Information window, and select a
virtual server SCSI adapter from here. Click OK to return to the previous pop-up
window.
Here is an example of this screen.
Skip the Logical Host Ethernet Adapters (LHEA) step. Click Next.
Skip the HCA step. Click Next.
Skip the Optional Settings step, and click Finish on the Profile Summary panel.
__ 42. Before activating the client LPAR, modify the VSCSI server adapter configuration on
your virtual I/O server so that it allows only the one client partition and has the
proper client slot number.
Click your managed system name and select your Virtual I/O Server partition in
the work area. Using the Task pad or the Context menu, click Configuration >
Manage Profiles. Select your Normal profile; then select Edit in the Actions
menu.
5-27
On the Virtual Adapters tab, in the listing of the virtual adapters, select the
server SCSI adapter you created, and click Actions > Edit.
Click Only selected client partition can connect.
Use the menu to choose the name of your client partition, such as lpar1.
For the client adapter ID, enter the slot number that was created for the virtual
client SCSI adapter. In the following example, slot 12 was entered:
Click OK and OK again to modify this adapter in the profile and close the profile
properties window.
V7.0.2
Student Exercises with hints
EXempty
Note
For your information, you can also activate your partition using the lpar_netboot
command from the HMC command-line interface. This HMC command instructs a
partition to boot from the network or retrieves MAC address and physical location
code from network adapters for a partition. It could be useful for operation
automation and scripting.
5-29
virtual Ethernet adapter. Type 1 and press Enter to select the virtual Ethernet
adapter.
__ 47. Select the IP Protocol Version of IPv4; then select the Network Service of
BOOTP.
__ 48. On the Network Parameters panel, select 1 IP Parameters.
__ 49. In the next screen (IP Parameters), there are four options. Type the number of the
option you want to alter. For example, press 1 and then Enter to alter the Client IP
address. Type the value, and then press Enter.
For the values to enter, refer to the information recorded in Table 10 on page 5-28. If
uncertain, ask your instructor for help.
__ a. Type your AIX partition's IP address for the client IP address.
__ b. Type the NIM server's IP address for the server IP address.
__ c. Type the gateway IP address. This field is not required if both client and server
are defined on the same subnet.
__ d. Type the subnet mask.
When done, press the Esc key to go to the Network Parameters menu. Press 2 to
select 2 Adapter Configuration. Disable the spanning tree (if it is not already
disabled). Press 2 and then 2 again to disable. Note that the name of the option is
Spanning Tree Enabled. (This is always the option name regardless of whether it is
enabled.) Press Esc to go back to the Network Parameters menu.
__ 50. Press 3 to select 3 Ping Test. Press 1 to execute the ping test. Wait a few seconds,
and Ping Success should display if the ping test succeeded. Press any key to return
to the Ping Test screen. Talk to your instructor if you have a ping failure and are
uncertain why the ping test failed.
__ 51. Press Esc to escape the Ping Test screen, and press M to go back to the Main
Menu; then select 5 Select Boot Options.
__ 52. Specify the virtual Ethernet adapter to be the boot device. Press 1 to select 1 Select
Install/Boot Device. Select 6 Network, 1 BOOTP, and then 1 to select the virtual
Ethernet adapter. Press 2 for Normal Mode Boot; then select 1 Yes when asked
Are you sure you want to edit System Management Services? to exit SMS and
do a normal mode boot.
__ 53. You will see the network boot output in the window. Eventually, you will see the AIX
installation process. Respond as you normally would to select the system console
and language.
__ 54. Your terminal screen should display the Installation and Maintenance screen. Type 2
and press Enter to select Change/Show Installation Settings and Install.
V7.0.2
Student Exercises with hints
EXempty
__ 55. Press 1 and Enter to select disks where you want to install (hdisk0). Verify that you
have a 10 GB disk to use as the AIX partitions rootvg. You should only have one disk
to choose from. This is the virtual disk being served from your VIO server.
__ 56. Accept this disk by pressing 0 to continue with choices listed above.
__ 57. You should be back at the System Backup Installation and Settings panel. Start
the installation by selecting 0 to continue with the choices.
Depending on your environment, the install might take as little as five to ten minutes.
__ 58. When the client partition is booted, log in using root.
__ 59. Using the lsdev command, list the disk device.
To list the disk devices, use lsdev -Cc disk.
Output should now list Virtual SCSI Disk Drive. Here is an example output; notice
the hdisk0 description.
# lsdev -Cc disk
hdisk0 Available
__ 60. Use AIX commands to examine what adapters and devices are being used by this
system. You should see that the VSCSI adapter and disk plus the virtual Ethernet
adapter are in use. The corresponding interface will likely have been configured
during OS installation.
Following are some examples of the commands you might use.
lsslot -c pci
lsdev -Cc adapter
lscfg | grep disk
ifconfig -a
__ 61. Let your instructor know when you have completed the exercise topic.
End of exercise
5-31
V7.0.2
Student Exercises with hints
EXempty
Introduction
By the end of this exercise, the students will have implemented an
SEA failover feature in a dual VIO server environment. Students will
test the failover mechanism.
Requirements
This workbook.
A workstation with a web browser and Internet connectivity for
accessing the HMC and the partitions.
An IBM POWER7 processor-based system.
6-1
Introduction
The following diagram represents the network configuration that each team will have set up
at the end of Part 3 of this exercise. The Ethernet adapter names shown in the diagram
6-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
At the beginning of this exercise, each student should have an assigned virtual I/O server
and client LPAR installed. An SEA is already defined and bridges a unique VLAN. The
bridged VLAN ID depends on the student number.
Important
An SEA implementation must be done carefully to avoid any problem in the network. For
example, mismatching SEA and SEA failover configuration or configuring control channel
adapters in different VLANs can lead to an ARP storm in the physical switches that will
completely flood your network. Here are the requirements for configuring the SEA failover
feature.
One SEA on one VIO server acts as the primary (active) adapter, and the second
SEA on the second VIOS acts as a backup (standby) adapter.
Each SEA will have one virtual Ethernet adapter with the Use this adapter for
Ethernet bridging flag (previously known as the Access external network flag,
or trunk flag) checked.
6-3
- This adapter on both the SEAs must have the same PVID, but will have a
different priority value. If additional IEEE 802.1q VLAN IDs are defined for the
adapter, they must be the same on both VIO servers.
- The priority value defines which of the two SEAs will be the primary and
which will be the backup. The lower the numerical priority value, the higher
the importance, for example an adapter with priority value one will have the
highest importance.
An additional virtual Ethernet adapter, which belongs to a unique VLAN on the
system, is used to create the control channel between the SEAs and must be
specified in each SEA when configured in ha_mode.
- The purpose of this control channel is to communicate between the two SEA
adapters to determine when a failover should take place.
In order to set up the SEA failover feature, two virtual I/O servers must be used, and each
SEA in these VIO servers must bridge the same VLAN. You need to plan this SEA
configuration as a team of two students. Your actual VLAN configuration needs to be
changed to match the VLAN IDs referenced in Table 11 below. This table must be your
reference when setting up the SEA.
Table 11: Team numbers and VLAN IDs
Team #
Students #
Primary VIOS
trunk priority 1
Team 1
Student1
vios1
Student2
Team 2
Student3
vios3
Student4
Team 3
Student5
vios5
Student6
Team 4
Student7
vios7
Student8
Team 5
Student9
vios9
Student10
Team 6
Student11
vios11
Student12
The exercise is presented in three parts.
Secondary
Bridging Control
VIOS
VLAN ID channel
trunk priority 2
VLAN ID
vios2
10
19
vios4
20
29
vios6
30
39
vios8
40
49
vios10
50
59
vios12
60
69
6-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
In this part, you will synchronize with your teammate to create the SEA device on
your assigned VIO server.
Part 3: Testing the SEA failover feature
You will work as a team to shut down some components in the configuration and
check whether the failover occurs.
Part 4: This is an optional exercise where you set the VIO IP address on an
additional virtual Ethernet adapter.
6-5
6-6
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
On the Virtual Adapters tab, select the virtual Ethernet adapter (the adapter ID
should be 11), and use the Edit option on the Actions menu to edit the Ethernet
adapter properties.
In the Virtual Ethernet Adapter Properties window, change the VLANID (Port
Virtual Ethernet) to the value specified in Table 11. Set the Trunk priority to the
correct value. (If your Virtual I/O Server is primary, then the Trunk priority is 1. If
your Virtual I/O Server is secondary, the Trunk priority is 2.) Keep the Access
external network check box selected.
Do not close the Logical Partition Profile Properties window yet.
__ 7. Create an additional virtual Ethernet adapter. This adapter must belong to a unique
VLAN on the system. It will be used as a control channel between the two SEAs to
determine when a failover should take place. Use the Adapter ID 13 and set the
VLAN ID as specified in Table 11 on page 6-4. Be sure to use the default VSwitch
ETHERNET0(Default).
On the Virtual Adapters tab, use the Create Virtual Adapter > Ethernet
Adapter... option on the Actions menu to create a virtual adapter.
6-7
When the Create Virtual Ethernet Adapter window opens, set the Adapter ID
and VLAN ID as specified in Table 11 on page 6-4. Do not check the Use this
adapter for Ethernet bridging check box. Here is an example for vios1:
Click OK to save the profile changes; then close the Profile Properties window.
__ 8. Shut down your assigned VIO server. In your virtual I/O server partition's console
session, run the shutdown -force command. When shut down, use the HMC to
activate it using the Normal profile.
To activate the Virtual I/O Server, select your assigned VIO server and the
Operations > Activate > Profile task.
Select the Normal profile; then click OK.
__ 9. When activated, open a virtual terminal on your assigned Virtual I/O Server, and run
the lsdev -virtual | grep ent command. You should see two virtual Ethernet
adapters. If not, do not proceed. Check your partition profile.
Here is an example command and its output, which shows ent2 and ent3. The
Ethernet adapters might have different names in your environment.
$ lsdev -virtual | grep ent
ent2 Available Virtual I/O Ethernet Adapter (l-lan)
ent3 Available Virtual I/O Ethernet Adapter (l-lan)
__ 10. In order to be sure that you use the proper virtual Ethernet device names when
creating the SEA, run the entstat -all entX | grep VLAN command (where X is
the adapter number) in your VIO server partition's console session to check the
VLAN ID of each virtual Ethernet adapter. Record which virtual adapter will be used
for bridging your VLAN and which one will be used as the control channel adapter.
Virtual adapter to use for creating the SEA: _______________________________
6-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
6-9
On the Virtual Adapters tab, select the virtual Ethernet adapter (the adapter
ID should be 11), and use the Edit option on the Actions menu to edit the
Ethernet adapter properties.
In the Virtual Ethernet Adapter Properties window, change the VLANID to the
value specified in Table 11. Do not check the Use this adapter for Ethernet
bridging flag. Here is an example with lpar1:
V7.0.2
Student Exercises with hints
EXempty
__ 13. Activate your client LPAR using the Normal profile. When up and running, open a
virtual console and run an entstat command to check the VLAN ID of your virtual
Ethernet adapter. The value should reflect your change.
Run the following command to see the VLAN ID of the virtual Ethernet adapter
on your client partition. Here is an example with VLAN 30 on lpar3:
$ entstat -d ent0 | grep "Port VLAN ID"
Port VLAN ID: 30
6-11
V7.0.2
Student Exercises with hints
EXempty
ent4
ent0
Available
U5877.001.RCH8623-P1-C4-T1
SVEA Physloc
------ -------------------------------------------ent3 U8233.E8B.1084AER-V1-C13-T1
SEA
__ 18. Run the entstat -all <ent#> (replace ent# by your SEA name) command and
check for the following parameters:
The state of the SEA adapter (primary or backup).
Example command and output if your VIO is primary:
$ entstat -all ent4 | grep "^ *State"
State: PRIMARY
Example command and output if your VIO is backup:
$ entstat -all ent4 | grep "^ *State"
State: BACKUP
Copyright IBM Corp. 2009, 2013
6-13
The trunk adapter priority value and whether the adapter is active.
Example command and output if your VIO is Primary.
$ entstat -all ent4 | grep Priority
Priority:1
Priority:1 Active: True
Example command and output if your VIO is Backup:
$ entstat -all ent4 | grep Priority
Priority:2
Priority:2 Active: False
The control channel adapter name and its PVID.
Example command and output:
$ entstat -all ent4 | grep "Control Channel"
Control Channel PVID: 19
Control Channel Adapter: ent3
Some more SEA attributes can be seen using the lsdev command. You should
see the following information if you run the lsdev -dev ent4 -attr command:
$ lsdev -dev ent4 -attr
$ lsdev -dev ent4 -attr
attribute
value
description
user_settable
accounting
disabled Enable per-client accounting of network statistics
True
ctl_chan
ent3
Control Channel adapter for SEA failover
True
gvrp
no
Enable GARP VLAN Registration Protocol (GVRP)
True
ha_mode
auto
High Availability Mode
True
jumbo_frames no
Enable Gigabit Ethernet Jumbo Frames
True
large_receive no
Enable receive TCP segment aggregation
True
largesend
0
Enable Hardware Transmit TCP Resegmentation
True
netaddr
0
Address to ping
True
pvid
10
PVID to use for the SEA device
True
pvid_adapter ent2
Default virtual adapter to use for non-VLAN-tagged packets
True
qos_mode
disabled N/A
True
real_adapter ent0
Physical adapter associated with the SEA
True
thread
1
Thread mode enabled (1) or disabled (0)
True
virt_adapters ent2
List of virtual adapters associated with the SEA (comma separated)
True
__ 19. The SEA state can also be checked in the error log. Run the errlog command, and
check for an entry with the description BECOME PRIMARY or BECOME BACKUP,
depending if your virtual I/O server is primary or backup. List the detailed information
of these entries.
V7.0.2
Student Exercises with hints
EXempty
You should see an entry in the error log similar to the following when you issue
the errlog command on the primary VIO server:
$ errlog -ls
-------------------------------------------------LABEL:
SEAHA_PRIMARY
IDENTIFIER:
E136EAFA
Date/Time:
Sequence Number:
Machine Id:
Node Id:
Class:
Type:
WPAR:
Resource Name:
Resource Class:
Resource Type:
Location:
Description
BECOME PRIMARY
Probable Causes
BECOME PRIMARY
Failure Causes
BECOME PRIMARY
Recommended Actions
BECOME PRIMARY
Detail Data
Become the Primary SEA
6-15
You should see an entry in the error log similar to the following when you issue
the errlog command on the secondary VIO server:
$ errlog -ls
--------------------------------------------------LABEL:
SEAHA_BACKUP
IDENTIFIER:
40D97644
Date/Time:
Sequence Number:
Machine Id:
Node Id:
Class:
Type:
WPAR:
Resource Name:
Resource Class:
Resource Type:
Location:
Description
BECOME BACKUP
Probable Causes
BECOME BACKUP
Failure Causes
BECOME BACKUP
Recommended Actions
BECOME BACKUP
Detail Data
Become the Backup SEA
__ 20. Configure the shared Ethernet interface with the IP address, host name, network
mask, default gateway, and DNS server IP address (if any) that you recorded in
Step 2 on page 6-5 of this exercise. You can use the mktcpip command or the
cfgassist command to launch the SMIT menu.
Here is the syntax for the mktcpip command for the options you need to use:
mktcpip -interface Interface -hostname Hostname -inetaddr IPaddress \
[ -start ] [ -netmask nmask ] [ -gateway gway ] \
[ -nsrvaddr NameServerAddr [ -nsrvdomain Domain ] ]
Substitute the appropriate configuration information recorded earlier.
V7.0.2
Student Exercises with hints
EXempty
__ 21. Using the HMC GUI, you can have a graphical view of the overall network
configuration on your managed system. Select your managed system in the
navigation area; then select Configuration > Virtual Resources > Virtual Network
Management.
Select your managed system and then Configuration > Virtual Resources >
Virtual Network Management. In the example shown below, the VLAN IDs 3, 5,
and 10 are bridged, and you can see the name of the VIO partition and physical
adapter name configured in the SEA performing the bridging. The VLAN 10 is
bridged by two physical adapters. The two physical adapters are listed in the
order of their trunk priority. This window is a global view of the system VLAN
configuration for the selected VSwitch. In the example, the default ETHERNET0
VSwitch is selected. If you create another VSwitch, you will be able to select it
and check its VLAN configuration.
6-17
Only partitions with an available IP address that can be reached by the HMC are
listed in the window.
__ 22. When the Virtual Network Management window opens, select your VLAN ID by
clicking the radio button next to it. A detailed view of the SEAs and the partitions
should be displayed. Check that both of your team's Virtual I/O Servers are listed
with their associated SEA and priority value.
Select your managed system and then Configuration > Virtual Resources>
Virtual Network Management. A window should appear like the one shown
below. In this example, once VLAN ID 10 is selected in the VLANs table, the
additional details are displayed. The additional details consists of two tables. The
first table lists the names of the LPARs that are currently active on the selected
VLAN, along with information (device name and virtual slot number) of the virtual
adapter connected to the VLAN. The second table shows details of any Shared
Ethernet Adapters configured on the selected VLAN, including information on the
V7.0.2
Student Exercises with hints
EXempty
physical adapter (including location code), trunk priority, and the name of the VIO
partition that owns the adapter.
6-19
Issue the chdev command to change the ha_mode attribute. (Your SEA name
might be different in your configuration.)
$ chdev -dev ent4 -attr ha_mode=standby
ent4 changed
__ 25. Use the entstat command to check whether the failover was successful. In your
VIO server partition with the primary adapter's console session, the status should
have changed from PRIMARY to BACKUP. Perform the checking in the other VIO
server; the status should have changed from BACKUP to PRIMARY.
You should see the following if you issue the entstat command on the VIO
server with the trunk priority of one (your SEA name might be different in your
configuration):
$ entstat -all ent4 | grep "^ *State"
State: BACKUP
You should see the following if you issue the entstat command on the VIO
server with the trunk priority of two (your SEA name might be different in your
configuration):
$ entstat -all ent4 | grep "^ *State"
State: PRIMARY
Optionally, you can check the active status of the trunk adapter. You should see
the following information when running the entstat command on the VIO server
with the trunk priority one:
$ entstat -all ent4 | grep Active
Priority: 1 Active: False
You should see the following information when running the entstat command
on the VIO server with the trunk priority two:
$ entstat -all ent4 | grep Active
Priority: 2 Active: True
__ 26. Check in the error log for a new entry that shows the status change. You should
notice the entry BECOME BACKUP.
You should see the following if you issue the errlog command on the VIO server
with the trunk priority one:
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
40D97644
0108172713 I H ent4
BECOME BACKUP
You should see the following if you issue the errlog command on the VIO server
with the trunk priority two:
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
E136EAFA
0108172713 I H ent4
BECOME PRIMARY
V7.0.2
Student Exercises with hints
EXempty
__ 27. Change the ha_mode back from standby to auto. Use the entstat command to
check whether the fallback is successful.
Check for the ping command running in your client LPARs. Note that you might
experience up to 30 seconds of delay in fallback when using SEA failover. The
behavior depends on the physical network switch and the spanning tree settings.
$ chdev -dev ent4 -attr ha_mode=auto
ent4 changed
__ 28. Test the SEA failover by performing a shutdown of the VIO server with the primary
trunk adapter. Be sure to first shut down the client LPAR that has a VSCSI disk
served by this VIO server. Wait for the AIX LPAR to have a state of Not Activated in
the HMC interface before shutting down the VIO server.
Open a virtual console on the client LPAR and run the shutdown command.
# shutdown -F
Open a virtual console on the VIO server and run the shutdown command.
$ shutdown -force
__ 29. On the running VIO server, use the entstat command (entstat -all
<SEA_adapter> | grep -i state) to check whether the SEA has failed over to the
standby adapter.
__ 30. Activate the VIO server that was previously shut down. When the VIO server has
booted, login as padmin and use the entstat command to check whether the SEA
has failed back to the primary adapter.
After a reactivation of the VIO server, the SEA always fails back to the VIO with
the primary adapter.
__ 31. Activate the client LPAR that was previously shut down.
__ 32. That is the end of part three of the exercise. Notify your instructor that you are
finished. The next part is an optional exercise.
6-21
Defining an additional virtual Ethernet adapter to carry the IP address is the solution. This
has the advantage of providing IP configuration flexibility. In a dual VIO server configuration
with the SEA failover setup, you could remove the one SEA configuration without losing
network access to the VIO server.
In part 4 of this exercise, you will configure an additional virtual adapter and set the VIO
server IP address on its interface.
The following diagram helps you identify your configuration at the end of part 4:
V7.0.2
Student Exercises with hints
EXempty
__ 33. Use the HMC to dynamically create an additional virtual Ethernet adapter on your
assigned VIO server. Use the adapter ID 14, and use the same VLAN ID that you
used in part one of the exercise when you configured your SEA failover. Refer to
Table 11 on page 6-4 if needed.
Go to the Server Management application on the HMC.
Select your assigned VIO server, and use the Dynamic Logical Partitioning >
Virtual Adapters task.
On the Actions menu, select Create Virtual Adapter > Ethernet Adapter...
6-23
In the screen that pops up, set the correct VLAN ID, and then click OK. Here is
an example screen on vios4 (verify that the VSwitch field is set to ETHERNET0
(Default) value):
V7.0.2
Student Exercises with hints
EXempty
Select the option Overwrite existing profile, and make sure that Normal is the
selected profile. Click OK to save the changes, then click Yes to confirm that you
want to overwrite the existing profile.
__ 35. Since you added the virtual Ethernet adapter dynamically, you must run a cfgdev
command to have the VIO recognize the new device; then, verify that there is one
new virtual Ethernet adapter available. Use the -virtual option to lsdev to see
only virtual devices.
Here are example commands and outputs. In this example, ent5 is the new
virtual Ethernet adapter.
$ cfgdev
$ lsdev -virtual | grep ^en
ent2 Available Virtual I/O Ethernet Adapter (l-lan)
ent3 Available Virtual I/O Ethernet Adapter (l-lan)
ent5 Available Virtual I/O Ethernet Adapter (l-lan)
ent4 Available Shared Ethernet Adapter
__ 36. In your virtual I/O server partition's console session, use the rmtcpip -interface
<interface name> command to remove the virtual I/O server TCP/IP configuration.
Specify the interface name of your SEA. You can check the SEA name using the
lsmap -all -net command.
Run the command:
$ rmtcpip -interface en4
Parameters to be reset:
Host name: No
Name server: No
Effective immediately: Yes
Routing: No
Are you sure? (y/N)y
__ 37. Configure the newly created virtual Ethernet adapter interface with the IP address,
host name, network mask, default gateway, and DNS server IP address that you
recorded in Step 2 on page 6-5 at the beginning of this exercise. You can use the
mktcpip command, or the cfgassist command to launch the SMIT menu.
Here is the syntax for the mktcpip command for the options you need to use:
mktcpip -interface Interface -hostname Hostname -inetaddr IPaddress \
[ -start ] [ -netmask nmask ] [ -gateway gway ] \
[ -nsrvaddr NameServerAddr [ -nsrvdomain Domain ] ]
Substitute the appropriate configuration information (recorded at the beginning of
this exercise).
End of exercise
6-25
V7.0.2
Student Exercises with hints
EXempty
Introduction
The purpose of the exercise is to give the students some experience in
implementing a high availability configuration which includes dual VIO
servers and MPIO set up in the client partition.
Requirements
This workbook.
A workstation with a web browser and Internet connectivity.
IBM POWER7 processor-based system.
7-1
Introduction
In this exercise, you will configure two VIO servers to provide redundant paths to your
VSCSI disk resource. In this exercise, you will set up MPIO for AIX in your client LPAR and
test the configuration.
7-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
The diagram below represents the VSCSI configuration that each team will have set up at
the end of part 3 of this exercise. The adapter names shown in the diagram could be
different in your system configuration. Additional virtual adapters would cause different
adapter numbering as well.
In order to set up MPIO in a client LPAR, two Virtual I/O Servers must be used. Each VIO
server must serve the same shared LUN to the client LPAR. This LUN must be accessible
by both the VIO servers. The VSCSI disk in the client LPAR will have two MPIO paths
provided by two different VIO servers. Each VSCSI client adapter in the client LPAR must
be connected to a VSCSI server adapter in a different VIO server.
Your actual VSCSI configuration needs to be changed to match the diagram above. You
need to add a VSCSI client-server configuration between your client LPAR to your
teammate's VIO server, and then create a new virtual target device that refers to the
backing LUN.
You need to plan this MPIO configuration as a team of two students. During this exercise,
you will have to perform some steps as a team or work on your teammate's VIO server.
Refer to the table below for your team number.
7-3
Managed System 2
3
10
11
12
vios1
vios2
vios3
vios4
vios5
vios6
vios7
vios8
vios9
vios10
vios11
vios12
lpar1
lpar2
lpar3
lpar4
lpar5
lpar6
lpar7
lpar8
lpar9
lpar10
lpar11
lpar12
7-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ 2. Log in to the VIOS partition and run cfgdev. List out the virtual devices to verify it
was created. Note the new vhost name. If you have been following the instructions,
it should be called vhost1.
New vhost name is: _________________________________________________
7-5
The output from lsdev -virtual | grep vhost should look like this if you have
been following the instructions in this exercise:
$ cfgdev
$ lsdev -virtual | grep vhost
vhost0
Available
Virtual SCSI Server Adapter
vhost1
Available
Virtual SCSI Server Adapter
__ 3. Using the HMC, select your assigned client LPAR and dynamically add a VSCSI
client adapter. Use the client adapter ID 16. Have it point to your teammate's VIOS
partition and adapter ID 16. This client adapter is not required (that is, you do not
have to check the box to make it a required adapter).
Go to the HMC interface, and go to the LPAR table view.
To dynamically add a virtual I/O adapter, select your assigned LPAR and run the
Dynamic Logical Partitioning > Virtual Adapters task.
Run the Create Virtual Adapter > SCSI Adapter... task on the Actions menu.
In the window that opens, configure the adapter ID. Choose your teammate's
VIOS and the adapter ID.
Click OK, and then click OK again to complete the operation.
In this example, student1 creates VSCSI slot number 16 on lpar1.
__ 4. To configure the new VSCSI adapter, run cfgmgr on your assigned client LPAR.
Check that the new device (vscsi1) is available.
Your lsdev -Cc adapter output should look like the following:
# lsdev -Cc adapter | grep vscsi
vscsi0 Available Virtual SCSI Client Adapter
vscsi1 Available Virtual SCSI Client Adapter
__ 5. Using the HMC, save the current configuration of your assigned LPAR and your
teammate's VIO server into new profiles. Name these new profiles Normal-mpio.
7-6
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
Note
Do not forget to perform this step or you will lose all your dynamic operations
previously performed in case of a shutdown-reactivate of your partitions.
7-7
lpar1_vtd
Available
0x8100000000000000
hdisk1
U5877.001.RCH8623-P1-C6-T1-W500507680140B855-L1000000000000
__ 7. Now that you know the disk number, use the lspv command to determine the
physical volume ID of that disk. Record this PVID here:
________________________________________________________________
Here is an lspv command output example on VIOS1 showing the PVID of
hdisk1.
$ lspv
NAME
hdisk0
hdisk1
hdisk2
hdisk3
hdisk4
hdisk5
hdisk6
hdisk7
PVID
00f784aee0fd700a
00f784ae17ad9d8b
00f784ae1822ad34
none
none
none
none
none
VG
rootvg
None
None
None
None
None
None
None
STATUS
active
__ 8. Now go to your teammate's Virtual I/O Server and identify the physical volume ID of
the hdisk device you recorded in the previous step. Open a virtual terminal to your
teammate's Virtual I/O Server. Run the lspv command to list the physical volumes
and locate the hdisk device. Record this hdisk number here: _________________
7-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
PVID
00f784aee103cdab
00f784ae17ad9d8b
00f784ae1822ad34
none
none
none
none
none
VG
rootvg
None
None
None
None
None
None
None
STATUS
active
__ 9. On your teammate's Virtual I/O Server, run the lsdev command to check if the
reserve policy attribute for this disk is set to no_reserve. If it is not, run the chdev
command to change the attribute value.
Here is an example with hdisk1:
$ lsdev -dev hdisk1 -attr | grep reserve_policy
reserve_policy single_path
Reserve Policy
$ chdev -dev hdisk1 -attr reserve_policy=no_reserve
hdisk1 changed
True
__ 10. On your teammate's Virtual I/O Server, run the mkvdev command to create the
virtual target device. Use the disk number you identified previously and the VSCSI
server adapter vhost1. Give it a target device name that make sense to you. For
example, if your assigned client LPAR is lpar1, name your target device lpar1_vtd.
Here is an example:
$ mkvdev -vdev hdisk1 -vadapter vhost1 -dev lpar1_vtd
lpar1_vtd Available
__ 11. On your teammate's Virtual I/O Server, run the lsmap -vadapter vhost1 command
to check that you have the correct backing storage mapping.
The output of lsmap -vadapter vhost1 should be similar to the following if
running on vios2. This example shows hdisk1 as the backing device with a virtual
target device name of lpar1_vtd. In this example, the Client Partition ID is 21
(0x15 in hexadecimal), confirming that this storage is being used by lpar1.
$ lsmap -vadapter vhost1
SVSA
Physloc
Client Partition ID
--------------- -------------------------------------------- -----------------vhost1
U8233.E8B.1084AER-V2-C16
0x00000015
VTD
Status
LUN
Backing device
Physloc
lpar1_vtd
Available
0x8100000000000000
hdisk1
U5877.001.RCH8623-P1-C7-T1-W500507680140B855-L1000000000000
__ 12. Log in to your assigned client LPAR and run the cfgmgr command to configure the
new MPIO path; then run the lspath command to verify that the VSCSI disk device
Copyright IBM Corp. 2009, 2013
7-9
is accessible from two different paths. You should see two paths enabled for the
hdisk0 device.
The output of lspath should be similar to the following if running on lpar1. This
example shows there are two paths to the hdisk0 device.
# lspath
Enabled hdisk0 vscsi0
Enabled hdisk0 vscsi1
V7.0.2
Student Exercises with hints
EXempty
Priority
True
The output shows there are two paths available to hdisk0, and both paths have
the same priority. In this case, path ID 0, which goes through the vscsi0 adapter
will be used by default.
__ 20. Perform a shutdown of one of your team's Virtual I/O Servers again.
$ shutdown -force
__ 21. When the Virtual I/O Server has shut down, check the status of the paths to hdisk0
on each AIX LPAR. Explain what you observe.
Both client LPARs will have one path marked as Failed, and one marked as
Enabled. The failed path will be the one using the VIO server that has been
shutdown. Only one of the LPARs will have been using the failed path as the
primary path. In the other LPAR where the failed path is the non-active path, the
healthcheck algorithm has detected the failure.
The following shows the expected output from the one of the client LPARs. The
path that has failed will depend on which VIO server was shut down. The -H flag
7-11
of lspath includes column headers in the output. The -t flag indicates that each
path description should also include the path ID value.
# lspath -Ht
status name
parent path_id
parent path_id
V7.0.2
Student Exercises with hints
EXempty
The following is an example error log entry indicating a path failure for hdisk0.
The Detail Data section indicates the path ID of the failed path.
# errpt -a
--------------------------------------------------------------------------LABEL:
SC_DISK_ERR7
IDENTIFIER:
DE3B8540
Date/Time:
Sequence Number:
Machine Id:
Node Id:
Class:
Type:
WPAR:
Resource Name:
Resource Class:
Resource Type:
Location:
Description
PATH HAS FAILED
Probable Causes
ADAPTER HARDWARE OR CABLE
DASD DEVICE
Failure Causes
UNDETERMINED
Recommended Actions
PERFORM PROBLEM DETERMINATION PROCEDURES
CHECK PATH
Detail Data
PATH ID
0
SENSE DATA
0A00 2800 0084
0000 0000 0000
0000 0000 0000
0000 0000 0000
0000 0000 0000
12B8
0000
0000
0000
0000
0000
0000
0000
0000
0000
0804
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0200
0000
0000
0000
0000
0B00
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
__ 23. Use the HMC GUI to activate the Virtual I/O Server shut down in Step 20. Use the
profile Normal-mpio.
__ 24. When the VIO server has booted and you see the login prompt on the console
window, check the path status again in each client LPAR.
7-13
When the VIO server has booted, it is expected that both client LPARs will show
both paths with a state of Enabled:
# lspath -Ht
status name
parent path_id
V7.0.2
Student Exercises with hints
EXempty
Open a terminal console on your odd numbered client LPAR. Here is an example
command sequence for an odd numbered LPAR. The first command determines
which parent device is used by the path with path ID 0. The second command
changes the priority of this path.
# lspath -Ht -l hdisk0
status name
parent path_id
Enabled hdisk0 vscsi0 0
Enabled hdisk0 vscsi1 1
# chpath -l hdisk0 -p vscsi0 -a priority=2
path Changed
__ 27. Check that your client LPARs are now using the same VIO server for disk I/O
activity.
__ a. On each client LPAR, open a terminal window and run the following command to
generate some disk I/O traffic:
# dd if=/dev/hdisk0 of=/dev/null
__ b. In a console window on each VIO server, run the topas command. Then type
capital D to monitor the physical disk activity. You should see activity on the
physical disk devices used as backing storage for the VSCSI disks used by your
client LPARs only on the even numbered VIO server.
7-15
The topas command output example shown below is from an odd numbered
VIO server. It shows no disk activity.
Topas Monitor for host:
sys464_vios1Interval:
2
Tue Jan 8 23:41:55 2013
===============================================================================
Disk
Busy% KBPS
TPS
KB-R
ART
MRT
KB-W
AWT
MWT
AQW
AQD
hdisk3
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk6
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk7
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk1
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk5
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.8
0.0
0.0
hdisk4
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
The topas command output example shown below is from an even numbered
VIO server. It shows disk activity on two backing storage devices, hdisk1 (used
by lpar1) and hdisk2 (used by lpar2).
Topas Monitor for host:
sys464_vios2Interval:
2
Tue Jan 8 23:42:39 2013
===============================================================================
Disk
Busy% KBPS
TPS
KB-R
ART
MRT
KB-W
AWT
MWT
AQW
AQD
hdisk1
56.9 10.7K
2.5K 10.7K 0.3 461.4
0.0
0.0
0.3
0.0
0.0
hdisk2
47.4 15.1K
3.6K 15.1K 0.1 424.5
0.0
0.0
2.9
0.0
0.0
hdisk6
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk7
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.3
0.0
0.0
hdisk3
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk4
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk5
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
__ c. Keep the dd command running on each client LPAR (or restart it if it ended).
While monitoring the topas output on the Virtual I/O Servers, open another
terminal window on your odd numbered client LPAR, and change the priority
value of path ID 1 (the path will likely be using vscsi1 as the parent) from one to
two.
Note
The priority change does not require a reboot to take effect.
In a window on your odd numbered client LPAR, use the chpath command. Here
is an example:
$ chpath -l hdisk0 -p vscsi1 -a priority=2
Path changed
__ d. Check that there is disk I/O traffic now on both Virtual I/O Servers (one busy disk
on each VIO server).
V7.0.2
Student Exercises with hints
EXempty
The topas command output example shown below is from an odd numbered
VIO server. It shows disk activity only on hdisk1.
Topas Monitor for host:
sys464_vios1Interval:
2
Wed Jan 9 00:05:23 2013
===============================================================================
Disk
Busy% KBPS
TPS
KB-R
ART
MRT
KB-W
AWT
MWT
AQW
AQD
hdisk1
77.9 15.5K
3.8K 15.5K 0.1
2.6K
0.0
0.0
6.5
0.0
0.0
hdisk6
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk2
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk3
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk7
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk5
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
1.8
0.0
0.0
hdisk4
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
The topas command output example shown below is from an even numbered
VIO server. It shows disk activity only on hdisk2.
Topas Monitor for host:
sys464_vios2Interval:
2
Wed Jan 9 00:06:13 2013
===============================================================================
Disk
Busy% KBPS
TPS
KB-R
ART
MRT
KB-W
AWT
MWT
AQW
AQD
hdisk2
10.4 30.5K
4.0K 30.5K 0.1 683.0
0.0
0.0
7.0
0.0
0.0
hdisk3
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk6
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk7
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
1.5
0.0
0.0
hdisk1
0.0
0.0
0.0
0.0
0.0 733.9
0.0
0.0
6.9
0.0
0.0
hdisk4
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
hdisk5
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
0.0
__ e. In a terminal window on your odd numbered client LPAR, and change the priority
value of path ID 0 (the path will likely be using vscsi0 as the parent) from two
back to one, then perform the same change for path ID 1.
In a window on your odd numbered client LPAR, use the chpath command. Here
is an example:
$ chpath -l hdisk0 -p vscsi0 -a priority=1
Path changed
$ chpath -l hdisk0 -p vscsi1 -a priority=1
Path changed
__ 28. Stop the dd command on your client LPARs. That is the end of this optional
exercise. Notify your instructor that you are finished.
End of exercise
7-17
V7.0.2
Student Exercises with hints
EXempty
Introduction
In this exercise, you will create virtual Fibre Channel adapters (client
and server) to access an external LUN.
You will work alone using your client logical partition and use one
Virtual I/O Server that has an NPIV-capable physical Fibre Channel
adapter installed.
Requirements
This workbook.
8-1
8-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
8-3
__ 1. From the HMC GUI, select your Virtual I/O Server and dynamically create a virtual
Fibre Channel server adapter.
__ a. Use the slot number convention specified in Table 13 above. Specify your
assigned client logical partition and the client adapter ID. Here is an example for
student1:
__ b. Save the current configuration of the VIO partition in a new profile called
Normal-NPIV.
Go to the HMC interface, and go to the LPAR table view.
Select your VIO server, and run the Configuration > Save Current
Configuration task.
In the window that opens, select the New profile option, and enter Normal-NPIV
as the profile name.
8-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ 2. Log in to the Virtual I/O Server and perform a cfgdev to configure the new virtual
device.
__ 3. Use the lsdev command to check for the new virtual Fibre Channel adapter.
Example command and output:
$ lsdev -dev vfchost*
name
status
vfchost0
Available
description
Virtual FC Server Adapter
__ 4. Run the lsmap -all -npiv command to check your vfchost adapter slot number
and status.
Example command and output:
$ lsmap -all -npiv
Name
Physloc
ClntID ClntName
ClntOS
------------- ---------------------------------- ------ -------------- -----vfchost0
U8233.E8B.1084AER-V1-C21
21
Status:NOT_LOGGED_IN
FC name:
FC loc code:
Ports logged in:0
Flags:1<NOT_MAPPED,NOT_CONNECTED>
VFC client name:
VFC client DRC:
__ 5. In the next steps, you will map the virtual Fibre Channel server adapter to a physical
port on the physical Fibre Channel adapter.
__ a. Run the lsdev command to identify the physical Fibre Channel adapter in the
Virtual I/O Server. Use the fcs0 adapter unless your instructor tells you to use
another one.
8-5
-dev fcs*
status
Available
Available
description
8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
__ b. Run the lsnports command to list the ports that are capable of N_Port ID
virtualization (NPIV). Verify the fabric attribute is set to 1. This means the adapter
and the SAN switch are NPIV ready.
Example command and output:
$ lsnports
name
fcs0
physloc
U5877.001.RCH8623-P1-C6-T1
__ c. Run the vfcmap command to map your virtual Fibre Channel server adapter to
the physical Fibre Channel adapter port fcs0.
Here is an example, using the vfchost0 virtual adapter:
$ vfcmap -vadapter vfchost0 -fcp fcs0
vfchost0 changed
__ 6. Select your client logical partition and dynamically create a virtual Fibre Channel
adapter.
__ a. Use the slot number convention specified in Table 13 above. Specify the Virtual
I/O Server partition and the server adapter ID (slot number). Here is an example
for student1:
__ b. Log in to your assigned client logical partition and run cfgmgr to configure the
virtual Fibre Channel adapter and its associated child devices.
__ c. Use the lsdev command to check for the new client virtual Fibre Channel
adapter. Check for its Available state.
Example command and output:
$ lsdev -Cc adapter | grep fcs
fcs0
Available 21-T1 Virtual Fibre Channel Client Adapter
__ d. Use the lscfg command to check the worldwide port name (the network
address) of the virtual Fibre Channel client adapter.
8-6
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
PLATFORM SPECIFIC
Name: vfc-client
Node: vfc-client@30000015
Device Type: fcp
Physical Location: U8233.E8B.1084AER-V21-C21-T1
__ 7. From the HMC GUI, look at your logical partition properties. Select the Virtual
Adapters tab.
__ a. Check your virtual Fibre Channel adapter properties and record the WWPN pair
here:
WWPN: ____________________________
WWPN: ____________________________
8-7
For example:
__ 8. Open an ssh connection to your HMC using putty. Use the lshwres command to
check the virtual Fibre Channel adapters on your client logical partition.
Here is an lshwres example on the managed system named sys464:
hscroot@hmc109:~> lshwres -r virtualio --rsubtype fc -m sys464 --level
lpar --filter lpar_names=sys464_lpar1
lpar_name=sys464_lpar1,lpar_id=21,slot_num=21,adapter_type=client,sta
te=1,is_required=0,remote_lpar_id=1,remote_lpar_name=sys464_vios1,rem
ote_slot_num=21,"wwpns=c05076054585008a,c05076054585008b"
__ 9. Save the partition configuration in a new partition profile. Name the profile
Normal-NPIV. In the subsequent steps, you will use a script that will change the
WWPNs and that script will modify the profile with the name Normal-NPIV, so make
sure you name the profile exactly as specified, including capital letters.
8-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ 10. In the next step, you will change the worldwide port numbers to a specific network
address. Each time you create a virtual Fibre Channel adapter, a new WWPN pair is
defined. During the class lab setup, external LUNs were created and mapped to
specific predefined worldwide port names. You must change the WWPN pair of your
virtual Fibre Channel adapter to match these predefined values.
__ a. From the HMC CLI, use the lssyscfg command to retrieve the virtual Fibre
Channel adapter's configuration information. Use the following command
(specify your LPAR name and managed system name):
lssyscfg -m <your managed system> -r prof --filter lpar_names=<your
lpar>,profile_names=Normal-NPIV -F virtual_fc_adapters
Here is example output of the lssyscfg command:
"""21/client/1/sys464_vios1/21/c05076054585008a,c05076054585008b/0"""
8-9
Student
number
student 8
student 9
student 10
student 11
student 12
WWPN pair
c<system number>000000000015,c<system number>000000000016
c<system number>000000000017,c<system number>000000000018
c<system number>000000000019,c<system number>000000000020
c<system number>000000000021,c<system number>000000000022
c<system number>000000000023,c<system number>000000000024
The script uses the chsyscfg command to change the WWPN pair. The
following command is used:
# chsyscfg -r prof -m <your managed system> -i name=Normal-NPIV, lpar_name=<your lpar>,
\"virtual_fc_adapters=\"\"<slot_num>/<adapter_type>/[<remote_lpar_id>]/
[<remote_lpar_name>]/<remote_slot_num>/[<wwpns>]//<is_required>\"\"\"
__ c. From the HMC CLI, use the lssyscfg command to retrieve the virtual Fibre
Channel adapters information for your LPAR. Verify the new values match the
information provided in Table 14. Use the following command specifying your
lpar name and managed system name.
lssyscfg -m <your managed system> -r prof --filter lpar_names=<your
lpar>,profile_names=Normal-NPIV -F virtual_fc_adapters
__ 11. Perform a shutdown of your client logical partition. Then activate it using the
Normal-NPIV profile. Wait for the partition to complete the boot sequence before
continuing to the next step.
__ 12. Log in to your logical partition and verify that a new hdisk is available. Use the lsdev
command to check the disk type. The disk type should not be a virtual SCSI disk but
instead it should some type of Fibre Channel disk.
An example is shown below. The exact type of Fibre Channel disk on your
system may be different:
# lsdev -c disk
hdisk0 Available
Virtual SCSI Disk Drive
hdisk1 Available 27-T1-01 MPIO IBM 2145 FC Disk
__ 13. On the Virtual I/O Server, run the lsmap command to display the mapping between
the physical Fibre Channel adapter port and your virtual Fibre Channel adapter. The
status should be LOGGED_IN.
V7.0.2
Student Exercises with hints
EXempty
__ 14. Let your instructor know that you have completed the exercise.
End of exercise
8-11
V7.0.2
Student Exercises with hints
EXempty
Introduction
In this exercise, you run a diagnostic and check the configuration of
the SFP service tool by running two tests and verifying that the events
are logged.
Requirements
This workbook.
A workstation with a web browser connected to the Internet.
Access to an HMC and a POWER7 processor-based managed
system connected to the same network as your workstation.
9-1
262144
9-2
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
On the partition, run the command: lssrc -a | grep rsct_rm. This command
will list the daemons responsible for HMC and partition communication (among
other functions).
Example output of lssrc command:
# lssrc -a | grep
IBM.CSMAgentRM
IBM.ServiceRM
IBM.DRM
IBM.MgmtDomainRM
IBM.ERRM
IBM.LPRM
IBM.SensorRM
IBM.AuditRM
IBM.HostRM
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
rsct_rm
2818170
4128906
4522182
6750232
active
active
active
active
inoperative
inoperative
inoperative
inoperative
inoperative
The output shows that the typical RMC daemons are active. Do not worry if your
list is not exactly the same as the one above. Some individual daemons are only
active when they are needed.
Run the command startsrc -g rsct_rm if all the daemons are in an inactive
state.
__ 5. Is the managed system enabled for Connection Monitoring?
From the HMC GUI session, go to the Service Management application. In the
Connectivity task section, choose Manage Connection Monitoring. The
managed system should display Enabled in the State column, as shown in the
example below.
9-3
__ 6. Based on the configuration of your HMC, how many minutes does the connection
have to be disconnected for the event to be considered a network outage?
From the Connection Monitoring Setup window, as shown in the last step's
hint, the number of disconnected minutes considered to be an outage is 15.
__ 7. Test that the HMC is configured to log serviceable events to the SFP. Use the Create
a Serviceable Event procedure from the HMC to perform the test. Later in this
exercise, you will check for the HMC event in SFP (Manage Serviceable Events).
In the Service Management application, choose Create Serviceable Event on
the selected menu.
In the pop-up window, click the Test automatic problem reporting check box.
In the Problem Description field, write a comment containing your student
9-4
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
number and HMC as shown in the example below. Click Request Service once
you have entered the comment.
In the pop-up window, click OK to exit the HMC problem reporting test.
__ 8. Perform a test for your managed server to make sure that server events will be
logged into HMC SFP.
9-5
In the Systems Management application, click Servers. In the right pane, click
the corresponding check box to select your managed system. In the Task menu,
select Serviceability > Create Serviceable Event.
In the pop-up window, click the Test automatic problem reporting check box,
add a problem description text containing your student number and your server
name, and click Request Service as shown in this example:
9-6
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ 9. Perform a test from a partition to make sure that it will log events with SFP. From the
HMC GUI, select your partition and open a terminal window. Log in to your partition
as root and run the following oppanel diagnostic test:
__ a. Run diag at the AIX shell prompt. Press Enter to continue.
__ b. Choose Diagnostic Routines. It should already be highlighted; simply press
Enter.
__ c. Choose System Verification. It should already be highlighted; simply press
Enter.
__ d. Use the cursor keys to scroll down to oppanel, and press Enter to select; then
press F7 to commit.
__ e. When asked if you want to proceed to create a test serviceable event, use the
cursor keys to select Yes, and press Enter. On the next screen, press Enter to
continue.
__ f.
When asked if you want to report this problem to the Service to Service Focal
Point, use the cursor keys to select Yes, and press Enter. This procedure should
log an event from this partition in SFP, but it might take a few minutes. You will
check for this event later in this exercise. After a few minutes, you should see the
System Attention Indicator appear next to your partition name. You do not have
to wait to see this indicator to proceed to the next step.
9-7
This pop-up menu allows you to filter the output so that you can find the events you
need to see. Feel free to explore the options. When you are ready, at the top of the
screen choose to see all open events. Click OK.
__ 11. Several students in the class are using the same HMC, therefore the next screen will
probably list multiple instances of each of the three types of serviceable events
which this exercise has you generate. Look for your new events; use the Number of
days to view criteria and specify one day to verify that your specific events were
logged. The newest events will be at the top of the list. You might need to grow the
window or scroll to the right to see the descriptive text.
Below is an example Serviceable Event Overview screen. The first line is the
oppanel test run in an LPAR (reference code 651-199), the second is the managed
server test (reference code B3031007), and the last is the HMC test (reference code
B3031107). Click on each reference code to see a description of the problem it
represents.
In the example below, you can tell the oppanel test came from the managed system
from the Failing MTMS column and the machine type model number of 8233-E8B,
which is a managed system, with serial number 1084AER. The Reporting name
column is not shown in the example below. You can tell that the HMC test came from
the HMC itself from the machine type model number of 7042-CR5 (with serial
number 1099CBA), which is an HMC.
9-8
Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
Look for your tests on your HMC. If they are not there, troubleshoot the issue that is
causing the event or events not to be logged.
Have you waited at least one or two minutes for the event to be logged?
Are the RMC daemons running on the partition? Remember that in Step 4 you
checked this.
Attempt to dynamically remove a small amount of memory from the partition
where the oppanel test was performed. Did this work? If yes, then the event
should be logged in SFP since both DLPAR and the service tools use the
network connection between the HMC and the partitions and the RMC daemons
for communication.
__ 12. Select a managed service event and choose View Details from the Selected
dropdown menu.
9-9
Select a service event in the table, and choose View Details from the Selected
dropdown menu, as shown in the example below:
__ 13. View the information available for the selected event. Use the scroll bar on the right
of the table to look at the detailed information. In the example below, you can see
the oppanel test run from a partition named sys464_lpar1, and the Reporting
Primary Unit Name is the sys464 managed system.
Click Cancel to return to the Serviceable Events Overview window.
V7.0.2
Student Exercises with hints
EXempty
__ 14. You can identify the oppanel event you created based on the Reporting partition
name displayed in the details of the event. For the HMC and managed system test
events, you will have use the scroll bar on the right of the table to scroll down to the
Description field to see the comment that was entered when the test event was
generated, as shown in the example below:
__ 15. Identify the events you generated, then select each one and close them. To do this,
select an event and choose Close Event from the Selected menu. Enter your name
and the comment just a test. Click the Close Events button, and then click Yes.
When you are finished closing your events, click the Cancel button to exit the
Serviceable Events Overview window. Click Cancel again on the remaining
Manage Serviceable Events window.
Note
Typically, customers do not close events unless they are absolutely sure what
caused the problem. In this case, you caused the errors, therefore it is acceptable
for you to close these events now.
__ 16. Let your instructor know when you have completed the exercise.
End of exercise
9-11
V7.0.2
Student Exercises with hints
EXempty
Introduction
The Virtual I/O Server software continues to change. Some of the
updates fix problems and others add new functionality. The latest
available level of software is always considered the recommended
level. This software can be acquired by anonymous FTP, HTTP (web
browser), and ISO images. This exercise uses files which were
previously downloaded using FTP.
The last part of this exercise demonstrates how cron can be used to
schedule a backup of the Virtual I/O Server.
Requirements
This workbook.
A VIO server partition.
Access to a directory containing a VIO fix pack.
10-1
Managed System 2
3
10
11
12
vios1
vios2
vios3
vios4
vios5
vios6
vios7
vios8
vios9
vios10
vios11
vios12
lpar1
lpar2
lpar3
lpar4
lpar5
lpar6
lpar7
lpar8
lpar9
lpar10
lpar11
lpar12
__ 1. Select your Virtual I/O Server and perform the following steps:
__ a. All interim fixes currently applied must be manually removed before applying the
fix pack. Use the emgr command to list and remove the interim fixes (there
should not be any interim fixes on your system).
$ oem_setup_env
# emgr -P
10-2 Power Virtualization I
V7.0.2
Student Exercises with hints
EXempty
__ b. If the output from the emgr command indicates there are interim fixes applied on
your system, remove each one individually using the following command:
# emgr -r -L <fix label name>
__ c. When all interim fixes have been removed, return to the VIO CLI environment.
# exit
__ d. All uncommitted updates must be committed prior to installing new updates.
Execute the following command:
$ updateios -commit
__ e. The Virtual I/O Server fix pack 26 is available on an NFS server if using
Montpellier remote facilities (Your instructor might direct you to install a newer fix
directly from the IBM Fix Central website, or another NFS location). Execute the
following command to mount the remote directory:
$ mount <NFS_server_IP>:/export/labfiles /mnt
__ f.
With fix pack 26, there is now a method to verify the VIOS update files before
installation. This process requires access to openssl by the padmin user, which
can be accomplished by creating a link. To verify the VIOS update files, follow
the steps below. Replace <fixpath> with the path name of the directory that
contains the fixes you are using. If you are using the Montpellier remote facilities,
the fixpath directory should be an30/ex10
$
#
#
#
$
$
$
oem_setup_env
ln -s /usr/bin/openssl /usr/ios/utils/openssl
ls -al /usr/ios/utils
exit
cp /mnt/<fixpath>/ck_sum.bff /home/padmin
chmod 777 /home/padmin/ck_sum.bff
ck_sum.bff /mnt/<fixpath>
__ g. Execute the following command to install the updated Virtual I/O Server
software:
$ updateios -dev /mnt/an30/ex10 -install -accept
Once the command examines the software contained in the specified directory,
you will have to confirm that the installation should proceed. The software
installation could take 30 minutes or more to complete.
__ h. When the installation has completed, execute the following command to set
authorization for the PAdmin role. Note the space between the - character and
the PAdmin role. You will be prompted to enter the password for the padmin user.
$ swrole - PAdmin
__ i.
10-3
__ j.
__ k. When the partition has rebooted, log on as padmin and run ioslevel to list the
new software level.
$ ioslevel
If Fix Pack 26 is installed, the command output is 2.2.2.1.
__ 2. If your student ID is an odd number, inform your teammate that you have completed
the update of your VIO partition. Your teammate can now perform the update of their
VIO partition.
V7.0.2
Student Exercises with hints
EXempty
Phys Loc
--------
U8233.E8B.0681B9R-V7-C32769-L0-L0
U8233.E8B.0681B9R-V7-C32769
U8233.E8B.0681B9R-V7-C32769-L0
U5877.001.9K8D880-P1-C6-T1
U5877.001.9K8D880-P1-C6-T2
U5877.001.9K8D880-P1-C6-T1-W0-L0
U5877.001.9K8D880-P1-C6-T2-W0-L0
U5877.001.9K8D880-P1-C6-T1
U5877.001.9K8D880-P1-C4-T1
U5877.001.9K8D880-P1-C6-T2
U5877.001.9K8D880-P1-C4-T2
U8233.E8B.0681B9R-V7-C11-T1
U8233.E8B.0681B9R-V7-C13-T1
U5877.001.9K8D880-P1-C6-T1
U5877.001.9K8D880-P1-C6-T2
Physical Volumes:
=================
Name
---hdisk0
hdisk1
hdisk2
hdisk3
hdisk4
hdisk5
hdisk6
hdisk7
Phys Loc
-------U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L0
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L1000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L2000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L3000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L4000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L5000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L6000000000000
U5877.001.9K8D880-P1-C6-T1-W500507680140B855-L7000000000000
Optical Devices:
================
Tape Devices:
=============
Ethernet Interfaces:
====================
Name
---en0
en1
en2
en3
en4
Copyright IBM Corp. 2009, 2013
10-5
IP Address
Auto
------------10.6.140.142
-
Hostname
-------sys474_vios7
Storage Pools:
==============
SP Name
------rootvg
PV Name
------hdisk0
Default Adapter
--------------ent2
Virtual Adapters
---------------ent2
VTD
--lpar7_vtd
vhost1
lpar8_vtd
U8233.E8B.0681B9R-V7-C16
Phys Loc
--------
FC Adapter
---------fcs0
Phys Loc
-------U8233.E8B.0681B9R-V7-C27
V7.0.2
Student Exercises with hints
EXempty
VBSD Pools:
===========
VRM(AMS) Pages:
===============
RSCT:
=====
ct_node_id
----------86d2665eee35318c
Cluster:
========
Cluster
-------
State
-----
End of exercise
10-7
V7.0.2
Student Exercises with hints
EXempty
Introduction
In this exercise, you will configure the Virtual I/O Server to host VSCSI
devices for AIX partitions. This includes configuring storage resources
and virtual target devices to provide clients with access to file-backed
disks and file-backed optical devices.
Requirements
This workbook.
A workstation with a web browser connected to a network.
A POWER7 processor-based managed system connected to the
same network as the workstations.
A system from which to start an SSH session to the HMC.
11-1
Introduction
The goal of this exercise is to create a VSCSI disk backed by a file, create a virtual media
repository, and back up your client LPAR operating system to a blank virtual DVD-RAM. At
the end of the exercise, you will restore your client LPAR backup from the virtual
DVD-RAM.
This exercise is presented in three parts:
Part 1: Create a file-backed virtual disk.
Part 2: Create a virtual media repository and a blank virtual DVD-RAM.
Part 3: Backup/restore your client LPAR OS to the virtual optical media device.
V7.0.2
Student Exercises with hints
EXempty
Here is an example command and its output that shows rootvg on hdisk0. The
disks on your lab system might or might not have PVIDs associated with all of
the disks.
$ lspv
NAME
hdisk0
hdisk1
hdisk2
hdisk3
hdisk4
hdisk5
hdisk6
hdisk7
PVID
00f784aee0fd700a
00f784ae17ad9d8b
00f784ae1822ad34
none
none
none
none
none
VG
rootvg
None
None
None
None
None
None
None
STATUS
active
__ 2. For performing this exercise, you must use a non-shared hdisk device of 8 GB in
size. In your configuration the VIO server should have one non-shared LUN that is
8 GB in size. You can determine which disk is 8 GB in size by issuing the following
command sequence:
$
>
>
>
>
The output should show there is one disk with a size of 8192.
Record the hdisk number here: _______________________________
Note
For the rest of the exercise, we will assume that hdisk7 is the 8 GB hdisk.
__ 3. Use the mksp command to create a new logical volume storage pool. Only include
hdisk7 in this storage pool. Call the storage pool datasp.
Example command to create a new logical volume storage pool:
$ mksp -f datasp hdisk7
__ 4. View the output of lspv to verify that hdisk7 is in the datasp volume group (storage
pool). Also, run the lssp command to verify the datasp storage pool (LVPOOL).
11-3
PVID
00f784aee0fd700a
00f784ae17ad9d8b
00f784ae1822ad34
none
none
none
none
00f015b31d5ea7f3
Size(mb)
30656
8120
VG
rootvg
None
None
None
None
None
None
datasp
STATUS
active
active
BDs Type
0 LVPOOL
0 LVPOOL
__ 5. Create the file-backed disk storage pool inside the datasp storage pool. Name it
fbpool and make it 1 GB in size.
Example command and its output:
$ mksp -fb fbpool -sp datasp -size 1G
fbpool
File system created successfully.
1040148 kilobytes total disk space.
New File System size is 2097152
__ 6. Now create a file-backed virtual disk device called fb_disk1 in the fbpool storage
pool. Make the disk 500 MB in size and associate it with the VSCSI server adapter
defined on your VIO server. If you have been following the instructions in the
previous exercise, this should be vhost0. When you run the command to create the
disk device, note the new virtual target device name.
The new virtual target device name for the FB disk device is:
_________________________________________________________________
Example command and its output. In the example below, you can note that the
new VTD name is vtscsi0.
$ mkbdsp -sp fbpool 500m -bd fb_disk1 -vadapter vhost0
Creating file "fb_disk1" in storage pool "fbpool".
Assigning file "fb_disk1" as a backing device.
vtscsi0 Available
fb_disk1
__ 7. View the lsmap output for your vhost0 adapter to verify the configuration. You should
notice the new virtual target device and its associated backing device.
V7.0.2
Student Exercises with hints
EXempty
lpar1_vtd
Available
0x8100000000000000
hdisk1
U5877.001.RCH8623-P1-C6-T1-W500507680140B855-L1000000000000
VTD
Status
LUN
Backing device
Physloc
vtscsi0
Available
0x8200000000000000
/var/vio/storagepools/fbpool/fb_disk1
U5877.001.RCH8623-P1-C6-T1-W500507680140B855-L1000000000000
__ 8. View the lsdev -virtual output and see the description for the your new virtual
target device.
Here is an example command and its output. Note the description for the new
vtscsi device.
$ lsdev -virtual | grep vtscsi0
vtscsi0
Available
Virtual Target Device - File-backed Disk
__ 9. Log in to your client LPAR and run the lsdev -c disk -S a command; then run
cfgmgr, and then run lsdev -c disk -S a again. You should see the new disk
device.
Example commands and their outputs:
# lsdev -c disk -S a
hdisk0 Available
# cfgmgr
# lsdev -c disk -S a
hdisk0 Available
hdisk1 Available
__ 10. Now you have a new virtual disk. Let us look at some commands to view information
about that disk. Let us first make a new volume group with this disk in it.
Make a volume group named newvg on your AIX LPAR using the new disk. The new
disk is probably called hdisk1. Here is the mkvg command and its output. Also, use
the lspv or lsvg command to verify that the new volume group was created.
11-5
rootvg
newvg
None
active
active
__ 11. Optional step: Use SMIT to create a 100 MB file system in the newvg volume group
with the mount point /newfiles. Mount the file system, and verify that you can
access it.
You have just successfully added a file-backed virtual disk to your AIX LPAR.
To create a file system, use the smitty storage command.
Choose File Systems from the menu.
Choose Add / Change / Show / Delete File Systems from the menu.
Choose Enhanced Journaled File Systems from the menu.
Choose Add an Enhanced Journaled File System from the menu.
You will need to choose the correct volume group. Highlight newvg, and press
Enter.
In the input screen, change the unit size to Megabytes. (You can press the Tab
key to change it.)
Use the arrow to move down once, and then, for number of units, enter 100.
Move the arrow down once, and enter a mount point name of /newfiles.
Press Enter to create your new file system, then exit the SMIT tool.
Type mount /newfiles to mount the file system. Run the mount command to
view your new file system.
V7.0.2
Student Exercises with hints
EXempty
Size(mb)
30656
8120
1016
BDs
0
0
2
Type
LVPOOL
LVPOOL
FBPOOL
__ 13. Create a 6 GB virtual media repository with the mkrep command. Create it in the
datasp logical volume storage pool that you created previously in this exercise.
Example command and its output:
$ mkrep -sp datasp -size 6G
Virtual Media Repository Created
Repository created within "VMLibrary_LV" logical volume
__ 14. List the details of the media repository, and check its size.
Example command and its output:
$ lsrep
Size(mb) Free(mb) Parent Pool
6118
6118 datasp
Parent Size
8120
Parent Free
952
__ 15. Create a 5 GB blank virtual optical media disk in the repository. Create it with the
name aixopt1. It will be read-write by default (this command takes about one minute
to complete).
Example mkvopt command to create the 5 GB size virtual optical media disk.
$ mkvopt -name aixopt1 -size 5G
__ 16. View the repository again, and verify that the virtual optical media disk was created.
Example command and its output:
$ lsrep
Size(mb) Free(mb) Parent Pool
6118
998 datasp
Parent Size
8120
Name
aixopt1
Parent Free
952
Access
rw
11-7
__ 17. Now the VIOS partition has a virtual media repository and one virtual blank
DVD-RAM. The next few steps will have you make the virtual optical device
available to a partition. Create a file-backed virtual optical device, and associate it
with the vhost adapter already serving the backing devices to your assigned client
LPAR. It should be vhost0.
Example command and its output (where the vhost name is vhost0):
$ mkvdev -fbo -vadapter vhost0
vtopt0 Available
__ 18. Load your aixopt1 media disk in the new virtual optical device.
Example command:
$ loadopt -vtd vtopt0 -disk aixopt1
__ 19. Now view the repository, and see what is different in the output from the last lsrep
command that you ran in Step 16.
Here is an example command and its output. Notice that the Optical column now
lists the virtual target device name of the virtual optical device.
$ lsrep
Size(mb) Free(mb) Parent Pool
6118
998 datasp
Parent Size
8120
Name
aixopt1
Parent Free
952
Access
rw
__ 20. Log in to your client LPAR and run the lsdev -Cs vscsi command; then run
cfgmgr, and then run lsdev -Cs vscsi again. You should see the new VSCSI
optical device served by the VIO server.
Example commands and their outputs:
# lsdev -Cs vscsi
hdisk0 Available
hdisk1 Available
# cfgmgr
# lsdev -Cs vscsi
cd0
Available
hdisk0 Available
hdisk1 Available
V7.0.2
Student Exercises with hints
EXempty
__ 21. Log in to your client LPAR and run the smitty sysbackup command to create a
system backup image (mksysb) in UDF format to your virtual DVD-RAM from the
system rootvg.
From the smitty sysbackup fast path, select Backup up this system to DVD.
Select 2 no to the question Use an existing mksysb image?
Select 2 UDF (Universal Disk Format) to the question DVD backup media
format?
In the SMIT panel that is displayed (example shown below) enter /dev/cd0 in
the DVD-RAM Device field, then press Enter to execute the operation.
Back Up This System to UDF DVD
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
DVD-RAM Device
[]
no
no
no
yes
+
+
+
+
[]
[rootvg]
yes
[]
[]
[]
[]
[]
no
[]
yes
yes
+
/
/
+/
/
/
+
/
+
+
When you create a system backup using the smitty sysbackup menu, the mkcd
command is invoked and creates a temporary file system to store the mksysb file
before copying it to the DVD. If you get an error message stating that there are
not enough free partitions to satisfy the allocation request, you need to free some
disk space in the rootvg volume group and restart the backup.
11-9
V7.0.2
Student Exercises with hints
EXempty
Your terminal screen should now display the Installation and Maintenance
menu. Type 2 and press Enter to select Change/Show Installation Settings
and Install.
__ g. Press 1 and select hdisk0 as the disk where you want to install. The hdisk0
should be a 10 GB size disk. Accept by pressing 0 to continue with choices
indicated above.
__ h. Start the installation by selecting 0 to continue with the choices. Depending on
your mksysb size, the install might take as little as five to 10 minutes. When the
client partition is booted, log in using root.
__ 23. That is the end of this exercise. Notify your instructor that you are finished.
End of exercise
11-11
V8.0
backpg
Back page