home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / ultrix / 6709 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  5.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!gumby!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!honte.uleth.ca!sigma.uleth.ca!senetza
  2. From: senetza@sigma.uleth.ca (Len Senetza)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: How to change diskless client IP address?
  5. Message-ID: <senetza.715641706@honte>
  6. Date: 4 Sep 92 21:21:46 GMT
  7. References: <1992Sep3.191946.19852@doug.cae.wisc.edu> <gel.715606791@zen.sys.uea.ac.uk>
  8. Sender: news@honte.uleth.ca (News System)
  9. Organization: University of Lethbridge
  10. Lines: 150
  11.  
  12. >pranjoto@ece.wisc.edu (Hokkie Pranjoto) writes:
  13.  
  14.  
  15. >>We have a Decstation 5000/200 server with 3 diskless clients.  We need
  16. >>to change the IP addresses of all 4 machines.  We got the server changed
  17. >>with no problem.  We changed one client by deleting the client and
  18. >>adding it back with dms.  After doing this we had to reconfigure all
  19. >>the installed sets.  Is there an easier way to do this?  In particular,
  20. >>is the IP address of the client stored some place where we can edit
  21. >>it?  (We tried editing the IP addresses in both the server and client
  22. >>/etc/hosts, but that did not do the job.)
  23.  
  24. we had to do that here.  over 20 machines.  not a lot of fun, but can be
  25. done.  here's the document i used.  i've added comments for you, cuz a
  26. lot of the scripts and whatnot aren't self explanatory by the titles.
  27. also, if you plan to use this, please read it carefully first.  then
  28. redo it for your system.  also, make sure that you can back-out
  29. (revert).
  30.  
  31.  
  32.  
  33. Internet Number Change 
  34. ------------------------------
  35.  
  36. ! get all the clients shut-down; except for fileservers and the main
  37. !   DMS server
  38.  
  39.  1. Shutdown the lab, except honte (fileserver) and jeltz (main DMS
  40.       server).  (halting is OK <yeah, i know it really isn't>)
  41.  2. umount all NFS file systems from jeltz
  42.  3. Shutdown honte
  43.  
  44. ! now all the clients will be down.
  45.  
  46.  4. Change jeltz's internet number
  47.  
  48. ! this next updates the files which refer to the IP address.  it also
  49. !   changes the fstab so that it doesn't try to mount the NFS stuff
  50.  
  51.     a. cd /etc; cp networks.new networks; cp hosts.new hosts;
  52.     cp rc.local.new rc.local; cp fstab.ufs fstab
  53.     b. Reboot jeltz
  54.     c. jeltz should now be running new number.  check with 'ping jeltz'
  55.  
  56. ! if you have YP, do the following, if not, ignore.  if you're running
  57. !   under Bind/Hesiod, i'm not sure, but it should be analagous
  58.  
  59.     d. Redo YP
  60.        i. cd /etc/yp/src; cp networks.new networks; 
  61.        cp hosts.new hosts; touch *; cd ..; make all
  62.     e. Reboot jeltz (just to be sure)
  63.  
  64. ! and the fun starts here...
  65.  
  66.  5. Change the lab's internet numbers
  67.     a. First, try one client (alpha)
  68.        i.   cd /dlclient0
  69.  
  70. ! modify the files with IP stuff
  71.  
  72.         mv-hosts.new alpha.uleth.ca.root
  73.         mv-networks.new alpha.uleth.ca.root
  74.         rc.local.modify alpha.uleth.ca.root
  75.  
  76. ! modify DMS specific stuff.  make sure that you've compiled up the
  77. !   netblk file _prior_ to this
  78.         mv-netblk.new alpha.uleth.ca.root
  79.         mv-dlparam.new alpha.uleth.ca.root
  80.  
  81. ! no NFS
  82.  
  83.         cp /dlclient0/alpha.uleth.ca.root/etc/fstab.ufs \
  84.             /dlclient0/alpha.uleth.ca.root/etc/fstab
  85.        ii.  Reboot alpha
  86.  
  87. ! check the machine
  88.  
  89.        iii. alpha should be ok.  Try pinging from jeltz.  Try rlogin 
  90.          from jeltz.
  91.        iv.  If any of the above fails (ii, iii) we're in trouble.  
  92.          See later on for reversion.
  93.  
  94. ! do the rest of the machines...
  95.  
  96.     b. Now redo step a.i. replacing '[b-z]*.root' for 'alpha.uleth.ca.root'
  97.      and omitting the fstab stuff.
  98.  
  99. ! reboot the NFS server first, then the rest.  the DMS server should be
  100. !   running already
  101.  
  102.     c. Reboot honte, then the lab.
  103.  
  104. ! a bit of clean up...
  105.  
  106.  6. Modify jeltz's and alpha's fstab
  107.     a. cp /etc/fstab.nfs /etc/fstab; mount -a
  108.     b. cp /dlclient0/alpha.uleth.ca.root/etc/fstab.nfs \
  109.         /dlclient0/alpha.uleth.ca.root/etc/fstab
  110.  
  111.  
  112. Reversion
  113. ---------
  114.  
  115.  1. Shutdown alpha. (halting is OK)
  116.  2. Change jeltz's internet number
  117.  
  118. ! have these files (.old) ready prior to doing the switch
  119.  
  120.     a. cd /etc; cp networks.old networks; cp hosts.old hosts;
  121.     cp rc.local.old rc.local; cp fstab.ufs fstab
  122.     b. Reboot jeltz
  123.     c. jeltz should now be running old number.  check with 'ping jeltz'
  124.     d. Redo YP
  125.        i. cd /etc/yp/src; cp networks.old networks; 
  126.        cp hosts.old hosts; touch *; cd ..; make all
  127.     e. Reboot jeltz (just to be sure)
  128.  3. Change the lab's internet numbers
  129.     a. First, try one client (alpha)
  130.        i.   cd /dlclient0
  131.         mv-hosts.revert alpha.uleth.ca.root
  132.         mv-networks.revert alpha.uleth.ca.root
  133.         netblk.revert alpha.uleth.ca.root
  134.         rc.local.revert alpha.uleth.ca.root
  135.         dlparam.revert alpha.uleth.ca.root
  136.        ii.  Reboot alpha
  137.        iii. alpha should be ok.  Try pinging from jeltz.  Try rlogin 
  138.          from jeltz.  Try dlogin from jeltz (just to be sure).
  139.        iv.  If any of the above fails (ii, iii) we're in trouble.  
  140.     b. Now redo step a.i. replacing '[b-z]*.root' for 'alpha.uleth.ca.root'.
  141.     c. Reboot honte, then the lab.
  142.  4. Modify jeltz's and alpha's fstab
  143.     a. cp /etc/fstab.nfs /etc/fstab; mount -a
  144.     b. cp /dlclient0/alpha.uleth.ca.root/etc/fstab.nfs \
  145.         /dlclient0/alpha.uleth.ca.root/etc/fstab
  146.  
  147.  
  148. >>Thanks.
  149. >>Hokkie Pranjoto
  150.  
  151. hope this helps.  
  152.  
  153. --
  154.   +-----------------------------------------------------------------------+
  155.   |  Leonard Senetza            |  E-Mail: senetza@alpha.uleth.ca         |
  156.   |  Academic Consultant        |          senetza@hg.uleth.ca            |
  157.   |  University of Lethbridge   |   Phone: 403-329-5162 FAX: 403-382-7108 |
  158.   |  Lethbridge, Alberta        |-----------------------------------------|
  159.   |  Canada, eh?                |  Disclaimer: Why should I tell _them_?  |
  160.   |  T1K 3M4                    |    What they don't know, can't fire me. |
  161.   +-----------------------------------------------------------------------+
  162.