[Prev][Next][Index][Thread]

SUMMARY: Mounting /usr from server OSF/1 2.0




-----------FIRST DRAFT SUMMARY, COMMENTS WELCOME ------------------

Here is the summary of how I was able to mount /usr from a server onto
AXP 3000/400s and 3000/600s running OSF/1 version 2.0.  I was using Jon
Forrest's instructions for 1.3.  I liked his philosophy of attempting to
avoid putting any /usr files on the local disk.  With 2.0 this may be
possible, but I was unwilling to take the time to figure out how.  I
also may not have figured out the absolute minimum number of files to
put on the local disk in order to get the system to boot, and in fact,
there were some error messages on boot that may have been harmless, but
I chose to eliminate them by putting additional executables on the local
disk.  If you have not done this before, you need to read Jon's document 
for background.  This posting is for people who already are mounting /usr 
from a remote machine and just want to know what they have to do to get 
it to work for version 2.0.  Your mileage may vary, and all relevant
disclaimers apply.  I always hesitate to post something like this, as
there could be omissions or errors, but it seems a shame to make
everyone else waste their time reinventing the wheel.  Please let me
know (gently) of any problems with this posting and I will be happy to
revise and repost.

1-  Use CD to install 2.0.  Install a local /var if you like.  Take
whatever subsets you like, but you may only need the mandatory subsets
since you are going to mount /usr from a remote system.  I took the
local printer support because I had to do extra work in the previous
installation when I did not.  Using the setup utility, configure the
system as desired.  If your server is not on the same subnet as your
workstations, you must either run routed or install a default route.
Installing a default route requires an additional executable on your
local disk, but may be worth it in saved memory.

2-  If everything is working so far, make a tar file including the
following files, and copy it to the root partition of all the systems
that you want to remotely mount the /usr filesystem.


./usr/ 
./usr/share/ 
./usr/share/lib/ 
./usr/share/lib/shell/ 
./usr/share/lib/shell/Avl 
./usr/share/lib/shell/BadChoice 
./usr/share/lib/shell/BitTest 
./usr/share/lib/shell/Client 
./usr/share/lib/shell/Dialog 
./usr/share/lib/shell/Error 
./usr/share/lib/shell/Lists 
./usr/share/lib/shell/Logging 
./usr/share/lib/shell/Pwd 
./usr/share/lib/shell/Ready 
./usr/share/lib/shell/Strings 
./usr/share/lib/shell/Ticker 
./usr/share/lib/shell/Wait 
./usr/share/lib/shell/libmrg 
./usr/share/lib/shell/libscp 
./usr/sbin/ 
./usr/sbin/slattach 
./usr/sbin/iprsetup 
./usr/sbin/umount 
./usr/sbin/autopush 
./usr/sbin/isastrpty 
./usr/sbin/rcmgr 
./usr/sbin/strsetup 
./usr/sbin/route 
./usr/shlib/ 
./usr/shlib/libc.so 
./usr/bin/ 
./usr/bin/egrep 
./usr/bin/cut 
./usr/bin/head 

The following stuff is covered in Jon Forrest's document which can be
found in archive sites, check your FAQ!  I include it for completeness,
and because there are slight deviations:

3-  Edit /sbin/rc2 and /sbin/rc3 to comment out the sections that look
like:
	
	# Just exit if /usr not mounted.
	if
	(stuff inside if)
	fi

4-  cd to rc3.d and make the following changes:

	mv S12route S01route
	mv S20nfsmount S02nfsmount
	mv S01quota S03quota

    Edit S01route and change all instances of /usr/sbin/routed to
    /sbin/routed.  Note that in 2.0 there is a statically linked routed,
    so you do not need to go through the procedure of getting it.

5-  Shut the system down and boot up single user.  Before you mount
    /usr, untar the tar file that you made in step 1.  This will give
    you a /usr directory on the local disk which the remote /usr will 
    be mounted on top of later.  Now mount /usr.  If you did not put
    /var in a separate partition, do the following:

	mkdir /var.new
	(cd /usr/var;tar cvfpB - .)|(cd /var.new;tar xvfpB -)
	rm /var 		#this is a link)
	mv /var.new /var  	#now /var is in the root partition

6-  Edit the fstab, placing an xx in place of the rw in the line
    for /usr.  Enable mounting of /usr from the server.  Here's
    what that looks like:

	/dev/rz0g       /usr            ufs xx 1 2
	server:/usr      /usr    nfs ro,soft,intr,bg 0 0

7-  For xdm logging (this is important, will not work if you do not have
    this!):

	mkdir /var/X11
	mkdir /var/X11/xdm

REMINDER:On the server side the /var must not be in /usr/var, and in
/usr/lib/X11/xdm/xdm-config you need to have the following changes made
so that each machine logs its xdm messages locally:

DisplayManager.errorLogFile:    /var/X11/xdm/xdm-errors
DisplayManager.pidFile:         /var/X11/xdm/xdm-pid
DisplayManager.keyFile:         /var/X11/xdm/xdm-keys

Take a deep breath and reboot.  If all goes well, you can remove the old
/usr/line from /etc/fstab, and reuse the old /usr partition any way you
like (I immediately add it to the b partition for more swap space).

I hope this saves someone some time.

--Sheila
---------------------------------
Sheila Hollenbaugh       Sr. Computer Systems Engineer
Wright State University  College of Engineering & Computer Science
Dayton, OH 45435  Voice: (513) 873-5077  FAX: (513) 873-5009
shollen@xxxxxxxxxxxxx    or    shollen@xxxxxxxxxxxxxxxxxxxxxx