From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,f259aa9c293823f3,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-07-07 23:49:55 PST Path: gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!munnari.oz.au!metro!grivel!godel.une.edu.au!norm From: norm@godel.une.edu.au (Norman Gaywood) Newsgroups: comp.unix.osf.misc Subject: Exporting /usr with DEC OSF/1 Keywords: usr export DEC OSF Message-ID: <1277@grivel.une.edu.au> Date: 8 Jul 93 06:46:18 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 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