fixing bad ND partitions

Ruth Milner, Systems Manager x2746 SYSRUTH at utorphys.bitnet
Tue Jan 24 08:27:52 AEST 1989


In v7n105, Tony Tran (versatc!tran at sun.com) asks:
>We have a server with 12 ND partitions, 4 of which are bad.  What is the
>easiest/safest way to fix these partitions ?

The easiest way is essentially to replicate what setup does. For each one:

1. First use mkfs on an ndl partition which is bad (be careful that your
   specified root filesystem size matches what nd.local says). Run fsck on it.
2. Shut down one of your good clients (of same type as bad one) and use the
   script /usr/etc/setup.files/copy_client to create the new root from the
   existing one. Run fsck on it again.
3. Mount it on /mnt or somewhere unused and cd to it. Fix it up by doing a
   MAKEDEV std pty0 pty1 pty2 win0 win1 win2 nd0 nd1 ndp0 (and ndp1 or other
   devices if you have them) in its dev directory, and change ownerships of
   private/usr/spool/at,log, and lpd directories to daemon.daemon if necessary.
4. Copy your hosts and networks files to its etc directory. Fix up rc* and
   fstab files, and any other local setups for mail, mount points, whatever.
5. Type "sync" a couple of times. cd out of /mnt and umount it. Run fsck on
   the ndl partition again.

At this point, if your tftp links and /etc/ethers entries are set up
properly, you should be able to boot a client off that partition. I used
exactly this procedure recently to add six new clients on a partition
previously used for data. The nd.local file was updated and fed to nd
first, of course. It took little more than an hour to do all six, and they
all booted like a charm.

It is not much more difficult to do this for brand new clients either; in
that case, instead of step 2, check the manual for the tape contents, tar
off the necessary stuff into /pub and one root, make sure links into /pub
are set up properly (for lib, stand, bin, and vmunix if the kernel is
shared), and continue with step 3. You should also make a non-GENERIC
kernel after booting the first client and before creating the others.

Hope this helps.

Ruth Milner
Systems Manager
University of Toronto Physics

sysruth at helios.physics.utoronto.ca   (Internet)



More information about the Comp.sys.sun mailing list