From: norm@godel.une.edu.au (Norman Gaywood)
Subject: Re: Exporting /usr
Date: 13 Jul 93 01:18:40 GMT [thread overview]
Message-ID: <norm.742526320@godel.une.edu.au> (raw)
In-Reply-To: LUCHINI.93Jul12124008@femto.ic.ac.uk
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
next prev parent reply other threads:[~1993-07-13 1:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-07-10 8:09 Exporting /usr Norman Gaywood
1993-07-12 16:40 ` Dr Marco Luchini
1993-07-13 1:18 ` Norman Gaywood [this message]
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