Hi Jorg,
from some reason it requires: export LIBPATH=/opt/freeware/lib to prefere /opt/freeware/lib/libexpat.a library, no other way
put it into $LPAR2RRD_HOME/etc/.magic to persists lpar2rrd upgrades, it should resolve it, we have tested it at su and even with someone sle
etc/lpar2rrd.cfg:
PERL=/usr/bin/perl
both below works, use one of them, depends on your perl version
PERL5LIB=/home/lpar2rrd/lpar2rrd/bin:/home/lpar2rrd/lpar2rrd/lib:/usr/opt/perl5/lib/site_perl/5.20.1:/usr/opt/perl5/lib/site_perl/5.20.1/aix-thread-multi:/usr/opt/perl5/lib/site_perl//5.20.1:/usr/opt/perl5/lib
/site_perl//5.20.1/aix-thread-multi:/usr/opt/perl5/lib/5.20.1:/usr/opt/perl5/lib/5.20.1/aix-thread-multi:/opt/freeware/lib/perl5/5.30/vendor_perl
PERL5LIB=/home/lpar2rrd/lpar2rrd/bin:/home/lpar2rrd/lpar2rrd/vmware-lib:/usr/opt/perl5/lib/5.28.1:/usr/opt/perl5/lib/5.28.1/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.28.1:/opt/freeware/lib/perl5/vendor_perl/5.8.8:/usr/opt/perl5/lib/site_perl/5.20.1:/home/lpar2rrd/lpar2rrd/lib:/opt/freeware/lib/perl5/site_perl/5.28.1/ppc-aix-thread-multi:/opt/freeware/lib/perl5/site_perl/5.22.0/ppc-aix-thread-multi:/opt/freeware/lib/perl5/5.34/vendor_perl:/home/lpar2rrd/lpar2rrd/lib
Contact us directly as you usually do, this is not our official support channel.
Pavel
LPAR2RRD support
------------------------------
Pavel Hampl
------------------------------
Original Message:
Sent: Mon September 12, 2022 09:41 AM
From: Joerg Kauke
Subject: lpar2rrd not working after updating rrdtool and Perl
Hello Keith,
many thanks for your detailed instruction. I will definitely try it out...
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
Original Message:
Sent: Mon September 12, 2022 09:19 AM
From: Keith Barth
Subject: lpar2rrd not working after updating rrdtool and Perl
Joerg,
I recently did a perl conversion from the original LPAR2RRD version of perl to the AIX Toolbox version of perl. Here are the steps I ended up taking to make it work:
- Stop LPAR2RRD (./load.sh daemon_stop) and comment out the load and health checks in the LPAR2RRD crontab.
- Uninstall (yum erase) the following:
- perl.ppc 5.8.8-2 @/perl-5.8.8-2.aix5.1.ppc
- perl-Compress-Raw-Zlib.ppc 2.020-1 @/perl-Compress-Raw-Zlib-2.020-1.aix5.1.ppc
- perl-DBI.ppc 1.623-1 @/perl-DBI-1.623-1.aix5.1.ppc
- perl-TimeDate.noarch 1.20-1 @/perl-TimeDate-1.20-1.aix5.1.noarch
- perl-URI.noarch 1.58-1 @/perl-URI-1.58-1.aix5.1.noarch
- perl-XML-LibXML.ppc 2.0012-1 @/perl-XML-LibXML-2.0012-1.aix5.1.ppc
- perl-XML-NamespaceSupport.noarch 1.11-1 @/perl-XML-NamespaceSupport-1.11-1.aix5.1.noarch
- perl-XML-Parser.ppc 2.41-1 @/perl-XML-Parser-2.41-1.aix5.1.ppc
- perl-XML-SAX.noarch 0.99-1 @/perl-XML-SAX-0.99-1.aix5.1.noarch
- perl-XML-SAX-Base.noarch 1.08-1 @/perl-XML-SAX-Base-1.08-1.aix5.1.noarch
- perl-XML-Simple.noarch 2.18-1 @/perl-XML-Simple-2.18-1.aix5.1.noarch
- Install the following from the AIX Toolbox
- perl.ppc 1:5.30.3-2 @AIX_Toolbox
- Update the PERL5LIB and PERL statements in the lpar2rrd.cfg file to (you can get these from the lpar2rrd.cfg file on entlrrdd01):
- PERL=/opt/freeware/bin/perl_32
- PERL5LIB=/var/lpar2rrd/lpar2rrd/bin:/var/lpar2rrd/lpar2rrd/vmware-lib:/opt/freeware/lib/perl5/vendor_perl/5.30:/usr/opt/perl5/lib/site_perl/5.30:/usr/opt/perl5/lib/site_perl/5.30/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.30/aix-thread-multi:/usr/opt/perl5/lib/5.30:/usr/opt/perl5/lib/5.30/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.30:/opt/freeware/lib/perl5/5.30/vendor_perl:/var/lpar2rrd/lpar2rrd/lib:/opt/freeware/lib/perl5/site_perl/5.22.0/ppc-aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.28.1:/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.28.1/aix-thread-multi/auto/XML
- Uninstall (yum erase) the libpng package. This will also erase rrdtool, rrdtool_perl, cairo, and pango. This is necessary because the version installed has an epoch number that doesn't allow for yum or rpm updates.
- Load the latest libpng package (1.6.27-3) from the AIX Toolbox
- Reinstall the cairo and pango packages from the AIX Toolbox
- Install the latest version of rrdtool (1.7.0.8) and rrdtool_perl (1.7.0.8) from the AIX Toolbox.
- Update the freetype2 package to the latest level (2.10.4-1)
- Change the RRDTOOL entry in the lpar2rrd.cfg file to the following:
- RRDTOOL=/opt/freeware/bin/rrdtool_32
- Run the ./load.sh and check for errors.
- If no errors are found, run the following commands as the lpar2rrd user to assure that all the LPAR2RRD components, including the OS agent data processing , are using the the 32bit resources:
- ./load.sh daemon_stop
- ./load.sh daemon_start
- Re-enable the lpar2rrd crontab entries that do the hourly loads and periodic health checks.
- Monitor web interface over the next several hours to make sure that the graphs are updating properly.
This process will allow for the following packages to be updated to the latest level:
- perl.ppc 1.5.30.3-2
- rrdtool 1.7.0-8
- rrdtool_perl 1.7.0-8
- libpng 1.6.27-3
- freetype2 2.10.4-1
The root cause for the rrdtool packages causing lpar2rrd not to work was that starting in rrdtool 1.7.0-6, rrdtool began to run as 64bit as its default setting. LPAR2RRD is built to run as 32bit, so both the PERL and RRDTOOL configurations in the lpar2rrd.cfg file must be manually set to run as 32bit. Additionally, the daemons have to be bounced after the conversion is complete to force the OS agent data pointers to use the 32bit configuration so that that data can be graphed.
Also, when you update perl, you need to change all the references in the lpar2rrd.cfg file.
I hope this helps.
------------------------------
Keith Barth