From: norm@godel.une.edu.au (Norman Gaywood)
Subject: Exporting /usr
Date: 10 Jul 93 08:09:30 GMT [thread overview]
Message-ID: <1293@grivel.une.edu.au> (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 mounted across the net.
Here are the steps I took:
On all machines.
1. /var needs to be its own file system on each machine. Currently OSF
has /var pointing to /usr/var. We need to do it the other way
round. So /usr/var should be a soft link 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 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
next reply other threads:[~1993-07-10 8:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-07-10 8:09 Norman Gaywood [this message]
1993-07-12 16:40 ` Exporting /usr Dr Marco Luchini
1993-07-13 1:18 ` Norman Gaywood
1993-07-13 2:22 ` Norman Gaywood
1993-07-13 15:38 ` Dr Marco Luchini
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox