home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / Misc / HigherEducationMailbox.mbox / Archives_provide_val_.attach / May_91 / sysadmin.458 < prev    next >
Text File  |  1991-05-21  |  4KB  |  131 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw12400
  3. \paperh10000
  4. \margl120
  5. \margr120
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs24 netinfo netinfod parent configuration server\
  7. \
  8. Q: Why do I get the message “
  9. \i Cannot find parent NetInfo server, still looking
  10. \i0 ” when I boot my system?\
  11. \
  12. A: If 
  13. \b localhost
  14. \b0  is not in the 
  15. \f1 /etc/hosts
  16. \f0  file, NetInfo will not run correctly.  Likewise, if the local domain's 
  17. \b /machines
  18. \b0  directory is not correctly set up, NetInfo will not run correctly.  The 
  19. \i Cannot connect to parent NetInfo server
  20. \i0  message is one possible symptom of these things.\
  21. \
  22. The 
  23. \i flat file
  24. \i0  
  25. \f1 /etc/hosts
  26. \f0  
  27. \b must, must, must
  28. \b0  contain the line\
  29. \
  30.  
  31. \f1     127.0.0.1    localhost\
  32.  
  33. \f0 \
  34. In addition, the local domain's 
  35. \b /machines
  36. \b0  directory should contain directories for 
  37. \b localhost
  38. \b0  and for 
  39. \b broadcasthost
  40. \b0 .  The localhost directory should have the value 
  41. \b 127.0.0.1
  42. \b0  for the 
  43. \b ip_address
  44. \b0  property; the 
  45. \b broadcasthost
  46. \b0  directory's 
  47. \b ip_address
  48. \b0  property should have the value 
  49. \b 255.255.255.255
  50. \b0 .\
  51. \
  52. In addition, 
  53. \b localhost
  54. \b0  should have a 
  55. \b serves
  56. \b0  property with the value 
  57. \b ./local
  58. \b0  and 
  59. \b broadcasthost
  60. \b0  should have a 
  61. \b serves
  62. \b0  property with the value 
  63. \b ../network
  64. \b0 .  After this is set up correctly, 
  65. \f1 niutil(1)
  66. \f0  should show the following:\
  67. \
  68.  
  69. \f1     # 
  70. \b niutil -read . /machines/localhost
  71. \b0 \
  72.     name: localhost\
  73.     ip_address: 127.0.0.1\
  74.     serves: ./local\
  75.     # 
  76. \b niutil -read . /machines/broadcasthost
  77. \b0 \
  78.     name: broadcasthost\
  79.     ip_address: 255.255.255.255\
  80.     serves: ../network\
  81.  
  82. \f0 \
  83. Note that the 
  84. \f1 nidump(1)
  85. \f0  command will NOT show all of this, and 
  86. \f1 niload(1)
  87. \f0  will NOT set this all up correctly (the 
  88. \b serves
  89. \b0  property will be missing).  
  90. \b\i It is essential that NetInfoManager or 
  91. \f1 niutil(1)
  92. \f0  be used.
  93. \b0\i0   Another possible mistake might be in the NetManager settings, stored in 
  94. \f1 /etc/hostconfig
  95. \f0 .  Ensure that, especially, the 
  96. \f1\b HOSTNAME
  97. \f0\b0  and the 
  98. \f1\b INETADDR
  99. \f0\b0  lines are correct.\
  100. \
  101. It could also be that the 
  102. \i Cannot connect to parent NetInfo server
  103. \i0  message is the result of “normal” operation.   If you see this message, don't get nervous until twenty minutes have gone by and the child netinfo domain is still looking for its parent.  When a configuration server boots, one might need to wait up to twenty minutes (at least, that's the longest we've ever seen it take) before connecting to the “parent” server.\
  104. \
  105. The issue is that 
  106. \f1 netinfod(8)
  107. \f0  checks the NetInfo database when it fires up.  If the database is small (e.g., the database for the 
  108. \b local
  109. \b0  domain), this won't take long.  If the database is big, this can take a long time.  The lower-level 
  110. \f1 netinfod
  111. \f0  process (the one for 
  112. \b local
  113. \b0 , e.g.) will try to connect to the parent domain's daemon, and won't be able to, because the parent domain's daemon is still checking the database, and not responding to queries.  So, just wait.\
  114. \
  115. Now, if twenty minutes goes by and the connection is still not established, it's likely that something else is wrong.  Ensure that the network is OK.  For example, if this is the top-level server, and it serves all appropriate domains, take it off the main net, and hook up an empty net (a doubly-terminated T connector).  Power up.  What happens?  If things are fine now, but not when on the main net, the problem is in the main net (cables, for example).\
  116. \
  117. Another tack to take is to boot single user, and run 
  118. \f1 /etc/rc
  119. \f0  by hand.  Check the messages from the NetInfo system.  NOTE: after doing this, 
  120. \b HALT THE SYSTEM
  121. \b0 .  
  122. \b\i DO NOT continue to multi-user start-up
  123. \b0\i0  -- the daemons will be started twice this way, and things may get horribly mucked up.\
  124. \
  125. QA458\
  126. \
  127. Valid for 1.0 \
  128. Not valid for 2.0\
  129. \
  130.  
  131.