You are not logged in.

#1 2010-12-17 00:53:56

bnolsen
Member
Registered: 2008-12-10
Posts: 64

arch as nfs server and automount problems [SOLVED]

I'm trying to set up an arch system as a NAS.

I have nfs working, I can "hard mount" one of the nfs exports manually using:

# mount nas:/export /mnt/tmp

However I also want to be able to mount this via autofs with

/net -hosts --timeout=60 --ghost

from my clients.  Currently this isn't working atall.

The clients run gentoo.  They can automount each other, the nas box can automount the gentoo nfs exports, etc.

The not working portion of this is automounting into the nas box.  showmount -e actually works.

Any suggestions?  Any way to utterly destroy the lame hosts.allow file and remove that as a potential variable?

$ ls /net/nas
ls: cannot access /net/nas: No such file or directory

$ ls /net/gentoo
export/

Last edited by bnolsen (2010-12-27 16:55:17)

Offline

#2 2010-12-22 14:46:02

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: arch as nfs server and automount problems [SOLVED]

check your /etc/hosts.allow

should be something like that

#
# /etc/hosts.allow
#
rpcbind: ALL
nfsd: ALL
# End of file

also see wiki for more detailed info


O' rly ? Ya rly Oo

Offline

#3 2010-12-27 16:46:18

bnolsen
Member
Registered: 2008-12-10
Posts: 64

Re: arch as nfs server and automount problems [SOLVED]

hosts.allow:

all: 192.168.5.0/255.255.255.0

Is that good enough?

Personally I wish arch would kill the hosts.* stuff.  It seems very archaic.  (I remember having to screw with this back in the early early redhat days).

This still doesn't work.  The nas machine can't even automount itself.

Okay the solution was to kill the line in /etc/conf.d/nfs-server.conf
It must interfere with the network discovery used by autofs or something.

#MOUNTD_OPTS="--no-nfs-version 1 --no-nfs-version 2"

Last edited by bnolsen (2010-12-27 16:54:09)

Offline

Board footer

Powered by FluxBB