* Exporting /usr with DEC OSF/1
@ 1993-07-08 6:46 Norman Gaywood
0 siblings, 0 replies; only message in thread
From: Norman Gaywood @ 1993-07-08 6:46 UTC (permalink / raw)
DEC do not supply DMS with OSF so I thought I would do some mutilations
to (mostly) the startup scripts to allow /usr to be mounted across the
net. Before you start, you need to have all machines up and running
with their own local /usr. Designate one the server machine and the
others client machines. Here are the steps I then took:
On all machines.
1. /var needs to be its own file system, independent of /usr, on each
machine. In this setup /var will be mounted before /usr. Currently
OSF has /var pointing to /usr/var. We need to do it the other way
round. So /usr/var should be pointing to ../var
# ls -ld /usr/var /var
lrwxr-xr-x 1 root bin 6 Jul 08 11:51 /usr/var -> ../var
drwxr-xr-x 14 root system 512 Feb 06 01:38 /var
On the server machine:
2. edit /etc/exports to contain the line:
/usr -root=0 client [client ....]
On the client machine(s):
3. Edit /etc/fstab to contain the line:
/usr@server /usr nfs rw,bg 0 0
4. Edit /sbin/rc2 and /sbin/rc3 and comment out, near the start, the
lines:
# Just exit if /usr not mounted.
if [ ! -d "/usr/sbin" ]
then
exit
fi
5. Move /sbin/rc3.d/S20nfsmount to /sbin/rc3.d/S02nfsmount. This will
mount the /usr partition just after the network initialization and
before other rc3 scripts require /usr files.
Now reboot your client machines. The old /usr partition on the client
can be used for something else.
Problems you may encounter are:
1. This will only work for a simple network. If your nfs mounts
require routed (or gated) to find the server, you can't do this. You
somehow need to start routed before you mount /usr. Problem is that
routed is in /usr/sbin and requires shared libs. So just copying
routed to /sbin is not useful.
2. When it comes to upgrade time, the situation becomes a little
complicated. The way I would go about it is to first upgrade the
server. Then either connect a scratch disk to the clients, do an
install with /usr on the scratch disk and then follow the above
steps. Or you could just copy the new files over from the server to
the client local areas and rebuild a kernel for the clients. I have
not tested these methods.
3. DEC probably won't talk to you if you have a problem with all
this.
Hope someone finds this useful.
BTW, how can I get a statically linked routed?
--
Norman Gaywood. Department of Mathematics, Statistics and Computing Science.
University of New England, Armidale, NSW 2351, Australia.
Internet: norm@godel.une.edu.au, phone: +61 67 732412, fax: +61 67 733312
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-07-08 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-08 6:46 Exporting /usr with DEC OSF/1 Norman Gaywood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox