Skip to main content

Partition Load Manager logging and monitoring

A cool tool to get real-time and historical resource allocation and utilization data

Mu Hyun Kim (kimmh@kr.ibm.com), Advisory IT Specialist, IBM, Intel, Microsoft,HP
Mu Hyun Kim works as an Advisory IT Specialist for IBM Korea. Mu Hyun supports field engineers on AIX and Java problems. Before joining IBM, Mu Hyun worked as a security consultant performing IT audit, penetration test and incident investigation, and developing security policies for four years. You can contact Mu Hyun at kimmh@kr.ibm.com.

Summary:  Accomplish server resource virtualization with the help of the Partition Load Manager. Because the Partition Load Manager reallocates resources dynamically across partitions based on their workload, conventional tools for monitoring and analyzing resources become useless. So, what’s a developer to do? You can use the On-demand Monitoring System (OMS) tool for the Partition Load Manager. It works as an integral component providing real-time and historical utilization and allocation data.

Date:  23 Feb 2007
Level:  Intermediate
Activity:  1831 views

Introduction

The On-demand Monitoring System (OMS) tool is a Web application that periodically stores CPU allocation, utilization, and loads data to a database, providing real-time and historical data (day, week, month, quarter, and year). The OMS tool manages multiple Partition Load Manager groups just as a Partition Load Manager server does, and it uses xlpstat, a Partition Load Manager status retrieval command.

Partition Load Manager

The Partition Load Manager helps to maximize utilization of CPU and memory resources on servers that support dynamic logical partitioning (DLPAR). The IBM Virtual I/O Server (VIO Server) and Partition Load Manager are part of the Advanced POWER™ Virtualization hardware feature.

You can download the tool from this article. The features of OMS include:

  • A database for CPU allocation, utilization, and CPU load
  • Real-time data for CPU allocation, utilization, and CPU load
  • Historical data for CPU allocation, utilization, and CPU load
  • Consolidated CPU utilization data for a physical server

Benefits

The OMS tool and the Partition Load Manager provide real-time and historical resource allocation and utilization data. The historical trend data provides fundamental information for estimating return on investment (ROI), total cost of ownership (TCO), and the IT resource investment plan for the next year.

You can also identify a faulty or mis-configured Partition Load Manager policy by examining allocation status. The OMS tool accomplishes this by providing real-time and historical graphs and average, maximum, or minimum values on resource allocation and utilization. A Web-based interface is provided for easy usage.

How it works

The OMS tool is composed of a database to store resource status, a resource status update script, and a Web application for the user interface. As shown in Figure 1 below, the OMS tool retrieves a partition's resource status data using the Partition Load Manager snapshot xlpstat command. The data is stored in a round-robin database (RRD) data file, which enables historical resource status retrieval. Real-time and historical data is provided by the Web application, which is a set of perl-cgi scripts run by the IBM HTTP Server.


Figure 1. The OMS tool

The following open source software is used:

  • RRD for the database
  • IBM HTTP Server and Perl for the Web server and Web application

Current CPU status graphs and data for a managed system are shown in Figure 2 below.


Figure 2. Current CPU

The historical graphs for CPU utilization and load of a selected partition are shown in Figure 3.


Figure 3. Historical graphs for CPU utilization and load of a selected partition

Required APAR

Due to the socket file accumulation issue, APAR IY95155 needs to be applied before running OMS. If you do not install this APAR, you might face authentication failure of RSCT, which PLM relies on.

Installing OMS

OMS should be installed on a server where the Partition Load Manager server is already running.

OMS requires the following software:

  • Perl (install in AIX>® as default)
  • RRDtool (requires libart_lgpl, freetype2, libpng, and zlib)
  • IBM HTTP Server

Installing RRDtool

To install RRDtool, the libart, freetype2, libpng, and zlib libraries need to be installed first. Use the following commands:

# rpm -ivh libart_lgpl-2.3.16-1.aix4.3.ppc.rpm
# rpm -ivh freetype2-2.1.7-2.aix5.1.ppc.rpm
# rpm -ivh libpng-1.2.1-6.aix5.1.ppc.rpm
# rpm -ivh zlib-1.2.2-4.aix5.1.ppc.rpm
# rpm -ivh rrdtool-1.2.13-1.perl58.aix5.2.ppc.rpm

Testing RRDtool

After installing RRDtool, you need to test it to be sure it works. First, create an RRD database file executing the following command:

# rrdtool create test.rrd             \
           --start 920804400          \
           DS:speed:COUNTER:600:U:U   \
           RRA:AVERAGE:0.5:1:24       \
           RRA:AVERAGE:0.5:6:10


Next, fill the RRD database, as follows:

