Subject: Re: NFS troubles
To: None <netbsd-help@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/11/2003 20:18:12
On Wed, Dec 10, 2003 at 03:18:42PM +0100, Jukka Salmi wrote:
> Hi,
>
> I'm setting up a NFS server on a NetBSD stable (1.6.2_RC3) i386 system
> and having some troubles. I read exports(5) and the Diskless NetBSD
> HOW-TO [1], but IMHO they are contradictory: according to the former
> "a host may be specified only once for each local filesystem on the
> server", while the latter lists the same host four times [2]. I think
> exports(5) is right, because using the following exports file
>
> /opt/diskless/root /opt/diskless/swap -maproot=root:wheel
> /opt/diskless/usr /opt/diskless/home -ro -maproot=nobody:nobody
>
> results in /opt/diskless/usr and /opt/diskless/home not being exprted,
> and the following message is logged:
>
> mountd[453]: "/opt/diskless/usr /opt/diskless/home -ro -maproot", line 5:
> Can't change attributes for /opt/diskless/home to Default
>
>
> What I want to do is to set up a some remote mount points for diskless
> clients (/, /usr, /home, etc.); some of them should be read-only, and
> some of them read-write. I think this should be possible... What am I
> missing?
It's possible only if they are on different partitions. The other way would be
to export root and swap to the client only, and the ones exported read-only
to a network/netmask. I've done this for some SunOS4 clients booting from
a NFS server.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 23 ans d'experience feront toujours la difference
--