This is a very brief and possibly incoherent sketch of what I had to
do to get PATRAN 3 to work within AFS under AIX. Many thanks to those
who responded to my original plea for assistance. PDA's hotline keeps
repeating the phrase, "We do not support AFS." The VP of marketing
does not return my calls.
I think it's safe to say that PATRAN 3 can be considered "AFS-vicious".
Except for requiring user write access to some of its installation
directories, there are good (or, more accurately, understandable)
reasons for most of what PDA has done. Most of them assume that you
are paying non-educational prices for PATRAN and are therefore wealthy
enough to dedicate an entire workstation/server cluster to this
software package. AFS only makes things complicated.
I, on the other hand, work at a university.
If anyone can suggest a way in which I can get rich doing this, please
let me know.
Now I must return to my padded cell.
-Rick
2/2/94 rcc
See "info" article on "Configuring NCS".
See "PATRAN 3 Installation & Operations Manual" section 5.2 "Installation Tips".
See "Managing NCS Software" in the PATRAN 3 installation manual binder.
This is much better than the "info" documentation.
Run a GLB on one robust host on each subnet.
Run an LLB on each host with a GLB.
An LLB must be running on a host with a license manager daemon.
We may want to set up a /usr/lpp/ncs/bin/glb_sites file for access across
routers some day when we figure out how that's supposed to work.
The GLB and LLB are started in /etc/rc.ncs which is invoked in /etc/inittab.
Since it is preferable to run a glbd rather than an nrglbd ("Managing NCS
Software" p17), and since AIX 3.2.4 does not support glbd, we are using
the PDA-supplied version of NCS.
I'm installing on hugh because it seems to be more stable than borg and
its on the same subnet as the machines which will be using PATRAN.
[The following stuff on installation will not apply to most sites. We
keep a bunch of /usr/lpp in AFS.]
Oops! I tried using the 'installp' command and it tried to stick stuff in
/usr/lib/X11/app-defaults which is in AFS and therefore read-only.
I'm going to try installing this in a separate volume in /usr/local/netls.
cd /usr/local/netls
restore -x -f /usr/local/patran3/netls/NetLS.Ark.02.01.0110.0001
The pathnames in the install image are relative.
Next step is to put symbolic links in place.
The nasty reality of this is that one of the links already exists:
lrwxrwxrwx 1 root system 16 Jan 10 16:20 /etc/ncs -> /usr/lpp/ncs/bin
But that's life. I rename it.
Some of the 'man' pages seem to be compressed. With GNU gzip, no less.
The AIX 'man' command can't seem to handle this, so uncompress them:
(cd usr/lib/netls/ark/cat1; gunzip *.z)
One needs to look in ./usr/lpp/NetLS/liblpp.a to find out where the links go.
Links to be made on each workstation. These should be put in package:
ln -s /usr/local/netls/usr/lib/ncs /usr/lib/ncs
mkdir /etc/ncs
chown bin:bin /etc/ncs
chmod 755 /etc/ncs
ln -s /usr/local/netls/usr/lib/netls /usr/lib/netls
(cd usr/lib/ncs/bin; ls * | xargs -i -t ln -s "{} /etc/ncs/{}")
ln -s /usr/lib/ncs/lib/stcode.db /usr/lib/stcode.db
ln -s /usr/lib/ncs/lib/uuidname.txt /etc/ncs/uume.txt
Links to be made in the lpp volume:
ln -s /usr/lib/netls/ark/X11/app-defaults/XLs_Admin /usr/lib/X11/app-defaults/XLs_Admin
ln -s /usr/lib/netls/ark/X11/app-defaults/XLs_Stat /usr/lib/X11/app-defaults/XLs_Stat
Links to be made in AFS land:
( cd usr/lib/netls/ark ; find bin -type f -print | xargs -i -t ln -s
"/usr/local/netls/usr/lib/netls/ark/{}" "../{}" )
(cd usr/lib/netls/ark; find cat1 -type f -print | xargs -i -t ln -s
"/usr/local/netls/usr/lib/netls/ark/{}" "/usr/local/man/{}")
(cd usr/lib/ncs/cat/files; ls * | sed -e 's/\.*$//' | xargs -i -t ln -s "{}.txt"
"/usr/local/man/cat4/{}.4")
(cd usr/lib/ncs/cat/utils-a; ls * | xargs -i -t ln -s "{}" "/usr/local/man/cat1/{}.1")
Commands used to start the daemons:
IBM and PATRAN use SRC. I'm not going to do that because it requires a
configuration command to be executed on each workstation. I may change
my mind later.
Oh well. That was short. I changed my mind. This stuff is going to be
run on few enough hosts that we can do the configuration commands easily
enough. And it will be pretty obvious that we haven't if we haven't.
To set up the SRC data, execute the script 'configure_src' in this directory.
[see below]
Let's try running the script '/usr/lib/netls/conf/netls_config' (not as root)
as recommended on p 5-14 of the Gradient Technology NCS and NetLS installation
manual:
Answer 'no' to the 'start automatically' questions or it will try to edit
/etc/inittab.
Answer '2' (use default name)
It looks like it ran OK!
Now let's try running /usr/lib/netls/conf/netls_first_time. This has to be
run as root.
Gosh! That worked too! Time to go home now.
2/11/94 rcc
Well, almost. netlsd didn't really start.
It seems that starting netlsd with SRC doesn't work!
Also, netlsd doesn't seem to background itself.
Also, it looks as though usr/lib/netls/conf needs to be host-specific because
netlsd needs to write stuff in there.
Therefore:
mkdir /etc/netls.conf
cp -rp usr/lib/netls/conf/* /etc/netls.conf
rm -rf usr/lib/netls/conf
ln -s /etc/netls.conf usr/lib/netls/conf
and run netlsd like so:
/usr/lib/netls/ark/bin/netlsd &
Install codes using /usr/local/netls/install_codes.
[see below]
Use /usr/lib/netls/bin/ls_admin to examine configuration.
Now set up /etc/rc.local to start the various daemons when the system boots.
3/8/94 rcc
A very helpful person (see ~rick/notes/patran3-afs) tells me that
/usr/local/patran3/interbase must be writable by the user! How can
we do this without allowing them to accidentally nuke distribution files?
Oops! The user also has to be able to write to /usr/local/patran3 for
file P3Status.Database.
So create volume rs_aix32.local.Patran3 (mounted on
/usr/local/Patran3) to hold the distribution files. This can be
replicated (read-only).
Create another volume rs_aix32.local.patran3 (mounted on
/usr/local/patran3) and use /usr/local/patran.msc/make_p3_links to
install links to /usr/local/Patran3.
Allow 'write' access to directories in /usr/local/patran3 by system:authuser.
We also must put the following symbolic link in /usr ('package' entry):
LA /usr/interbase /usr/local/patran3/interbase root system 0777
configure_src:
----------------------------------------------------------------------
#! /bin/sh
lssrc -s llbd
if [ $? -eq 1 ]
then
mkssys -s llbd -p/usr/lib/ncs/bin/llbd -G ncs -u 0 -S -n15 -f9
else
rmssys -s llbd
mkssys -s llbd -p/usr/lib/ncs/bin/llbd -G ncs -u 0 -S -n15 -f9
fi
lssrc -s glbd
if [ $? -eq 1 ]
then
mkssys -s glbd -p/usr/lib/ncs/bin/glbd -G ncs -u 0 -S -n15 -f9
else
rmssys -s glbd
mkssys -s glbd -p/usr/lib/ncs/bin/glbd -G ncs -u 0 -S -n15 -f9
fi
lssrc -s netlsd
if [ $? -eq 1 ]
then
mkssys -s netlsd -p/usr/lib/netls/ark/bin/netlsd -G netls -u 0 -S -n15 -f9
else
rmssys -s netlsd
mkssys -s netlsd -p/usr/lib/netls/ark/bin/netlsd -G netls -u 0 -S -n15 -f9
fi
----------------------------------------------------------------------
install_codes:
----------------------------------------------------------------------
#!/bin/csh
/usr/lib/netls/bin/ls_admin -a -v "PDA Engineering" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"P3/PATRAN" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"P3/IGES" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"PAT3/ABAQUS" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"PAT3/ANSYS" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"PAT3/MARC" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"PAT3/MSC-NASTRAN" \
[stuff from PDA]
/usr/lib/netls/bin/ls_admin -a -p "PDA Engineering" \
"P3/FEA" \
[stuff from PDA]
----------------------------------------------------------------------
make_p3_links:
----------------------------------------------------------------------
#!/bin/csh
if ( ! -d /usr/local/patran3/interbase ) then
mkdir /usr/local/patran3/interbase
endif
cd /usr/local/Patran3/interbase
foreach o ( * )
echo $o
ln -s /usr/local/Patran3/interbase/$o /usr/local/patran3/interbase/$o
end
cd /usr/local/Patran3
foreach o ( * )
echo $o
ln -s /usr/local/Patran3/$o /usr/local/patran3/$o
end
# the following should be done only once
# cd /usr/local/patran3
# cp -p P3Status.Database xx
# mv xx P3Status.Database
----------------------------------------------------------------------
--
|Rick Cochran 607-255-7223 [EMAIL PROTECTED]|
|Cornell Materials Science Center [EMAIL PROTECTED]|
|E20 Clark Hall, Ithaca, N.Y. 14853 cornell!msc.cornell.edu!rick|
The opinions expressed above are mine alone, such as they are.