* Exporting /usr
@ 1993-07-10 8:09 Norman Gaywood
1993-07-12 16:40 ` Dr Marco Luchini
0 siblings, 1 reply; 5+ messages in thread
From: Norman Gaywood @ 1993-07-10 8:09 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 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Exporting /usr
1993-07-10 8:09 Exporting /usr Norman Gaywood
@ 1993-07-12 16:40 ` Dr Marco Luchini
1993-07-13 1:18 ` Norman Gaywood
0 siblings, 1 reply; 5+ messages in thread
From: Dr Marco Luchini @ 1993-07-12 16:40 UTC (permalink / raw)
In article <1293@grivel.une.edu.au> norm@godel.une.edu.au (Norman Gaywood) writes:
> Subject: Exporting /usr
> Date: 10 Jul 93 08:09:30 GMT
> Sender: usenet@grivel.une.edu.au
>
> 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:
[omitted]
I had to do this too, but took the simpler hack of copying all that the
startups require to a local /usr and then overmounting it. Norman's
solution is much more elegant.
However I prefer to mount /usr read-only so I also had to:
1) Move /usr/lib/X11/xdm/* to /var/lib/X11/xdm/* and edit S95xdm to
reflect this change (CONFIGFILE and xdm-pid location). Then modify
xdm-config.fs and xdm-config to reflect the change in path. Also add
the resource DisplayManager.authDir to reflect the new location. Make
sure the GID of /var/lib/X11/xdm is bin everywhere (use tar to copy it
across) otherwise xdm will not be able to write the authorization file
for the server, since I mount /usr ro.
2) Make sure that you have your lmf directory in /var/adm/lmf rather
than the default /usr/var. Remember to add "-d /var/adm/lmf" to
/sbin/init.d/startlmf so that you get the correct reset. Otherwise you
lose the licenses after a boot.
Because of the different approach I also had to
3) Move /sbin/rc3.d/S26sia to /sbin/rc3.d/S09siaS26 or similar number.
This used to be necesary under BL10 and may have gone away since the
upgrade to BL12 but I didn't bother checking it since we should be
getting OSF1.3 soon with a DEC-approved dataless setup.
Presumably Norman's setup cause problems with xdm's PID getting
overwritten.
As a side issue, what is really required is not the ability to run
dataless but the ability to run with the so-called "mandatory" subsets
on the local disk and the extra ones (or a suitable subset thereof) off
the net. This is easy to do for man pages (just mount /usr/share) but a
mess for most other things. Since things like fuse already install
mostly in /var/kits it would be nice if there were a supported
configuration which involved getting them off the net. I appreciate I
can do this myself in a piecemeal way but since setld already exists it
should not be too hard to make it figure out what should be installed
locally and what should be got from a mount point. All this will become
more important as more people (us included) upgrade from DECstation5000s
with small disks (RZ26) to AXPs. The whole of OSF doesn't install on an
RZ26.
Or is there a neat solution for this out there of which I am unaware?
Ciao, Marco
--
-------------------------------------------------------------------------
Marco Luchini Internet : luchini@ic.ac.uk
Department of Mathematics Telephone: +44 71 589 5111 x5765
Imperial College Fax: +44 71 225 8361
London SW7 2BZ, UK
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Exporting /usr
1993-07-12 16:40 ` 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
0 siblings, 2 replies; 5+ messages in thread
From: Norman Gaywood @ 1993-07-13 1:18 UTC (permalink / raw)
luchini@ic.ac.uk (Dr Marco Luchini) writes:
> However I prefer to mount /usr read-only so I also had to:
A good idea.
> 1) Move /usr/lib/X11/xdm/* to /var/lib/X11/xdm/* and edit S95xdm to
> reflect this change (CONFIGFILE and xdm-pid location). Then modify
> xdm-config.fs and xdm-config to reflect the change in path. Also add
> the resource DisplayManager.authDir to reflect the new location. Make
> sure the GID of /var/lib/X11/xdm is bin everywhere (use tar to copy it
> across) otherwise xdm will not be able to write the authorization file
> for the server, since I mount /usr ro.
Yes this is a problem with my setup. I solved it in a similar fashion
to you. I edited the first two lines of the files
/usr/lib/X11/xdm/xdm-config and /usr/lib/X11/xdm-config to look like:
DisplayManager.errorLogFile: /var/lib/X11/xdm/xdm-errors
DisplayManager.pidFile: /var/lib/X11/xdm/xdm-pid
I also made the directory /var/lib/X11/xdm. I didn't worry about the
GID being bin. xdm is started and runs as root so it should be able to
write where it wants. As far as I know, the above two files are the
only files that xdm tries to write in /usr.
> 2) Make sure that you have your lmf directory in /var/adm/lmf rather
> than the default /usr/var. Remember to add "-d /var/adm/lmf" to
> /sbin/init.d/startlmf so that you get the correct reset. Otherwise you
> lose the licenses after a boot.
This should not be a problem. lmf looks in /usr/var/adm/lmf as you say.
However, in the setup I described, /usr/var points to /var so lmf will
find its files in /var/adm/lmf. Of course it requires that /usr be
mounted before lmf runs (which is the case).
> Because of the different approach I also had to
>
> 3) Move /sbin/rc3.d/S26sia to /sbin/rc3.d/S09siaS26 or similar number.
> This used to be necesary under BL10 and may have gone away since the
> upgrade to BL12 but I didn't bother checking it since we should be
> getting OSF1.3 soon with a DEC-approved dataless setup.
I not sure why you had to do this mod. I am running BL10 and it seems
to run OK. I wonder if the DEC approved dataless setup will be like
their DMS setup under Ultrix. Whereas this did work quite well, it did
comsume a lot of disk space.
> Presumably Norman's setup cause problems with xdm's PID getting
> overwritten.
Yes it did. The solutions outlined above solve this though.
At the end of my first message I pointed out that this trick may
not work if your nfs mounts require routed to be running. Dave Cherkus
(cherkus@zk3.dec.com) pointed out by email that /sbin/route exists. So
it's possible to manually add the important routes by hand.
--
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] 5+ messages in thread
* Re: Exporting /usr
1993-07-13 1:18 ` Norman Gaywood
@ 1993-07-13 2:22 ` Norman Gaywood
1993-07-13 15:38 ` Dr Marco Luchini
1 sibling, 0 replies; 5+ messages in thread
From: Norman Gaywood @ 1993-07-13 2:22 UTC (permalink / raw)
norm@godel.une.edu.au (Norman Gaywood) writes:
>to you. I edited the first two lines of the files
>/usr/lib/X11/xdm/xdm-config and /usr/lib/X11/xdm-config to look like:
>DisplayManager.errorLogFile: /var/lib/X11/xdm/xdm-errors
>DisplayManager.pidFile: /var/lib/X11/xdm/xdm-pid
>I also made the directory /var/lib/X11/xdm.
Sorry, forgot to say to also add the line:
DisplayManager.authDir: /var/lib/X11/xdm
to the xdm-config* files. Marco Luchini also mentioned this in his
posting.
--
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] 5+ messages in thread
* Re: Exporting /usr
1993-07-13 1:18 ` Norman Gaywood
1993-07-13 2:22 ` Norman Gaywood
@ 1993-07-13 15:38 ` Dr Marco Luchini
1 sibling, 0 replies; 5+ messages in thread
From: Dr Marco Luchini @ 1993-07-13 15:38 UTC (permalink / raw)
norm@godel.une.edu.au (Norman Gaywood) writes:
>>luchini@ic.ac.uk (Dr Marco Luchini) writes:
>
>> 2) Make sure that you have your lmf directory in /var/adm/lmf rather
>> than the default /usr/var. Remember to add "-d /var/adm/lmf" to
>> /sbin/init.d/startlmf so that you get the correct reset. Otherwise you
>> lose the licenses after a boot.
>
>This should not be a problem. lmf looks in /usr/var/adm/lmf as you say.
>However, in the setup I described, /usr/var points to /var so lmf will
>find its files in /var/adm/lmf. Of course it requires that /usr be
>mounted before lmf runs (which is the case).
Yes I agree. But, if you do this, you are changing the default setup of
the server as well. I preferred not to so that my server is vanilla
DEC. With a new operating system, I wanted to be as close to
out-of-the-box as possible at least on one machine. This way my clients
have a separate /var but the server still has /usr/var.
5.999 of one, half a dozen of the other...
>> Because of the different approach I also had to
>>
>> 3) Move /sbin/rc3.d/S26sia to /sbin/rc3.d/S09siaS26 or similar number.
>> This used to be necesary under BL10 and may have gone away since the
>> upgrade to BL12 but I didn't bother checking it since we should be
>> getting OSF1.3 soon with a DEC-approved dataless setup.
>
>I not sure why you had to do this mod. I am running BL10 and it seems
>to run OK. I wonder if the DEC approved dataless setup will be like
>their DMS setup under Ultrix. Whereas this did work quite well, it did
>comsume a lot of disk space.
Interesting. Before I did this, the system gave an "Intruder alert"
message while going through S26sia and went back to single user. Since
there is virtually no doc on what SIA does on the system I took the
first solution that worked and didn't investigate further. It might be
due to some incorrect permission in the stuff I copied to local disk
before overmounting. I'm glad you don't have to. Starting the net
early is a lot cleaner overall.
Ciao, Marco
--
-------------------------------------------------------------------------
Marco Luchini Internet : luchini@ic.ac.uk
Department of Mathematics Telephone: +44 71 589 5111 x5765
Imperial College Fax: +44 71 225 8361
London SW7 2BZ, UK
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-07-13 15:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-10 8:09 Exporting /usr Norman Gaywood
1993-07-12 16:40 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox