Beruflich Dokumente
Kultur Dokumente
Session Title: Implementing Live Mobility with Virtual Fibre Channel Session ID: VMA14
Speaker Name: Ron Barker
IBM Training
Agenda
Virtual I/O Server overview N_Port ID Virtualization (NPIV) overview Implementing NPIV prerequisites Steps to NPIV implementation NPIV and Live Partition Mobility
IBM Training
IBM Training
NPIV overview
N_Port ID Virtualization (NPIV) is a fibre channel industry standard for virtualizing a physical fibre channel port. NPIV allows one physical port to be associated with multiple virtual ports, so a single physical adapter can be shared across multiple guest operating systems On Power Systems, NPIV allows logical partitions (LPARs) to have a unique identity to the SAN, just as if it had a dedicated physical fibre channel adapter
IBM Training
vSCSI
vio client generic scsi disk SCSI
VIOS VIOS VIOS
NPIV
vio client generic scsi disk EMC EMC FCP
VIOS
IBM 2105
FC HBAs
FC HBAs
FC HBAs
FC HBAs
SAN
SAN
EMC
IBM 2105
EMC
IBM 2105
In the vSCSI model, the VIOS is a storage virtualizer. Heterogeneous storage is pooled by the VIOS into a homogeneous pool of block storage and then allocated to client LPARs in the form of generic SCSI LUNs. The VIOS performs SCSI emulation and acts as the SCSI Target.
5
With NPIV, the VIOS's role is fundamentally different. The VIOS facilitates adapter sharing only. There is no device level abstraction or emulation. Rather than a storage virtualizer, the VIOS serving NPIV is a pass-thru device, providing an FCP connection from the client to the SAN.
2009 IBM Corporation
IBM Training
NPIV specifics
VIOS V2.1 (PowerVM Express, Standard, and Enterprise) Client OS support: AIX(5.3, 6.1); Suse SLES 11, Red Hat 5.4; IBM i later this year POWER6 only; Blade support next month 8 Gigabit PCI Express Dual Port Fibre Channel Adapter Compatible with Live Partition Mobility (LPM) VIO servers can support NPIV and vSCSI simultaneously Clients can support NPIV, vSCSI and dedicated Fibre Channel simultaneously HMC-managed or IVM-managed servers Unique Worldwide Port Name (WWPN) generation (allocated in pairs) for each virtual adapter
6 2009 IBM Corporation
IBM Training
NPIV benefits
Ability to use multi-path code commands specific to the storage without having to go to the VIO server Avoids VIOS physical-to-virtual disk compatibility issues, thus enabling bit-by-bit utilities such as FlashCopy, TruCopy, MetroMirror, SRDF, etc. Avoids having to map LUNs from the VIOSs to the VIOCs Avoids having to manage SCSI reserves with dual VIOSs Allows an administrator to manage queue_depth at the VIOC rather than at both the VIOS and VIOC Ability to attach tape libraries
7 2009 IBM Corporation
IBM Training
NPIV limitations
Installing storage management code on the client instead of the VIO server means you potentially will have many different copies of code to install and maintain Updating multi-path code may require a reboot of the partition, causing an outage
Updating multi-path code when booting from SAN can be complicated With dual VIO servers and VSCSI, an interruption to the clients operation could be avoided since one VIOS could be available during the update process
IBM Training
VIOS
N P I V
N P I V
WWPN
vio client
WWPN
vio client
WWPN
WWPN
vio client
WWPN
vio client
WWPN WWPN
WWPN WWPN
vio client
vio client
WWPN
WWPN
vio client
VIOS
VIOS
IBM Training
10
IBM Training
11
IBM Training
Check with your storage vendor to make sure the switch is NPIV capable Order and install the latest available firmware for your SAN switch to enable this feature
12
IBM Training
Create either in initial VIOS configuration or add via DLAP; then save to permanent configuration
13 2009 IBM Corporation
IBM Training
14
IBM Training
15
IBM Training
16
IBM Training
17
IBM Training
18
IBM Training
description FC Adapter FC Adapter 4Gb FC PCI Express Adapter 4Gb FC PCI Express Adapter 8Gb PCI Express Dual Port FC Adapter 8Gb PCI Express Dual Port FC Adapter
IBM Training
20
IBM Training
Name Physical port name Physloc Physical port location code Fabric Fabric support Tports Total number of virtual ports Aports Number of available virtual ports as yet unused Swwpns Total number of client worldwide port names supported Awwpns Number of client worldwide port names available
21
IBM Training
Maps the Virtual Fibre Channel Adapter to the physical Fibre Channel Port -vadapter -fcp Example: $ vfcmap vadapter vfchost0 fcp fcs4 Specifies the virtual server adapter. Specifies the physical Fibre Channel Port
22
IBM Training
Or, alternatively, you could run lsmap npiv vadapter vfchostN to produce the same results for a single virtual adapter
23
IBM Training
Provide both the primary and secondary WWPN (assigned as a pair) to enable Live Partition Mobility The WWPN of the physical Fibre Channel adapter (server) is NOT needed
24
IBM Training
Switch View
IBM Training
Mappings
IBM Training
Storage View
IBM Training
28
IBM Training
29
IBM Training
30
IBM Training
Secondary WWPN
31
IBM Training
The primary WWPN shows up automatically when the LPAR connects, but the secondary must be added manually
The secondary WWPN is used during mobility to login to the target VIO servers FC adapter to verify connectivity to the LUN During the migration, both primary and secondary WWPNs will be visible on the switch After the migration, the secondary WWPN will be one seen The primary WWPN will be used to login to the destination server during the next migration; round-robin usage
32
IBM Training
33
IBM Training
IBM Training
IBM Training
IBM Training
Validation
Capability and compatibility check Resource Monitoring and Control (RMC) check Partition readiness System resource availability Virtual adapter mapping (i.e., availability of a VFC server adapter) Operating system and application readiness check
IBM Training
Migration
If validation passes, migration can begin From this point, all state changes are rolled back if an error occurs
Mobile Partition
MSP
VASI
MSP
33
VASI
Mobile Partition
22
4 4
IBM Training
Migration Steps (1 of 6)
The HMC creates a shell partition on the destination system The HMC configures the source and destination Mover Service Partitions (MSP) MSPs connect to PHYP thru the Virtual Asynchronous Serial Interface (VASI) The MSPs set up a private, full-duplex channel to transfer partition state data
IBM Training
Migration Steps (2 of 6)
The HMC sends a Resource Monitoring and Control (RMC) event to the mobile partition so it can prepare for migration The HMC creates the virtual target devices and virtual SCSI adapters in the destination MSP The MSP on the source system starts sending the partition state to the MSP on the destination server
IBM Training
Migration Steps (3 of 6)
The source MSP keeps copying memory pages to the target in successive phases until modified pages have been reduced to near zero The MSP on the source instructs the PHYP to suspend the mobile partition The mobile partition confirms the suspension by suspending threads
IBM Training
Migration Steps (4 of 6)
The source MSP copies the latest modified memory pages and state data Execution is resumed on the destination server and the partition re-establishes the operating environment The mobile partition recovers I/O on the destination server and retries all uncompleted I/O operations that were going on during the suspension It also sends gratuitous ARP requests to all VLAN adapters
IBM Training
Migration Steps (5 of 6)
When the destination server receives the last modified pages, the migration is complete In the final steps, all resources are returned to the source and destination systems and the mobile partition is restored to its fully functional state The channel between MSPs is closed The VASI channel between MSP and PHYP is closed Virtual adapters on the source MSP are removed
IBM Training
Migration Steps (6 of 6)
The HMC informs the MSPs that the migration is complete and all migration data can be removed from their memory tables The mobile partition and all its profiles are deleted from the source server You can now add dedicated adapters to the mobile partition via DLPAR as needed, or put it in an LPAR workload group
IBM Training
References
IBM Redbooks
PowerVM Virtualization on IBM Power Systems (Volume 2): Managing and Monitoring (SG24-7590-01) IBM PowerVM Live Partition Mobility (SG24-7460-01)
45