From owner-freebsd-current@FreeBSD.ORG Mon Feb 27 01:33:42 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75EE716A420 for ; Mon, 27 Feb 2006 01:33:42 +0000 (GMT) (envelope-from Matthew.Thyer@dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEF0643D69 for ; Mon, 27 Feb 2006 01:33:37 +0000 (GMT) (envelope-from Matthew.Thyer@dsto.defence.gov.au) Received: from ednmsw501.dsto.defence.gov.au (ednmsw501.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id k1R1VdT5028026 for ; Mon, 27 Feb 2006 12:01:39 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw501.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Mon, 27 Feb 2006 12:03:29 +1030 Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au [131.185.2.170]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id k1R1G7p11259; Mon, 27 Feb 2006 11:46:07 +1030 (CST) Received: from ednex511.dsto.defence.gov.au ([131.185.2.171]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Mon, 27 Feb 2006 11:46:07 +1030 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 27 Feb 2006 11:46:06 +1030 Message-ID: <07018E951F2FBF42B40B3D61086788344C1D26@ednex511.dsto.defence.gov.au> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: netgroup limits on -current ... [mountd(8)] Thread-Index: AcY28ZSAJ+tdhq2IR56x8o69/OF4ewESRzaQ From: "Thyer, Matthew" To: "Vladimir Egorin" , X-OriginalArrivalTime: 27 Feb 2006 01:16:07.0095 (UTC) FILETIME=[62A86470:01C63B3B] X-TM-AS-Product-Ver: SMEX-7.0.0.1345-3.52.1006-14288.000 X-TM-AS-Result: No--1.989000-8.000000-31 X-Mailman-Approved-At: Mon, 27 Feb 2006 02:09:13 +0000 Cc: Subject: RE: netgroup limits on -current ... [mountd(8)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 01:33:42 -0000 Not a good option in our environment as some of the Red Hat Linux operating systems do not support recursive netgroups (apparently rightly so as this is not in the RFC). The ideal solution would be for FreeBSD to support as many hosts in a netgroup as current Solaris systems do. -----Original Message----- From: Vladimir Egorin [mailto:vladimir@math.uic.edu]=20 Sent: Wednesday, 22 February 2006 12:50 AM To: freebsd-current@freebsd.org; Thyer, Matthew Subject: Re: netgroup limits on -current ... [mountd(8)] On Tue, Feb 21, 2006 at 12:24:35PM +1030, Wilkinson, Alex wrote: > OS: FreeBSD 7.0-CURRENT #24: Thu Feb 16 12:28:58 CST 2006 >=20 > Hi all, >=20 > We are currently experiencing problems with FreeBSD -CURRENT and mountd(8). > When we export a filesystem via NFS to a netgroup with a 'large' number of hosts > in it we get all sorts of truncation. There looks like a limit on the number of > hosts in a netgroup FreeBSD's mountd(8) can export to. e.g. >=20 > NFS Export > ---------- >=20 > /export/home/username my_netgroup >=20 > mountd(8) In Debugging Mode > --------------------------- >=20 > Feb 21 12:10:49 host mountd[83451]: can't get address info for host hostname.dsto.defence.g > Feb 21 12:10:49 host mountd[83451]: bad host host.dsto.defence.g in netgroup my_netgroup, skipping >=20 > This happens as mountd(8) builds its exports list via: >=20 > mountd: getting export list > mountd: got line /export/home/username my_netgroup > mountd: making new ep fs=3D0x4297314f,0x57f85ac > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au > got host host.dsto.defence.gov.au >=20 > ... [snip] =20 > Can someone please tell me if there is a limit on the number characters or hosts > that mountd(8) can build an export list from ? And if so can we increase it ? >=20 > Cheers >=20 > - aW This reminds me of an old problem I had on a solaris 2.5.1 -- it was not possible to have a "large" number of hosts in the netgroup and (thus) in the export list. The solution was to split the large netgroup into a number of smaller netgroups, and then combine them into a large netgroup using the smaller netgroups' names. We did that with a C program, you could also do that in a script. The problem was a limit of 255 characters on the length of the=20 netgroup list. I still have the program if you are interested. --=20 Vladimir