Professional Documents
Culture Documents
LPAR2RRD
LPAR2RRD
Power Systems
using LPAR2RRD
Agenda
Creates historical, future trends and nearly "real-time" CPU utilization graphs of LPAR's
and shared CPU usage of IBM Power servers.
Collects complete physical and logical configuration of all physical servers & LPAR's.
It is agent less (getting all required data from management stations like the
HMC/SDMC/FSM and IVM).
It supports all kinds of logical partitions:
AIX / AS400 / Linux / VIOS
Introduction to LPAR2RRD
It graphically presents:
CPU workload per partition
CPU per CPU Pool/physical server
Memory usage on physical server
It natively supports following IBM technologies
CPU sharing
Live Partition Mobility
Active Memory Sharing
Active Memory Expansion
Capacity on Demand
IT Capacity Planning
The problem:
How to manage the CPU pools and sub pools on IBM Power Systems
Document actual setup
Knowledge of free resources
Determine CPU usage trends
Report consumption of resources per LPAR
Identify abnormal CPU usage
Manage Capacity
Compare CPU load on different server models for migration purposes
LPAR2RRD - highlights
Step 1
User Creation
useradd -c "LPAR2RRD user" -m lpar2rrd
Set User attirbutes
chdev -l sys0 -a maxuproc=2000
chuser nofiles=32768 data=-1 stack=-1 rss=-1 lpar2rrd
Install RRDTool
rpm -Uvh rrdtool-1.4.8-2.aix5.1.ppc.rpm
rpm -Uvh rrdtool-perl-1.4.8-2.aix5.1.ppc.rpm
LPAR2RRD Installation steps (Continued)
Step 2
Web Server Installation
rpm -Uvh perl-Crypt-SSLeay-0.57-2.aix6.1.ppc.rpm
rpm -Uvh --nodeps --replacefiles perl-Net_SSLeay.pm-1.55-3.aix6.1.ppc.rpm
rpm -Uvh readline-6.1-2.aix6.1.ppc.rpm
rpm -Uvh db-4.8.24-3.aix6.1.ppc.rpm
rpm -Uvh lua-5.1.5-1.aix6.1.ppc.rpm
rpm -Uvh openldap-2.4.40-1.aix6.1.ppc.rpm
rpm -Uvh pcre-8.33-1.aix6.1.ppc.rpm
rpm -Uvh mod_ssl-2.4.18-1.aix6.1.ppc.rpm
rpm -Uvh expat-2.1.1-1.aix6.1.ppc.rpm
rpm -Uvh httpd-2.4.18-1.aix6.1.ppc.rpm Set User attirbutes
chdev -l sys0 -a maxuproc=2000
chuser nofiles=32768 data=-1 stack=-1 rss=-1 lpar2rrd
LPAR2RRD Installation steps (Continued)
Step 3
Web Server configuration
# vi /opt/freeware/etc/httpd/conf/httpd.conf
# CGI-BIN
ScriptAlias /lpar2rrd-cgi/ "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/"
<Directory "/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi">
AllowOverride None
SetHandler cgi-script
Options ExecCGI Includes FollowSymLinks
Require all granted
</Directory>
Save and Exit
LPAR2RRD Installation steps (Continued)
Step 4
LPAR2RRD Installation
# su - lpar2rrd
$ tar xvf lpar2rrd-6.XX.tar
$ cd lpar2rrd-6.XX
$ ./install.sh
$ cd /home/lpar2rrd/lpar2rrd
Step 5
Crontab Entry
$ crontab -e
###### LPAR2RRD UI ######
0 * * * * /home/lpar2rrd/lpar2rrd/load.sh > /home/lpar2rrd/lpar2rrd/load.out 2>&1
LPAR2RRD Installation steps (Continued)
Step 6
Crontab Entry for HMC
$ crontab -e
# HMC REST API support
0,20,40 * * * * /home/lpar2rrd/lpar2rrd/load_hmc_rest_api.sh > /home/lpar2rrd/lpar2rrd/load_hmc_rest_api.out 2>&1
Step 5
Load LPAR2RRD
$ cd /home/lpar2rrd/lpar2rrd
$ ./load.sh
Step 7
Login to client lpar and install LPAR2RRD agent RPM
rpm -Uvh lpar2rrd-agent-7.00-0.ppc.rpm
# su - lpar2rrd
$ crontab -e
* * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <LPAR2RRD-SERVER.your-domain.com> >
/var/tmp/lpar2rrd-agent.out 2>&1
LPAR2RRD Installation steps (Continued)