From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bef1953c88e11e,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-07-10 09:21:52 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!swrinde!network.ucsd.edu!munnari.oz.au!bruce.cs.monash.edu.au!merlin!mel.dit.csiro.au!its.csiro.au!dmssyd.syd.dms.CSIRO.AU!metro!grivel!godel.une.edu.au!norm From: norm@godel.une.edu.au (Norman Gaywood) Newsgroups: comp.unix.osf.osf1 Subject: Exporting /usr Keywords: usr osf export Message-ID: <1293@grivel.une.edu.au> Date: 10 Jul 93 08:09:30 GMT Sender: usenet@grivel.une.edu.au Nntp-Posting-Host: godel.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: 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