You are not logged in.

#1 2009-06-08 23:27:26

Cheifchimp
Member
From: Queensland Australia
Registered: 2009-05-07
Posts: 69

NFSv4 for dummies [SOLVED]

I have just replaced ubumtu 8.10 with archlinux i686 on my server (IBM X345) and now NFS has stopped working between my server and my desktop running Archlinux x86_64 installed amout a month ago.

On the both systems I carried over the working exports file and relevant parts of fstab.

Since installing arch on the server I have been unable to mount exports on either system.

On the server:

[root@fini]# mount /mnt/cave/data
mount.nfs: mount to server 'cave:/data' failed: RPC Error: Program not registered

On the desktop:

[mick@cave ~]$ mount /mnt/fini/data
mount.nfs: an incorrect mount option was specified

fstab snip:

fini:/data    /mnt/fini/data    nfs    rw,user,noauto,exec    0    0
fini:/cave    /mnt/cave/data    nfs    rw,user,noauto,exec    0    0

I've been reading the wiki ( http://wiki.archlinux.org/index.php/NFSv4 ) but  just get more confused with each reading.

Please help me

Last edited by Cheifchimp (2009-06-20 07:43:58)

Offline

#2 2009-06-08 23:36:30

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: NFSv4 for dummies [SOLVED]

That RPC Error seems to point to portmap not running or no entry in /etc/hosts.allow.

Last edited by lucke (2009-06-08 23:37:26)

Offline

#3 2009-06-20 05:05:37

Cheifchimp
Member
From: Queensland Australia
Registered: 2009-05-07
Posts: 69

Re: NFSv4 for dummies [SOLVED]

after several hours of reading the nfs4 wiki and editing numerous files I was able to guess the right combination of options to make it work.


Now how do I flag this as solved?

Offline

#4 2009-06-20 06:07:35

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: NFSv4 for dummies [SOLVED]

Cheifchimp wrote:

Now how do I flag this as solved?

Just edit your first post and change the title to "[SOLVED] NFSv4 for dummies".

Offline

#5 2009-06-20 06:19:53

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: NFSv4 for dummies [SOLVED]

Cheifchimp wrote:

after several hours of reading the nfs4 wiki and editing numerous files I was able to guess the right combination of options to make it work.


Now how do I flag this as solved?

Could you share your solution?


Acer Aspire V5-573P Antergos KDE

Offline

#6 2009-06-20 07:40:21

Cheifchimp
Member
From: Queensland Australia
Registered: 2009-05-07
Posts: 69

Re: NFSv4 for dummies [SOLVED]

follow http://wiki.archlinux.org/index.php/NFSv4 with the exception of:

rpc_pipefs    /var/lib/nfs/rpc_pipefs rpc_pipefs defaults 0 0

in /etc/fstab, rpc_pipefs errors (not found) at boot

change:

Nobody-Group = nogroup

to

Nobody-Group = nobody

in /etc/imapd.conf

then triple check for tpyos

Here is the setup I have working:
desktop hostname is cave
server hostname is fini

/etc/fstab snip

#NFS exports
nfsd        /proc/fs/nfsd    nfsd    rw,user,nodev,exec,nosuid 0 0
/data        /srv/nfs4/data    none    bind
/home        /srv/nfs4/home    none    bind
/srv/http    /srv/nfs4/http    none    bind

#NFS mounts
cave:/data    /mnt/cave/data    nfs4    rw,user,noauto,exec    0    0
cave:/home    /mnt/cave/home    nfs4    rw,user,noauto,exec    0    0
cave:/http    /mnt/cave/http    nfs4    rw,user,noauto,exec    0    0

/etc/imapd.conf

[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = bareclan

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]

Method = nsswitch

/etc/exports

# List of directories exported to NFS clients.  See exports(5).
# Use exportfs -arv to reread.
#
/srv/nfs4    192.168.1.0/255.255.255.0(fsid=0,rw,sync,no_subtree_check,async,no_root_squash)
/srv/nfs4/home    192.168.1.0/255.255.255.0(rw,sync,no_subtree_check,async,no_root_squash,nohide)
/srv/nfs4/data    192.168.1.0/255.255.255.0(rw,sync,no_subtree_check,async,no_root_squash,nohide)
/srv/nfs4/http    192.168.1.0/255.255.255.0(rw,sync,no_subtree_check,async,no_root_squash,nohide)

/etc/conf.d/nfs-common.conf

# Parameters to be passed to nfs-common (nfs clients & server) init script.
#

# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid alternatives
# for the NEED_ options are "yes" and "no".

# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=

# Options to pass to rpc.statd.
# See rpc.statd(8) for more details.
# N.B. statd normally runs on both client and server, and run-time
# options should be specified accordingly. Specifically, the Arch
# NFS init scripts require the --no-notify flag on the server,
# but not on the client e.g.
# STATD_OPTS="--no-notify -p 32765 -o 32766" -> server
# STATD_OPTS="-p 32765 -o 32766" -> client
STATD_OPTS="-p 32765 -o 32766"

# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=

# Options to pass to rpc.idmapd.
# See rpc.idmapd(8) for more details.
IDMAPD_OPTS=

# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=

# Options to pass to rpc.gssd.
# See rpc.gssd(8) for more details.
GSSD_OPTS=

# Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
PIPEFS_MOUNTPOINT=

# Options used to mount rpc_pipefs filesystem; the default is "defaults".
PIPEFS_MOUNTOPTS=

/etc/conf.d/nfs-server.conf

# Parameters to be passed to nfs-server init script.
#

# Options to pass to rpc.nfsd.
# See rpc.nfsd(8) for more details.
NFSD_OPTS=

# Number of servers to start up; the default is 8 servers.
NFSD_COUNT=

# Where to mount nfsd filesystem; the default is "/proc/fs/nfsd".
PROCNFSD_MOUNTPOINT=

# Options used to mount nfsd filesystem; the default is "rw,nodev,noexec,nosuid".
PROCNFSD_MOUNTOPTS=

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option.
# See rpc.mountd(8) for more details.
MOUNTD_OPTS="--no-nfs-version 1 --no-nfs-version 2"

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD="no"

# Options to pass to rpc.svcgssd.
# See rpc.svcgssd(8) for more details.
SVCGSSD_OPTS=

/etc/hosts.allow snip

portmap:    192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW 
nfsd:        192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
nfslock:    192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
lockd:      192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
rquotad:    192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
mountd:     192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
statd:      192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
mount:      192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW
umount:     192.168.1.100, 192.168.1.102, 192.168.1.103, 192.168.1.104 : ALLOW

/etc/rc.conf snip

# DAEMONS
DAEMONS=(syslog-ng hal microcode network portmap nfs-common nfs-server mysqld httpd openfired crond alsa cups)

I'm sure thats all

apologies if this is longer than is polite

Offline

#7 2009-06-20 08:37:01

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: NFSv4 for dummies [SOLVED]

Thanks maybe could be linked to wiki


Acer Aspire V5-573P Antergos KDE

Offline

Board footer

Powered by FluxBB