pcp
[Top] [All Lists]

Re: cpp pre-req to start pcp/pmcd?

To: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Subject: Re: cpp pre-req to start pcp/pmcd?
From: Troy Dawson <dawson@xxxxxxxx>
Date: Wed, 13 Aug 2003 08:15:38 -0500
Cc: jerry.mlist@xxxxxxxxxx, pcp@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.40.0308130728300.85584-100000@rattle.melbourne.sgi.com>
References: <Pine.SGI.4.40.0308130728300.85584-100000@rattle.melbourne.sgi.com>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Howdy,
This has been such a part of how we use pcp here at Fermilab that I forgot about it.
We have several hundred farm nodes that don't have cpp or any compiler. What we have is a seperate rpm called pcp-config. In this, besides having config files that are specific for our lab, we also have the the following three files that were made on a machine that had cpp. (To have them made, just start pcp once and they get made.)


/var/pcp/pmns/root
/var/pcp/pmns/root.bin
/var/pcp/pmns/stdpmid

So when this get's installed, we remove the .NeedRebuild file, move these files into place, and everything works.
There are a couple of catches.
Make sure you make the files on a similar platform. So RedHat 9's work with RedHat 9, while all of the RedHat 7's worked on each other (7.1, 7.2, 7.3)
If you add more pmda's, you have to rebuild these files. Since we just use the standard out of the box pmda's, this part is easy, but it could be more difficult if you are still trying out different pmda's.


Hope this helps.
Troy

Ken McDonell wrote:
Hmm ... this is a documentation oversight ... on IRIX systems, you
cannot relink the kernel without cpp so _every_ IRIX system has a cpp
variant lurking somewhere.  This is not necessarily true for other OS
variants.

The PCP performance metrics name space (PMNS) may use #define and
#include directives ... as a work around, check your /var/pcp/pmns/root
and remove directives by equivalent hand editing, and then make one of
the cpp paths below a link to "cat".

But you'll next run into problems with installing the PMDAs, because
their local fragments of the PMNS also use cpp directives.

So you will need to install cpp eventually.

I'll try and figure out the right place to document this.

On Tue, 12 Aug 2003 jerry.mlist@xxxxxxxxxx wrote:


pcp version: pcp-2.3.1-4
OS: Linux

I have a cluster I'd like to run pmcd collectors on.  The compute
nodes do not presently have cpp available, which appears to be
required (see below).

Is there any work-around short of installing gcc/cpp on all the
compute nodes?  I looked through the User/Admin Guide, FAQ, and pcp
list archives and did not find any mention of this.

Thanks for any feedback,

Jerry

---


# /etc/init.d/pcp start Performance Co-Pilot rebuilding PMNS ... pmLoadNameSpace: Unable to find an executable cpp at any of ... /lib/cpp /lib/cpp /usr/cpu/sysgen/root/lib/cpp /usr/lib/cpp /usr/cpu/sysgen/root/usr/lib/cpp Sorry, but this is fatal Rebuilding the Performance Metrics Name Space (PMNS) in /var/pcp/pmns ... Rebuild: PCP upgrade processing for "root" PMNS changes ... Rebuild: merging the following PMNS files: root root_linux root_pmcd Rebuild: pmnsmerge failed "root" and "root.bin" have not been changed. Performance Co-Pilot starting PMCD (logfile is /var/log/pcp/pmcd/pmcd.log) ... Performance Co-Pilot starting archive loggers ...





-- __________________________________________________ Troy Dawson dawson@xxxxxxxx (630)840-6468 Fermilab ComputingDivision/OSS CSI Group __________________________________________________


<Prev in Thread] Current Thread [Next in Thread>