SUMMARY: Problems with large netgroup

From: Chris Cleary (c23cjc@kocrsv01.delcoelect.com)
Date: Thu May 21 1992 - 18:46:43 CDT


Thanks to everyone who responded to my problem:

Original Problem:

>We just added a bunch of hosts to our local netgroup. When we try to make yp
>we are getting the following error:
>
>entry too big
>problem storing *.* adsy,aessun,allante,...
>*** Error code 1
>
>What is this? How big of a problem do we now have? Can we fix it?
>
>Additional Info:
>SunOS 4.1.2
>
>Netgroup file looks something like:
>world (,,)
>nobody (-,-,)
>domain (,,core.delcoelect.com)
>systems (,-,core.delcoelect.com)
>users (-,,core.delcoelect.com)
>kocrsv01 (kocrsv01.delcoelect.com,,) (kocrsv01,,)
>kocrsv02 (kocrsv02.delcoelect.com,,) (kocrsv02,,)
>...
>crsv kocrsv01 kocrsv02 kocrsv03
>crsw kocrsw01 kocrsw02 kocrsw03 kocrsw04
>...
>aessun ptsw ptbn ptsy crsv

The problem is that ndbm has a 4k limit on the size of fields. What I had to
do was reduce the number of keys (left hand column) that I was combining into
the final key aessun. Instead of having a key for every machine I changed the
table to have a key for every group of machines instead. ie:

servers (kocrsv01,,) (kocrsv02,,) (kocrsv03,,) ...

I also deleted the fully qualified names since they were not needed.

Credit goes to:
Robert L Krawitz rlk@Think.COM
Ted Nolan ted@usasoc.soc.mil
Tim McDaniel dworkin@merlin.rootgroup.com
Tim Priddy tpriddy@homrun.intel.com
John F Detke octela!valadimir!jfd@uunet.uu.net
Brett Lymn blymn@baobab.awadi.com.au
Paulo L. de Geus paulo@dcc.unicamp.br
Ed Arnold era@niwot.scd.ucar.edu
Russ Poffenberger poffen@sj.ate.slb.com
Daniel Trinkle trinkle@cs.purdue.edu
Ian Reddy Ian_Reddy@sfu.ca

--

Chris Cleary 1-317-451-0639 c23cjc@kocrsv01.delcoelect.com Software Technology 8-322-0639 deaes!c23cjc Delco Electronics Corporation Where software can fix anything



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:42 CDT