You are on page 1of 18

Optimizing Power with Live partition mobility

Power VM Live Partition Mobility

IBM Client Center - Montpellier - IBM France

1 / 18

2013-02-07

POWER VM Live Partition Mobility

Table of Contents
1
2
3
3.1
3.2
3.3
3.4
3.5
3.6
3.7
4
4.1
4.2
4.3

Introduction.......................................................................................................................................... 3
Scope and architecture environment. ................................................................................................... 4
Performing Actions and Verifications before Starting the Demo ........................................................ 5
HMC ................................................................................................................................................. 5
Check LPAR location ....................................................................................................................... 6
Asynchronous IO .............................................................................................................................. 6
Starting db2 Database ....................................................................................................................... 6
Stopping db2 Database ..................................................................................................................... 7
Starting VPS Application.................................................................................................................. 7
Lparmon tool..................................................................................................................................... 7
Demo steps detailed ............................................................................................................................. 9
Demo Step1...................................................................................................................................... 9
Demo Step2.................................................................................................................................... 12
Demo Step3.................................................................................................................................... 13

IBM Client Center - Montpellier - IBM France

2 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

1 Introduction
The goal of this document is to help you demonstrate to your customer the benefits they can get using
PowerVM Live Partition Mobility.

Workload consolidation (e.g. many to one).


Workload balancing (e.g. move to larger system).
Workload migration to newer systems.
Planned CEC outages for maintenance/upgrades.
Impending CEC outages (e.g. hardware warning received).
Not a replacement for HACMP* or a Disaster Recovery Solution.

We provide two IBM Power 750 Express systems, one LPAR is running a DB2 database workload
on the first Power 750, the demonstration will show that we are able to relocate this workload on the
second Power 750 Server without even stopping the transactions processing using PowerVM Live
Partition Mobility feature of Power Systems, this demonstration illustrates the continuity of specific
applications running on an AIX partition, during this live migration.
This document is the user manual of that demonstration. the following chapters describe the
architecture used and propose utilization scenario as well as tips to explain better a particular topic and,
eventually, to anticipate questions.

IBM Client Center - Montpellier - IBM France

3 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

2 Scope and architecture environment.


This demonstration uses the following environment located in the Montpellier PSSC Center.

2 power 750 systems


1 DS4700 storage bay
VIOS on both systems
LAN and SAN/Storage elements

This demo needs one Virtual I/O Server on each Power 750 to be able to create Logical partitions.
Partition named CB-CPT-VIOS1 is on Power 750 system with serial number ????06753A5 named CPT.
Partition named CB-MGT-VIOS2 is on Power 750 system with serial number ?????0675395 named
MGT.
During this demo, well generate a database workload using the IBM VPS application
http://db2vps.torolab.ibm.com/html/D_Welcome.shtml installed on the WAS partition We have a
configuration where the database server and the Websphere Application Server are not on the same
logical partition. There is one partition named WAS and a DB2 partition on MGT.
For the Power VM Live Partition Mobility demonstration, we will move the DB2 partition from MGT to
CPT. The storage and network of the mobile logical partition DB2 used for the Power VM Live Partition
Mobility have to be virtualized ie accessed through a Virtual I/O Server

IBM Client Center - Montpellier - IBM France

4 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

3 Performing Actions and Verifications before Starting the Demo


3.1 HMC
There is 1 HMC with IP@ 10.16.3.248 on the open network. Start Firefox and use the bookmark we have
created in Firefox named Hardware Management Console.

Connect using the password provided ( demolpm/demolpm )

IBM Client Center - Montpellier - IBM France

5 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

3.2 Check LPAR location


When starting the demo the DB2 and the WAS LPARs should be located on the MGT system. If not, move
the LPAR to this system.

3.3 Asynchronous IO
Verify on the DB2 partition that the asynchronous IO are Available. They are needed in order to start the
DB2 database. They are normally started at partition boot time.
To do so, we have to :
Log on as root ( use putty ) (password: demo4ibm)
{db2:root}/ -> lsdev -Cc aio
aio0 Available Asynchronous I/O (Legacy)

3.4 Starting db2 Database


On the DB2 partition the DB2 software must be running. DB2 should be started at partition boot by default.
Just in case use the following procedure.
To do so, we have to :
Log on as root ( use putty )
errclear 0 (this will clean the AIX error report before we start the demo)
su db2inst1 ( db2inst1 is the db instance owner )
/home/db2inst1/scripts/db2_start.sh
What the /home/db2inst1/scripts/db2_start.sh does :
db2start
db2 drop db vps
db2 restore db vps from /home/db2inst1/dbbackup replace existing
So after running this script, you should have a fresh database.

IBM Client Center - Montpellier - IBM France

6 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

3.5 Stopping db2 Database


If you plan for any reason to stop the DB2 Database on DB2 partition, please use the script
/home/db2inst1/scripts/db2stop.sh as db2inst1 user in order to cleanly stop the db.

3.6 Starting VPS Application


The partition WAS hosts a WebSphere application named VPS (as Virtual Production system).
You only need to start the Websphere Application Server (server1). In order to do that, you just need to run
the following command as root:
To do so, we have to :
Log on as root ( use putty ) (password: demo4ibm)
/opt/was/profiles/wasnode/bin/startServer.sh server1
The script tails the log output. You can check that the Server is started when you receive the message
Server server1 open for ebusiness.

