home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / sysadmin / 4430 < prev    next >
Encoding:
Text File  |  1992-07-29  |  7.4 KB  |  203 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!news.univie.ac.at!cosy.sbg.ac.at!news
  3. From: bnocker@cosy.sbg.ac.at (Bernhard Nocker)
  4. Subject: Re: Printer showing up as user
  5. Message-ID: <1992Jul29.110544.1310@cosy.sbg.ac.at>
  6. Sender: news@cosy.sbg.ac.at
  7. Organization: University of Salzburg
  8. References: <1992Jul28.124526.6483@taloa.unice.fr>
  9. Date: Wed, 29 Jul 1992 11:05:44 GMT
  10. Lines: 191
  11.  
  12. In article <1992Jul28.124526.6483@taloa.unice.fr> kjartan@ecu.unice.fr  
  13. (Kjartan Pierre Emilsson) writes:
  14. > Hi,
  15. > I've had a small problem with NetInfo recently.  Somehow, a Printer  
  16. showed  
  17. > up as a network user, and there is absolutely no way that I can get it  
  18. out  
  19. > of there.  I've tried to delete it directly in the NetInfoManager, but  
  20. > once I press delete, the entry remains, and if I select it again, I get  
  21. an  
  22. > error message, about some problems with the browser.  I then tried to  
  23. read  
  24. > the entry directly using niutil, but get an invalid Id answer.  How did  
  25. > this beast show up anyway ?  And how do I zap it ?
  26. > Thanks 
  27. > -Kjartan
  28. > --
  29. > Kjartan Pierre Emilsson            e-mail:  
  30. kjartan@ecu.unice.fr
  31. > Non-Linear Institute of Nice        tel.: 93 52 98 36
  32. > Universite de Nice - Sophia Antipolis    fax: 93 52 98 48
  33. > Parc Valrose
  34. > Nice, FRANCE
  35.  
  36.  
  37. For those that do not have access to Technical Alerts, check the  
  38. following:
  39. ==============================================================
  40. NeXT Technical Alert 92-1
  41. Supersedes NeXT Technical Alert 91-3
  42.  
  43. Summary
  44.  
  45. A loop in a NetInfo database can be erroneously created; deleting
  46. this loop will destroy the information in the database. One way
  47. loops are created is by destroying erroneous duplicate directories.
  48.  
  49.  
  50. Status
  51.  
  52. This Technical Alert supersedes NeXT Technical Alert 91-3, on the
  53. same topic. In this alert, the problem and preventative measure
  54. described in NTA 91-3 are documented; in addition, a program to
  55. fix this problem is described.
  56.  
  57.  
  58. Description
  59.  
  60. Under various circumstances that can be encountered during normal
  61. operations, duplicate directories can be created in a NetInfo
  62. domain. For example, a subdirectory of /printers might show up in
  63. /machines. This can occur using the high-level manager applications
  64. (such as PrintManager) as well us using other tools.
  65.  
  66. This duplicate entry is benign, unless it's deleted. If this
  67. duplicate entry is deleted a loop will be formed in the database.
  68. When using NetInfoManager, this loop will appear as dir:0 in a
  69. directory. This loop will lead to NetInfo failures and long delays
  70. in retrieving information from NetInfo. If the loop is deleted,
  71. the NetInfo database may be destroyed and you'll have to revert to
  72. a backup copy.
  73.  
  74.  
  75. Preventative Measure
  76.  
  77. A file called checksum is created by netinfod (the NetInfo server
  78. daemon) when it shuts down in a controlled fashion. This checksum
  79. file, one per NetInfo database, is written in the .nidb directory;
  80. its presence tells netinfod to assume that the database is  
  81. consistent.
  82. As a preventative measure, this file can be removed at system
  83. startup time, before netinfod is run; this will force netinfod to
  84. check through the entire database, which will prevent new duplicates
  85. from appearing.
  86.  
  87. Warning: This measure is preventative only. It will not
  88. correct existing loops. If you have a NetInfo database with a loop,
  89. see the section on Corrective Measure, below.
  90.  
  91. This preventative should be applied on each machine that's the
  92. master NetInfo server for a domain, except for machines that serve
  93. only a local domain. Even though these symptoms can appear in any
  94. NetInfo domain, network-wide or otherwise, it's rare to see them
  95. in a machine's local domain. Although it's not a problem to implement
  96. this workaround on any machine, the effort might not be worthwhile
  97. on machines that don't serve a network-wide domain. Here's an
  98. example:
  99.  
  100. Assume you have a network with three machines: master (which is
  101. the master NetInfo server of the root domain), clone (a clone server
  102. for the root domain), and client. The following table describes
  103. which machines serve which domains, and in what capacity. Let's
  104. further assume this is a two-level hierarchy.
  105.  
  106.     Machine        Domain Served    Type of Server
  107.  
  108.     master        /        Master Server
  109.     master        /master        Master Server
  110.     clone        /        Clone Server
  111.     clone        /clone        Master Server
  112.     client        /client        Master Server
  113.  
  114. In this configuration, we recommend applying the workaround to
  115. master, assuming that the local domains for each machine won't be
  116. modified very much. It's not necessary to apply the workaround to
  117. clone: Even though it serves the root domain, it's a clone server
  118. of the domain and thus obtains its authoritative information from
  119. master.
  120.  
  121. To implement the workaround, edit the file /etc/rc. Find the
  122. following lines (the first line shown is number 108 in the standard
  123. /etc/rc file):
  124.  
  125. # Start up the netinfo daemon
  126. if [ -f /usr/etc/nibindd ]; then
  127.     /usr/etc/nibindd && (echo -n ' netinfo')    >/dev/console 2>&1
  128. fi
  129.  
  130. Add a line (shown below in bold), so the above lines look like
  131. this:
  132.  
  133. # Start up the netinfo daemon
  134. if [ -f /usr/etc/nibindd ]; then
  135.     rm -f /private/etc/netinfo/*.nidb/checksum
  136.     /usr/etc/nibindd && (echo -n ' netinfo')    >/dev/console 2>&1
  137. fi
  138.  
  139. Note:  To perform this procedure, you must be logged in as or sued
  140. to root.
  141.  
  142. It's not necessary to reboot the machine; the next time it's shut
  143. down or rebooted, the workaround will be in effect.
  144.  
  145. Note that if you implement this preventative measure, it will take
  146. longer to start up the machines that are network-wide NetInfo
  147. servers than before. It's also much more likely that you'll see
  148. the following message:
  149.  
  150.     The following network error has occurred:
  151.         Cannot find parent NetInfo server, still looking<
  152.         Press 'c' to continue without parent server.
  153.     See your system administrator if you need help.
  154.  
  155. This message is the result of the local domain's netinfod being
  156. unable to communicate with the its parent domain's netinfod. This
  157. is because the parent domain's netinfod is busy checking the
  158. database's consistency, and isn't responding to requests from the
  159. local domain to bind. Wait several minutes before pressing c to
  160. continue.
  161.  
  162.  
  163. Corrective Measure
  164.  
  165. A program called nifix is available that removes, in a benign
  166. fashion, apparent duplicate directories and loops from a NetInfo
  167. domain. This program is available over anonymous FTP from NeXT.COM
  168. [129.18.1.2], in pub/Binaries/nifix.tar.Z. Be sure to retrieve this
  169. file with ftp in binary mode.  Authorized support Customers who do
  170. not have Internet access may obtain a copy of nifix on floppy disk
  171. from NeXT Technical Support, through their normal support channel.
  172.  
  173. The checksum for nifix.tar.Z (the output of the sum command) and
  174. its contents once extracted should be as follows:
  175.  
  176.     rhino% sum nifix.tar.Z nifix/*
  177.     14629     7 nifix.tar.Z
  178.     64307    16 nifix/nifix
  179.     00438     6 nifix/nifix-info.rtf
  180.  
  181. The compressed tar file contains two files: the executable program
  182. nifix, which a UNIX-level command-line utility, and nifix-info.rtf,
  183. a file with documentation on the program. Both of these files are
  184. contained in a directory ./nifix in the tar archive.
  185.  
  186.  
  187. For More Information
  188.  
  189. Contact your NeXT Authorized Support Provider for more information
  190. about this problem.  NeXT Authorized Support Customers should
  191. contact NeXTedge Technical Support with questions.
  192. =======================================================================
  193. Best wishes,
  194. Bernhard
  195. --
  196. Bernhard Nocker                          Beware root :-)
  197. University of Salzburg's Department of Computing Studies
  198. Jakob-Haringerstr. 5    5020 Salzburg    Austria, Europe
  199. +43-662-8044/6750          bnocker@cosy.sbg.ac.at
  200.