Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!math.ohio-state.edu!darwin.sura.net!rouge!sxb
From: sxb@swamp.cacs.usl.edu (Sriram Kumar)
Subject: Re: Adding hosts on an HPUX cluster
Message-ID: <1994Feb13.201550.11511@usl.edu>
Sender: anon@usl.edu (Anonymous NNTP Posting)
Organization: Univ. of Southwestern Louisiana
X-Newsreader: TIN [version 1.2 PL1]
References: <2jeqs9$b2s@msuinfo.cl.msu.edu> <2jf280$4qo@vixen.cso.uiuc.edu>
Date: Sun, 13 Feb 1994 20:15:50 GMT
Lines: 48

William F. Humphrey (billh@lisboa.ks.uiuc.edu) wrote:
: In article <2jeqs9$b2s@msuinfo.cl.msu.edu> venkates@quail.egr.msu.edu  
: (Venkatesh Gopinath) writes:
: > Yo PVM Gurus
: > 
: > I am encountering a problem while attempting to add hosts in HPUX cluster.
: > In the cluster we have,  all HP7xxs served of the same cluster server share  
: the
: > same /tmp (I understand this is how a cluster is). Unfortunately, when I  
: attempt to
: > add a host, pvm remshs to the host and attempts to start pvmd and finds that
: > the file /tmp/pvmd.uid is already present and (erroneously) assumes that pvmd
: > is already running and aborts. 
: > This seems to be a problem which somebody else should have encountered by now  
: but
: > I did not find it in the FAQ. Could a kind soul resolve this problem for me.
: > I am running pvm 3.2.3 is that is a concern.
: > 
: > Thank you
: > Venkatesh Gopinath
: > Electrical Engineering Department
: > Michigan State U.

: A solution to this problem we have successfully used on our cluster of HP735's  
: is the following:

: 1) Create a CDF directory in /tmp, say /tmp/pvm3 ... this will provide a unique  
: temp directory for each machine.

: 2) Change the directory used by PVM to put temporary files; the files to change  
: can be found by 'grep "/tmp" *.[ch]' in the pvm3 src directory.  For 3.2.3,  
: they are pvmcruft.c, pvmlog.c, and tdpro.h  .

: Hope this helps ...

: --
: Bill Humphrey	 (billh@ks.uiuc.edu)


I think PVM takes care of the shared /tmp directory. It appends the hostname 
to the log and socket address files if the /tmp is shared, so that there is no
conflict in file names. This code can be compiled into the library and the 
daemon by defining the macro SHAREDTMP in the makefiles in pvm3/src directory 
and elsewhere. The code is in pvmlog.c, and pvmcruft.c. 

Hope this helps. Comments are welcome.

Sriram (sxb@swamp.cacs.usl.edu)

