home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / vmsnet / networks / tcpip / multinet / 2107 < prev    next >
Encoding:
Text File  |  1992-09-08  |  4.2 KB  |  104 lines

  1. X-Gateway-Source-Info: INTERNET
  2. Path: sparky!uunet!usc!news.service.uci.edu!unogate!mvb.saic.com!tgv.com!info-multinet
  3. Date: 08 SEP 92 19:38:51 GMT
  4. Newsgroups: vmsnet.networks.tcp-ip.multinet
  5. X-Return-path: <info-multinet-relay@TGV.COM>
  6. X-RFC822-From: David Barkelew <CCDK001@utxvms.cc.utexas.edu>
  7. From: David Barkelew <CCDK001@utxvms.cc.utexas.edu>
  8. Subject: Re: decwindows, multinet, and ucx
  9. X-Envelope-to: info-multinet@TGV.COM
  10. X-VMS-To: IN%"omicron@erich.triumf.ca"
  11. X-VMS-Cc: IN%"info-multinet@TGV.COM"
  12. Organization: The INFO-MULTINET Community
  13. Message-ID: <24604C3A08SEP92193851@TGV.COM>
  14. Nntp-Posting-Host: Mvb.Saic.Com
  15. Lines: 87
  16.  
  17. > Is there some trick to using multinet as the ip transport on a cluster
  18. > node which does not have ucx installed?  In the log file ucx$server_0_error.log
  19. > it says:
  20.  
  21. > %DECW-W-ATT_FAIL, failed to attach transport TCPIP
  22. > -SYSTEM-W-NOSUCHDEV, no such device available
  23.  
  24. > and the people from DEC are saying that this occurs if one does not have
  25. > UCX installed on a machine, regardless of whther or not it is being used.
  26. > Is this true?
  27.  
  28. I've found a race condition when you start MultiNet in parallel (as
  29. in BATCH or DETACHED job) with your systartup_v5.com.  Basically, you
  30. must insure that DECNET starts before MultiNet, and that MultiNet starts
  31. before DECWindows.  The DECWindows process seems to complete it's startup
  32. as soon as SYSTARTUP_V5.COM is complete, which (in my case) may or may
  33. not be before MultiNet completes.
  34.  
  35. You can restart your local DECWindows server using the following command,
  36. but it will kill all active windows on your workstation and you'll be back
  37. to the login box.
  38.  
  39.     @sys$startup:decw$startup restart
  40.  
  41. In my configuration, systartup_v5 runs a detached procedure (named
  42. start_networks.com) that starts all our networking software in the right
  43. order.  At the same time, my systartup_v5 tries to start everything as
  44. a detached job or in batch queues to increase parallelism and reduce the
  45. overall time it takes before users can begin logging in.
  46.  
  47. As a hack (no flames, please) here's what I do to sync the two jobs.
  48.  
  49. 1) define a logical/sys/exec in SYLOGICALS, which executes before
  50.    SYSTARTUP_V5.COM:
  51.  
  52.       $ define/system/exec wait_for_multinet "Multinet_Not_Started"
  53.  
  54. 2) create a site-specific DECWindow server startup command file that looks
  55.    like the following.  This is called by sys$startup:decw$startserver.com
  56.    before it actually (re)starts the server process.
  57.  
  58.   $! Wait for MultiNet to start so that the local display-server can
  59.   $!  use TCP/IP as a transport. (map to a section installed by MultiNet)
  60.   $!
  61.   $! Give up after 5 minutes and start DECWindows anyway
  62.   $!
  63.   $      count = 0
  64.   $      wait_for_multinet = f$trnlnm("wait_for_multinet")
  65.   $      if wait_for_multinet .eqs. "" then exit    ! no MultiNet on this node
  66.   $ 10$: if wait_for_multinet .nes. "MULTINET_STARTED"
  67.   $      then
  68.   $        count = count + 1
  69.   $        if count .eq. 60
  70.   $        then
  71.   $          define/sys/exec wait_for_multinet -
  72.                    "DECWindows started anyway.  Multinet took too long"
  73.   $          exit
  74.   $        else
  75.   $          wait 00:00:05
  76.   $          wait_for_multinet = f$trnlnm("wait_for_multinet")
  77.   $          goto 10$
  78.   $        endif
  79.   $      endif
  80.   $      deass/sys/exec/nolog wait_for_multinet
  81.   $      exit
  82.  
  83.  
  84. 3) in my start_networks.com, I redefine the logical WAIT_FOR_MULTINET
  85.    to indicate that multinet has started
  86.  
  87.   $    @sys$sysroot:[multinet]start_multinet
  88.   $    define/sys/exec wait_for_multinet MULTINET_STARTED
  89.  
  90.  
  91. Looking at the code in decw$startserver.com doesn't indicate that it waits
  92. for DECNET or SYSTARTUP_V5 to complete.  I haven't looked at the fiche
  93. (although I do have it :-), but observed behavior indicates that it does.
  94. I'm sure there are better ways to do this, but this works for me.
  95.  
  96. ++ Dave
  97. -----------------------------------------------------------------------
  98. David Barkelew                  Internet: barkelew@utxvms.cc.utexas.edu
  99. Unix/VMS Services,              UUCP:     ...!ut-emx!utxvms!barkelew
  100. Computation Center              THEnet:   UTXVMS::BARKELEW
  101. University of Texas             BITNET:   BARKELEW@UTXVMS
  102. Voice: (512)471-3241            FAX:      (512)471-1582
  103. -----------------------------------------------------------------------
  104.