Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2006 11:46:06 +1030
From:      "Thyer, Matthew" <Matthew.Thyer@dsto.defence.gov.au>
To:        "Vladimir Egorin" <vladimir@math.uic.edu>, <freebsd-current@freebsd.org>
Subject:   RE: netgroup limits on -current ... [mountd(8)]
Message-ID:  <07018E951F2FBF42B40B3D61086788344C1D26@ednex511.dsto.defence.gov.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?07018E951F2FBF42B40B3D61086788344C1D26>