PowerVM QuickStart
PowerVM QuickStart
e VM Q ic S a
PowerVM QuickStart
Version 1.2.0
Date: 3/29/10
This document is minimall compatible w ith VIOS 1.5. VIOS 2.1 specific items are marked as such.
Overview
Virtuali ation Components
(Whole) CPUs, (segments of) memory, and
(physical) I/O devices can be assigned to an
LPAR (Logical Partition). This is commonly
referred to as dedicated resource partition (or
Power 4 LPARs, as this capability was
introduced with the Power 4 based systems).
A DLPAR is the ability to dynamically add or
remove resources from a running partition. All
modern LPARs are DLPAR capable (even if the
OS running on them is not). For this reason,
DLPAR has more to do with the capabilities of
the OS running in the LPAR than the LPAR itself.
The acronym DLPAR is typically used as a verb
(to add/remove a resource) as opposed to
define a type of LPAR. Limits can be placed on
DLPAR operations, but this is primarily a user
imposed limit, not a limitation of the hypervisor.
Slices of a CPU can be assigned to back a virtual
processor in a partition. This is commonly
referred to as a micro-partition (or commonly
referred to as Power 5 LPAR, as this capability
was introduced with the Power 5 based
systems). Micro-partitions consume CPU from a
shared pool of CPU resources.
Power 5 and later systems introduced the
concept of VIOS (Virtual I/O Server) that
effectively allowed physical I/O resources to be
shared amongst partitions.
ace. e /
ic
hee /
ic
a .h
12/20/11
e VM Q ic S a
ace. e /
ic
hee /
ic
a .h
2/14
12/20/11
e VM Q ic S a
PowerVM T pes
PowerVM inherits nearly all the APV
. ab e
ace. e /
ic
hee /
ic
a .h
Express
12/20/11
e VM Q ic S a
systems
Maximum of 3 LPARs (1 VIOS and 2 VIOC)
CPU Micro-Partitions with single processor
pool
VIOS/IVM only, no HMC support
Dedicated I/O resources (in later versions)
Standard
Premium
The VET codes from the IBM activation code web site
can be decoded using the following "key":
XXXXXXXXXXXXXXXXXXXXXXXX0000XXXXXX Express
XXXXXXXXXXXXXXXXXXXXXXXX2C00XXXXXX Standard
XXXXXXXXXXXXXXXXXXXXXXXX2C20XXXXXX Enterprise
VIO Redundanc
Fault tolerance in client LPARs in a VIOS
configuration is provided by configuring pairs of
VIOS to serve redundant networking and disk
resources. Additional fault tolerance in the form
of NIC link aggregation and / or disk
multipathing can be provided at the physical
layer to each VIOS server. Multiple paths /
aggregations from a single VIOS to a VIOC do
not provide additional fault tolerance. These
multiple paths / aggregations / failover
methods for the client are provided by m l iple
VIOS LPARs. In this configuration, an entire
VIOS can be lost (ie: rebooted during an
upgrade) without I/O interruption to the client
LPARs.
In most cases (when using AIX) no additional
. ab e
ace. e /
ic
hee /
ic
a .h
12/20/11
e VM Q ic S a
switch.
ace. e /
ic
hee /
ic
a .h
5/14
12/20/11
e VM Q ic S a
User Management
padmin is the only user for most configurations.
It is possible to configure additional users, such
as operational users for monitoring purposes.
List attributes of the padmin user
lsuser padmin
ace. e /
ic
hee /
ic
a .h
6/14
12/20/11
e VM Q ic S a
ace. e /
ic
hee /
ic
a .h
7/14
12/20/11
e VM Q ic S a
S o age Pool
Storage pools work much like AIX VGs (Volume
Groups) in that they reside on one or more PVs
(Physical Volumes). One key difference is the
concept of a default storage pool. The default
storage pool is the target of storage pool
commands where the storage pool is not
explicitly specified.
The default storage pool is oo g. If storage
pools are used in a configuration then the
default storage pool should be changed to
something other than oo g.
List the default storage pool
l p -defa l
List all storage pools
l p
List all disks in the oo gstorage pool
l p -de ail - p oo g
Create a storage pool called clien _boo on
hdi k22
mk p clien _boo hdi k22
Make the clien _boo storage pool the default
storage pool
ch p -defa l clien _boo
Add hdi k23to the clien _boo storage pool
ch p -add - p clien _boo hdi k23
List all the physical disks in the clien _boo
storage pool
l p -de ail - p clien _boo
List all the physical disks in the default storage
pool
l p -de ail
List all the backing devices (LVs) in the default
storage pool
l p -bd
Note: This command does NOT show virtual
media repositories. Use the l pcommand
(with no options) to list free space in all
storage pools.
Vi
al Ne
o k Se p & Managemen
SEA Se p - O e ie
The command used to set up a SEA (Shared
Ethernet Adapter) is mk de .
IP addresses cannot be configured on either
the virtual or the physical adapter used in the
mkvdev command. IP addresses are configured
either on the SEA itself (created by the mk de
- eacommand) or another physical or virtual
adapter that is not part of a SEA "bridge". (An
example of the latter is seen in Figure 2.)
Best practices suggest that IP addresses for
the VIOS should not be created on the SEA but
should be put on ano her virtual adapter in the
. ab e
ace. e /
ic
hee /
ic
a .h
8/14
12/20/11
e VM Q ic S a
ace. e /
ic
hee /
ic
a .h
12/20/11
e VM Q ic S a
SEA Management
Find virtual adapters associated with SEA ent4
l de -de en 4 -a
i _adap e
Find control channel (for SEA Failover) for SEA
ent4
l de -de en 4 -a
c l_chan
Find physical adapter for SEA ent4
l de -de en 4 -a
eal_adap e
SEA Failover
Unlike a regular SEA adapter, a SEA failover
configuration has a few settings that are
different from stated best practices.
A SEA failover configuration is a situation when
IP addresses ho ld be configured on the SEA
adapter.
A control channel must be configured between
the two VIOS using two virtual ethernet
adapters that use that VLAN strictly for this
purpose. The local virtual adapter created for
this purpose should be specified in the
c l_chanattribute in each of the SEA setups.
Both virtual adapters (on the VLAN with clients)
should be configured to "Access External
network", but one should have a higher priority
. ab e
ace. e /
ic
hee /
ic
a .h
12/20/11
e VM Q ic S a
De ices
Discover new devices
cfgdev
This is the VIOS equivalent of the AIX
cfgmgrcommand.
List all adapters (physical and virtual) on the
system
lsdev -type adapter
List only virtual adapters
lsdev -virtual -type adapter
List all virtual disks (created with mkvdev
command)
lsdev -virtual -type disk
Find the WWN of the fcs0 HBA
lsdev -dev fcs0 -vpd grep Network
List the firmware levels of all devices on the
system
lsfware -all
The invscoutcommand is also available in
VIOS.
Get a l g listing of every device on the system
lsdev -vpd
List all devices (physical and virtual) by their slot
. ab e
ace. e /
ic
hee /
ic
a .h
11/14
12/20/11
e VM Q ic S a
address
lsdev -slots
Ke VIOS Commands
VIOS commands are documented b categories on this InfoCenter page.
The l mapcommand
Used to list mappings between virtual adapters
and physical resources.
List all (virtual) disks attached to the vhost0
adapter
lsmap -vadapter vhost0
. ab e
ace. e /
ic
hee /
ic
a .h
12/20/11
e VM Q ic S a
The mk de command
Used to create a mapping between a virtual
adapter and a physical resource. The result of
this command will be a "virtual device".
Create a SEA that links physical ent0to virtual
ent1
mkvdev -sea ent0 -vadapter ent1 -default
ent1 -defaultid 1
The -defaultid 1in the previous command
refers to the default VLAN ID for the SEA. In
this case it is set to the VLAN ID of the
virtual interface (the virtual interface in this
example does not have 802.1q enabled).
The -default ent1in the previous
command refers to the default virtual
interface for untagged packets. In this case
we have only one virtual interface
associated with this SEA.
Back p
Create a mksysb file of the system on a NFS
mount
backupios -file /mnt/vios.mksysb -mksysb
Create a backup of all structures of (online) VGs
and/or storage pools
savevgstruct vdiskvg(Data will be saved to
/home/ios/vgbackups)
List all (known) backups made with savevgstruct
restorevgstruct -ls
Backup the system (mksysb) to a NFS mounted
filesystem
backupios -file /mnt
. ab e
ace. e /
ic
hee /
ic
a .h
sysplan files can be created from the HMC persystem menu in the GUI or from the command
line using mksysplan.
Partition data stored on the HMC can be backed
up using (GUI method): per-system pop-up
menu -> Configuration -> Manage Partition
Data -> Backup
13/14
12/20/11
e VM Q ic S a
VIOS Securit
List all open ports on the firewall configuration
io ec e -fi e all ie
To view the current securit level settings
io ec e - ie -nonin
Change s stem securit settings to default
io ec e -le el defa l
. ab e
ace. e /
ic
hee /
ic
a .h
14/14