Professional Documents
Culture Documents
VIO Server IMT France
VIO Server IMT France
VIO server
Installation
Configuration
Standardization
Author : Alain Lentini
Document Management
Changes history
Version
1.0
2.0
Date
May 2008
February 2010
author
A.Lentini
A.Lentini
Changes
Initial version DRAFT
Reviewers list
Name
Ling Wai Hung
Stphane Saleur
Guy Aluno
Sylvain Desnoes
Nicolas Doz
Date
February 2010
February 2010
February 2010
February 2010
February 2010
-2-
1.
INTRODUCTION ..............................................................................................................7
2.
3.
4.
3.1.
3.2.
3.3.
4.1.1.
4.1.2.
4.1.2.1.
Create virtual Ethernet adapter on VIO1 .......................................................................... 10
4.1.2.1.1. command line mode........................................................................................................ 11
4.1.2.2.
create control channel on VIO1 ........................................................................................ 11
4.1.2.2.1. command line mode........................................................................................................ 12
4.1.2.2.2. rules and naming convention .......................................................................................... 12
4.1.2.3.
sea creation ........................................................................................................................ 13
4.1.3.
4.1.3.1.
Create virtual Ethernet adapter on VIO2 .......................................................................... 13
4.1.3.1.1. command line mode........................................................................................................ 14
4.1.3.2.
create control channel on VIO2 ........................................................................................ 14
4.1.3.2.1. command line mode........................................................................................................ 15
4.1.3.3.
sea creation ........................................................................................................................ 15
4.1.4.
4.1.4.1.
4.1.4.2.
4.2.
ETHERCHANNEL.............................................................................................................................. 16
4.3.
4.3.1.
4.3.2.
4.3.3.
4.3.4.
4.3.4.1.
Create virtual Ethernet adapter on VIO1 .......................................................................... 17
4.3.4.1.1. command line mode........................................................................................................ 18
4.3.4.2.
create control channel on VIO1 ........................................................................................ 18
4.3.4.2.1. rules and naming convention .......................................................................................... 19
4.3.4.3.
sea creation on VIO1.......................................................................................................... 20
4.3.5.
-3-
4.3.6.
4.3.6.1.
Create virtual Ethernet adapter on VIO2 .......................................................................... 20
4.3.6.1.1. command line mode........................................................................................................ 21
4.3.6.2.
create control channel on VIO2 ........................................................................................ 21
4.3.6.3.
sea creation on VIO2.......................................................................................................... 22
4.3.7.
4.3.7.1.
4.3.7.2.
4.3.8.
4.4.
4.4.1.
4.4.2.
4.4.3.
4.4.4.
4.4.4.1.
Create virtual Ethernet adapters on VIO1 ........................................................................ 25
4.4.4.1.1. command line mode........................................................................................................ 26
4.4.4.2.
create control channel on VIO1 ........................................................................................ 27
4.4.4.2.1. command line mode........................................................................................................ 27
4.4.4.2.2. rules and naming convention .......................................................................................... 28
4.4.4.3.
sea creation on VIO1.......................................................................................................... 28
4.4.5.
4.4.6.
4.4.6.1.
Create virtual Ethernet adapter on VIO2 .......................................................................... 28
4.4.6.1.1. command line mode........................................................................................................ 29
4.4.6.2.
create control channel on VIO2 ........................................................................................ 30
4.4.6.2.1. command line mode........................................................................................................ 30
4.4.6.3.
sea creation on VIO2.......................................................................................................... 31
4.4.7.
4.4.7.1.
4.4.7.2.
4.4.8.
4.4.8.1.
Create virtual Ethernet adapters on VIO1 ........................................................................ 32
4.4.8.1.1. command line mode........................................................................................................ 33
4.4.8.2.
Update SEA on VIO1 .......................................................................................................... 34
4.4.8.3.
Create virtual Ethernet adapters on VIO2 ........................................................................ 34
4.4.8.3.1. command line mode........................................................................................................ 35
4.4.8.4.
Update SEA on VIO2 .......................................................................................................... 35
4.4.8.5.
Client partition configuration ............................................................................................ 36
4.4.8.5.1. Create virtual Ethernet on client partition ........................................................................ 36
4.4.8.5.2. IP configuration on client partition ................................................................................... 36
5.
-4-
5.1.1.
5.1.2.
5.1.2.1.
5.1.2.2.
5.2.
5.3.
5.4.
5.4.1.
CONFIGURATION 1 ..................................................................................................................... 39
5.4.2.
CONFIGURATION 2 ..................................................................................................................... 40
5.4.3.
CONFIGURATION 3 ..................................................................................................................... 40
5.5.
5.6.
5.6.1.
5.6.1.1.
5.6.2.
5.6.3.
5.6.8.1.
5.6.9.
5.6.7.1.
5.6.8.
5.6.6.1.
5.6.7.
5.6.5.1.
5.6.6.
5.6.4.1.
5.6.5.
5.6.3.1.
5.6.4.
5.6.2.1.
5.6.10.
5.6.11.
5.6.11.1.
5.6.11.2.
5.6.11.3.
5.6.11.4.
6.
priority................................................................................................................................. 48
hcheck_interval .................................................................................................................. 49
queue depth........................................................................................................................ 49
vscsi_path_to ..................................................................................................................... 49
-5-
6.1.
7.
7.2.
-6-
1.
Introduction
In this document, we assume that we must redundant VIO servers for each type of I/O.
This means we can have configuration with 2 VIO servers for LAN and 2 others VIO servers
for SAN, or we can have configuration with 2 VIO servers for LAN and SAN.
You can use the document to adapt to other types of configurations, but you manage the risks.
2.
-7-
Vscsi configuration 1 : 2 SAN VIO - 1 storage subsystem - 1 vscsi server per VIO server
-8-
Vscsi configuration 2 : 2 SAN VIO - 2 storage subsystems - 2 vscsi server per VIO
3.
install OS Vio
3.1.
http://www14.software.ibm.com/webapp/set2/sas/f/vios/home.html
3.2.
3.3.
VIOs BACKUP/RESTORE
backupios -file /mnt ( generate a tar file containing a mksysb and other informations )
The command creates a full backup tar file package including all of the resources that the installios
command will need to install a Virtual I/O Server (mksysb, bosinst.data, network bootimage, and
SPOT) from an HMC using the installios command. backupios file
4.
-9-
4.1.2.
4.1.2.1.
Create the Virtual LAN adapter on the Hmc ( with dlpar and in the Vio partition profile ) :
- 10 -
4.1.2.1.1.
4.1.2.2.
- 11 -
4.1.2.2.1.
4.1.2.2.2.
slot number
all slots > 10
slots < 50 : LAN slots
slots > 50 : VSCSI slots
same slots on both VIO
PVID
x
- 12 -
( Use virtual VLAN id different from the network VLAN on the switch )
2000 + Physical VLAN id
This rule is mandatory for configuration with several SEA on the same VLAN.
For example, in case of VIO pro and pre-prod separated, you must use the same vlan on the
SEA of prod and pre-prod. So you must use different VLANid between prod and pre-prod
SEA.
PVID for control channel
x
4.1.2.3.
sea creation
4.1.3.
4.1.3.1.
- 13 -
4.1.3.1.1.
4.1.3.2.
- 14 -
4.1.3.2.1.
4.1.3.3.
sea creation
mkvdev -sea ent0 -vadapter ent8 -default ent8 -defaultid 1101 attr ha_mode=auto
ctl_chan=ent13
ent14
Important: If you do not define the ctl_chan attribute to the Shared Ethernet Adapters,
they will not be able to negotiate which one is providing the bridging functionality. At this
point, both SEAs will be bridging and a spanning tree loop can be formed. To avoid this,
always specify the these parameters with the SEA creation.
4.1.4.
- 15 -
4.1.4.1.
4.1.4.2.
4.2.
etherchannel
4.3.
4.3.1.
This solution works properly but dont allow a dynamic update when you have to add a new
vlan on your network. It needs to delete the SEA to add a new vlan.
4.3.2.
- 16 -
4.3.3.
4.3.4.
4.3.4.1.
Trunck priority 1
Not required
- 17 -
4.3.4.1.1.
4.3.4.2.
- 18 -
4.3.4.2.1.
This rule is mandatory for configuration with several SEA on the same VLAN.
- 19 -
For example, in case of VIO pro and pre-prod separated, you must use the same vlan on the
SEA of prod and pre-prod. So you must use different VLANid between prod and pre-prod
SEA.
PVID for control channel
decrement from 900
4.3.4.3.
lsdev slots
U9117.MMA.652F8CE-V2-C14 Virtual I/O Slot ent36
U9117.MMA.652F8CE-V2-C16 Virtual I/O Slot ent38
lsdev Cc adapter
ent34 Available
mkvdev -sea ent34 -vadapter ent36 -default ent36 -defaultid 808 -attr ha_mode=auto
ctl_chan=ent38
ent39
4.3.5.
4.3.6.
4.3.6.1.
Trunck priority 2
Not required
- 20 -
4.3.6.1.1.
4.3.6.2.
- 21 -
4.3.6.3.
lsdev slots
U9117.MMA.652F8CE-V2-C14 Virtual I/O Slot ent36
U9117.MMA.652F8CE-V2-C16 Virtual I/O Slot ent38
lsdev Cc adapter
ent34 Available
mkvdev -sea ent34 -vadapter ent36 -default ent36 -defaultid 808 -attr ha_mode=auto
ctl_chan=ent38
ent39
4.3.7.
4.3.7.1.
- 22 -
4.3.7.2.
4.3.8.
- 23 -
Create the client virtual device and set the IP address on the client partition
4.4.
4.4.1.
- 24 -
4.4.2.
This solution is recommended because adding new vlan on the SEA is dynamic.
Even when a client network is stable, the client need can change at any time.
4.4.3.
4.4.4.
4.4.4.1.
Create one virtual Ethernet adapter per vlan on each VIO server.
Trunck priority 1
- 25 -
4.4.4.1.1.
- 26 -
4.4.4.2.
4.4.4.2.1.
- 27 -
4.4.4.2.2.
slot number
all slots > 10
slots < 50 : LAN slots
slots > 50 : VSCSI slots
same slots on both VIO
PVID
x
This rule is mandatory for configuration with several SEA on the same VLAN.
For example, in case of VIO pro and pre-prod separated, you must use the same vlan on the
SEA of prod and pre-prod. So you must use different VLANid between prod and pre-prod
SEA.
PVID for control channel
x
4.4.4.3.
lsdev slots
U9117.MMA.652F8CE-V2-C14 Virtual I/O Slot ent36
U9117.MMA.652F8CE-V2-C15 Virtual I/O Slot ent37
U9117.MMA.652F8CE-V2-C16 Virtual I/O Slot ent38
lsdev Cc adapter
ent34 Available
mkvdev -sea ent34 -vadapter ent36 ent37 -default ent36 -defaultid 808 -attr ha_mode=auto
ctl_chan=ent38
ent39 ( new device genereted )
4.4.5.
4.4.6.
4.4.6.1.
Trunck priority 2
- 28 -
4.4.6.1.1.
- 29 -
4.4.6.2.
4.4.6.2.1.
- 30 -
virtual-slot-number/is-IEEE/ port-vlan-ID/additional-vlan-IDs/trunk-priority/is-required
4.4.6.3.
mkvdev -sea ent34 -vadapter ent36 ent37 -default ent36 -defaultid 808 -attr ha_mode=auto
ctl_chan=ent38
ent39 ( new device genereted )
4.4.7.
4.4.7.1.
- 31 -
4.4.7.2.
lsdev Cc adapter
ent0 U9117.MMA.652F8CE-V27-C2-T1 Virtual I/O Ethernet Adapter
set IP address on the device ent0.
ent1 U9117.MMA.652F8CE-V27-C3-T1 Virtual I/O Ethernet Adapter
set IP address on the device ent1.
4.4.8.
4.4.8.1.
- 32 -
4.4.8.1.1.
- 33 -
4.4.8.2.
lsdev -slots
U9117.MMA.652F8CE-V3-C17 Virtual I/O Slot ent56
U9117.MMA.652F8CE-V3-C18 Virtual I/O Slot ent57
chdev -dev ent39 -attr virt_adapters=ent36,ent37, ent56, ent57
4.4.8.3.
- 34 -
4.4.8.3.1.
4.4.8.4.
lsdev -slots
U9117.MMA.652F8CE-V3-C17 Virtual I/O Slot ent56
U9117.MMA.652F8CE-V3-C18 Virtual I/O Slot ent57
chdev -dev ent39 -attr virt_adapters=ent36,ent37, ent56, ent57
- 35 -
4.4.8.5.
4.4.8.5.1.
4.4.8.5.2.
- 36 -
5.
5.1.1.
Depending on your ios version and fixpack level, its possible that the vtd name can be
renamed by LPM. In this case, its useless to define vtd naming convention.
Depending on the customer specific context, it can be usefull that the vtd contains several
information such as the geographical or functional information.
Here is the recommended vtd syntax :
[ additional information ] [ _ ] < client partition name > [ _ ] < lun_id >
additional information : any geographical or functional information
client partition name : this name can be reduced if necessary
lun_id
: lun id on the storage subsystem
Examples :
usr210_0543
us : counry
r210 : a part of the client partition name
0543 : lunid on DS8000
saxsap12phd4
saxsap12p : a part of the client partition name
hd4 : corresponding disk on the client partition
5.1.2.
5.1.2.1.
- 37 -
x
x
Use Odd numbered slots starting at 21 for connection to the first VIO server, and use
even numbered slots starting at 20 for connection to the second VIO server.
Allocate slots in pairs, with each client using two adjacent slots such as 21 and 20, or
31 and 30.
5.1.2.2.
Use the same slot number between the vscsi server and client adapter.
5.2.
5.3.
As explained below, you have to take care of the maximum disks per virtual adapter server on
the VIO.
Use the following process to evaluate this max value : ( 512 2 ) / ( 3 + queue depth )
See redbook power VM Virtualization Managing and monitoring
sg247590.pdf chapter 2.5.2 Virtual device slot numbers:
- 38 -
5.4.
5.4.1.
x
x
x
x
2 SAN VIO
1 storage subsystem
1 vscsi server per VIO server
LPM used
vscsi1 U9119.FHA.832EE32-V234-C21-T1
vscsi0 U9119.FHA.832EE32-V234-C20-T1
Client adapter slot numbers
VIO2
VIO1
- 39 -
Storage B4
Storage B4
5.4.2.
x
x
x
x
configuration 2
2 SAN VIO
2 storage subsystems
2 vscsi server per VIO : 1 for each storage subsystem
LPM used
5.4.3.
x
x
x
x
VIO2
VIO1
VIO2
VIO1
Storage G1
Storage G1
Storage B4
Storage B4
configuration 3
2 SAN VIO
2 storage subsystems
4 vscsi server per VIO : 2 for each storage subsystems ( for nb device limitation )
LPM used
U9119.FHA.834EE9F-V132-C33-T1
U9119.FHA.834EE9F-V132-C32-T1
- 40 -
VIO2
VIO1
Storage G1
Storage G1
vscsi5 U9119.FHA.834EE9F-V132-C23-T1
vscsi4 U9119.FHA.834EE9F-V132-C22-T1
vscsi3 U9119.FHA.834EE9F-V132-C31-T1
vscsi2 U9119.FHA.834EE9F-V132-C30-T1
vscsi1 U9119.FHA.834EE9F-V132-C21-T1
vscsi0 U9119.FHA.834EE9F-V132-C20-T1
Client adapter slot numbers
5.5.
VIO2
VIO1
VIO2
VIO1
VIO2
VIO1
Storage B4
Storage B4
Storage G1
Storage G1
Storage B4
Storage B4
5.6.
Vio servers :
Client partition :
building :
dual storage :
LPM used
VIE1P01MMA04B4 VIE2P01MMA04B4
PODCLIENT_TEST6
B4 and G1
1 storage subsystem in each building
Doesnt need the same slot number between server and client adapter
In this example, the values of vscsi server adapters slot number is not important as LPM is
used.
5.6.1.
- 41 -
5.6.1.1.
5.6.2.
- 42 -
5.6.2.1.
5.6.3.
- 43 -
5.6.3.1.
client partition device, vio1, server slot 50, client slot 20, storage B4
chsyscfg -r prof -m 9119-FHA-SN834EE9F-BA1A05D12 -i
"name=default,lpar_id=128,virtual_scsi_adapters+=20/client//VIE1P01MMA04B4/50/1"
5.6.4.
5.6.4.1.
client partition device,vio2, server slot 51, client slot 21, storage B4
chsyscfg -r prof -m 9119-FHA-SN834EE9F-BA1A05D12 -i
"name=default,lpar_id=128,virtual_scsi_adapters+=21/client//VIE2P01MMA04B4/40/1"
5.6.5.
- 44 -
5.6.5.1.
5.6.6.
- 45 -
5.6.6.1.
5.6.7.
- 46 -
5.6.7.1.
client partition device, vio1, server slot 60, client slot 30, storage G1
chsyscfg -r prof -m 9119-FHA-SN834EE9F-BA1A05D12 -i
"name=default,lpar_id=128,virtual_scsi_adapters+=30/client//VIE1P01MMA04B4/60/1"
5.6.8.
5.6.8.1.
client partition device, vio2, server slot 61, client slot 31, storage G1
chsyscfg -r prof -m 9119-FHA-SN834EE9F-BA1A05D12 -i
"name=default,lpar_id=128,virtual_scsi_adapters+=31/client//VIE2P01MMA04B4/61/1"
5.6.9.
lsdev -slots
U9119.FHA.834EE9F-V4-C50 Virtual I/O Slot vhost0
U9119.FHA.834EE9F-V4-C60 Virtual I/O Slot vhost5
x
x
rootvg
hdisk13 B4
hdisk52 G1
su - padmin -c ioscli mkvdev -vdev hdisk13 -vadapter vhost0 -dev p10_0230 ;
ssh PODCLIENT_TEST6 cfgmgr
su - padmin -c ioscli mkvdev -vdev hdisk52 -vadapter vhost5 -dev p10_0231 ;
IBM France ITD La Gaude Unix team 2010
- 47 -
5.6.10.
lsdev -slots
U9119.FHA.834EE9F-V4-C40 Virtual I/O Slot vhost0
U9119.FHA.834EE9F-V4-C45 Virtual I/O Slot vhost5
The vhosts are the same as the vhosts of VIO1, the script to generate the virtual devices is the
same.
5.6.11.
5.6.11.1.
- 48 -
5.6.11.2.
hcheck_interval
5.6.11.3.
queue depth
For all the device disks of the client partitions, set the queue depth at the same value as the
queue depth value of the physical disks of the VIO servers.
See recommendation redbook "Virt Best Practices Redp4194" chapter 4.8 SCSI queue depth:
We recommend that you have the same queue depth on the virtual disk as the physical disk
5.6.11.4.
vscsi_path_to
see redbook sg247940 advanced power virtualization chapter 4.2.1 MPIO in the client partition
On all the virtual scsi devices of the client partition, put the following value :
chdev -l vscsiX -a vscsi_path_to=30 P
6.
Start the slots numbers to 20 for the Vscsi devices. Use < 20 for the LAN devices.
Use even slots numbers for VIO1 and odd numbers for VIO2
Use the first slot number for Aix disk and the other for the swap disk
Set the maximum slot number to a value that prevents the VIO partition stop.
6.1.
On vioserver1
- 49 -
- 50 -
Here is an example of the result after the creation of 4 virtual scsi client adapter :
- 51 -
7.
7.1.
7.2.
- 52 -
- 53 -