3.7 Lparmon tool


Verify that you can monitor the partitions using lparmon. Double click on the icon Lparmon on the desktop.
You should have the following graph the 2 shared partitions should appear.

IBM Client Center - Montpellier - IBM France

7 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Troubleshooting lparmon: if you cannot get the graph for one partition or for all of them , you need to check if
the lparmon agent is running on the partitions.
How to check that the lparmon agent is running :
{was:root}/ -> ps -aef | grep lparmon |grep -v grep
root 282848 319646
0 16:23:18
- 0:01 /usr/sbin/lparmon
root 319646
1
0
Mar 14
- 0:00 /usr/sbin/lparmon
root 340176 282848
0 16:23:18
- 0:00 /usr/sbin/lparmon
If the lparmon processes are not running then you need to start them by executing the following command :
{was:root}/ -> /usr/bin/lparmon

IBM Client Center - Montpellier - IBM France

8 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

4 Demo steps detailed


4.1 Demo Step1
The purpose of this step is to launch a workload on the two partitions ( WAS and DB2).

Connect to the HMC through Firefox using the bookmark named HMC
Start the lparmon tool on windows (lparmon icon on desktop).
Start the VPS application through Internet Explorer using the bookmark named VPS or use the URL
http://10.3.54.74:9080/VirtualProductionSystem/html/Demo.jsp

Click on the Demonstrations menu on the left.

IBM Client Center - Montpellier - IBM France

9 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Check that parameters are correct:


Server :
Port :
DBName :
User :
Password :
Driver :

db2
50000
vps
db2inst1
db2inst1
JDBC Type 4

Select OLTP Scenario on the left. Check the parameters for the connection as follow here under
Refresh Rate :
Workload :
Users :
Think Time :

Every 10 seconds
Only Reads
500
20 ms

IBM Client Center - Montpellier - IBM France

10 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Click on Reset then on Start buttons to start the DB2 workload, the number of Transactions should increase
and reach 7000 Transactions/Second.
While the Virtual Production System for DB2 9 is running, show the CPU consumption with LPARMON.

IBM Client Center - Montpellier - IBM France

11 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

4.2 Demo Step2


We will show that we can have more DB2 transactions by moving the DB2 partition to the CPT system as it is
less loaded than the MGT.
Connect to the DB2 partition using putty icon on the desktop and db2 session, you will connect directly as we
use ssh keys.

Run the script /u/script/cpuid.sh to show the serial number of the system on which the DB2 partition is
running. Serial number of CIRRUS-MGT System is 0210D9EDP.
{db2:root}/root -> /u/script/cpuid.sh
systemid IBM,0210D9EDP Hardware system
systemid IBM,0210D9EDP Hardware system
systemid IBM,0210D9EDP Hardware system
systemid IBM,0210D9EDP Hardware system

identifier
identifier
identifier
identifier

False
False
False
False

Keep this window open to check when the migration is completed.

IBM Client Center - Montpellier - IBM France

12 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

On the HMC window show that the DB2 partition is running on CIRRUS-MGT system and not on STRATUSCPT system.

4.3 Demo Step3


On the HMC window select the DB2 partition box and choose the Validate option.

IBM Client Center - Montpellier - IBM France

13 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Check that destination system is STRATUS-CPT and click on Validate button.

IBM Client Center - Montpellier - IBM France

14 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Click on Migrate button.

You can check the migration status in this window:

IBM Client Center - Montpellier - IBM France

15 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Check on the HMC that the DB2 partition is created on STRATUS-CPT and is in the migrating-running state.

Check that the DB2 partition has moved from CIRRUS-MGT to STRATUS-CPT in the putty screen. The
serial number of DB2 partition has changed from 0210D9EDP to 0210D9EBP
{db2:root}/ -> /u/script/cpuid.sh
..
systemid IBM,0210D9EDP Hardware system identifier False
systemid IBM,0210D9EDP Hardware system identifier False
systemid IBM,0210D9EDP Hardware system identifier False
systemid IBM,0210D9EDP Hardware system identifier False
systemid IBM,0210D9EBP Hardware system identifier False
systemid IBM,0210D9EBP Hardware system identifier False
systemid IBM,0210D9EBP Hardware system identifier False
systemid IBM,0210D9EBP Hardware system identifier False
systemid IBM,0210D9EBP Hardware system identifier False
systemid
systemid
systemid
systemid
systemid

IBM,0306753A5
IBM,0306753A5
IBM,030675395
IBM,030675395
IBM,030675395

IBM Client Center - Montpellier - IBM France

Hardware
Hardware
Hardware
Hardware
Hardware

system
system
system
system
system

identifier
identifier
identifier
identifier
identifier

16 / 18

False
False
False
False
False

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Show on the VPS window that the migration has a low impact on the workload. The number of transactions
decreases during 2 seconds.

IBM Client Center - Montpellier - IBM France

17 / 18

2013-02-07

PowerVM Live Partition Mobility

Version 1.1

Show the CPU consumption with LPARMON.

END of Demo
Stop the VPS application (click on Stop button on VPS interface window IE
browser)

IBM Client Center - Montpellier - IBM France

18 / 18

2013-02-07

You might also like