# rrdtool update test.rrd 920804700:12345 920805000:12357 920805300:12363
# rrdtool update test.rrd 920805600:12363 920805900:12363 920806200:12373
# rrdtool update test.rrd 920806500:12383 920806800:12393 920807100:12399
# rrdtool update test.rrd 920807400:12405 920807700:12411 920808000:12415
# rrdtool update test.rrd 920808300:12420 920808600:12422 920808900:12423

Finally, retrieve the data from the RRD database, as follows:

# rrdtool fetch test.rrd AVERAGE --start 920804400 --end 920809200

                         speed

920804700: nan
920805000: 4.0000000000e-02
920805300: 2.0000000000e-02
920805600: 0.0000000000e+00
920805900: 0.0000000000e+00
920806200: 3.3333333333e-02
920806500: 3.3333333333e-02
920806800: 3.3333333333e-02
920807100: 2.0000000000e-02
920807400: 2.0000000000e-02
920807700: 2.0000000000e-02
920808000: 1.3333333333e-02
920808300: 1.6666666667e-02
920808600: 6.6666666667e-03
920808900: 3.3333333333e-03
920809200: nan

Installing IBM HTTP Server

To install IBM HTTP Server, Java™ software is required. If you do not have the Java software installed, install IBM Java software first.

# java -jar setup.jar -silent

IBM HTTP Server should be installed in /usr/HTTPServer.

Changing IBM HTTP Server configuration

Before changing the IBM HTTP Server configuration, a user account must be created. It is recommended that you use oms for a user ID and oms as a group ID. Then, modify the value in /usr/HTTPServer/conf/httpd.conf, as follows:

User oms
Group nobody

DocumentRoot "/usr/local/plm/htdocs"
<Directory "/usr/local/plm/htdocs">
    Options Indexes FollowSymLinks MultiViews ExecCGI Includes
</Directory>

AddHandler cgi-script .cgi .pl				
AddHandler server-parsed .html

Preparing to run OMS

You need to copy the OMS fileset. OMS files are going to be located in the /usr/local/plm directory. The files are for OMS database management, OMS Web application, and OMS configuration. The following commands should be run as oms user account.

# cd /usr/local
# tar xvf plm-monitoring-tool.tar

The extracted directories and files' owner and group should be oms. If they are not, change ownership using the chown command.

Make sure that files have proper permission set, as follows:

  • At least 644 for *.html
  • At least 755 for *.pl
  • At least 755 for directories

Configuring OMS

To run OMS, the OMS configuration file (/usr/local/plm/conf/grouplist.cfg) should contain the Partition Load Manager group name, Partition Load Manager policy file name, total CPU number, and the number for total memory (MB) for each Partition Load Manager group.

For example, the OMS configuration file looks like the following:

Group_svr3 policy.test 16  131072

Creating RRD database files

First, root authority is required for this operation. After creating the RRD files, change owner and group of the RRD files to oms.

# /usr/local/plm/bin/oms-create-rrd.pl

Changing the logo and OMS title

Replace /usr/local/plm/htdocs/images/client-logo.gif with your organization's logo image file; the recommended size is 100x35. The header title can be modified in /usr/local/plm/htdocs/header.html.

Registering OMS update script to the cron table of the root

The OMS update script should be added to cron table of the root using the crontab -e command, as follows:

####### OMS (PLM Monitoring System) data feeding every minute 
0,5,10,15,20,25,30,35,40,45,50,55 * * * * * /usr/local/plm/bin/oms-update.pl 2>/dev/null

Starting and stopping OMS

To start OMS, only IBM HTTP Server needs to be started. After starting IBM HTTP Server, OMS can be accessed with a Web browser, as follows:

# /usr/HTTPServer/bin/apachectl start

To stop OMS, IBM HTTP Server needs to be stopped, as follows:

# /usr/HTTPServer/bin/apachectl stop

If you want to stop using the OMS update script, comment out the cron entry.

Restrictions

Partition addition or deletion is not supported. The only way to do this is by recreating the OMS database file using oms-create-rrd.pl script -- but all the data will be lost.



Download

DescriptionNameSizeDownload method
OMS toolplm-monitoring-tool.tar14KB HTTP

Information about download methods


Resources

Learn

Get products and technologies

  • IBM trial software: Build your next development project with software for download directly from developerWorks.

Discuss

About the author

Mu Hyun Kim works as an Advisory IT Specialist for IBM Korea. Mu Hyun supports field engineers on AIX and Java problems. Before joining IBM, Mu Hyun worked as a security consultant performing IT audit, penetration test and incident investigation, and developing security policies for four years. You can contact Mu Hyun at kimmh@kr.ibm.com.

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=AIX and UNIX
ArticleID=197393
ArticleTitle=Partition Load Manager logging and monitoring
publish-date=02232007
author1-email=kimmh@kr.ibm.com
author1-email-cc=

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Special offers