You are not logged in.

#1 2015-05-02 08:31:11

FrançoisVal
Member
Registered: 2015-05-02
Posts: 2

[SOLVED] Problem mounting nfs shares

Hello everybody,

I keep getting the following error when I try to mount an NFS share;
mount.nfs4: an incorrect mount option was specified

The corresponding line in /etc/fstab is this:
pc-francois.local:/francois /mnt/pc-francois nfs4 rw,port=2049,noauto,users,intr  0 0

showmount -e pc-francois.local gives this:

Export list for pc-francois.local:
/export/archives 192.168.1.0/24
/export/portage  192.168.1.0/24
/export/francois 10.8.0.0/24,192.168.1.0/24
/export          10.8.0.0/24,192.168.1.0/24

Finally, the nfs related modules are loaded. lsmod | grep nfs gives this:

nfsv4                 129119  0
nfsd                  228113  13
auth_rpcgss            41857  1 nfsd
nfs                   118782  1 nfsv4
lockd                  57996  2 nfs,nfsd
grace                   1706  2 nfsd,lockd
sunrpc                170119  19 nfs,nfsd,auth_rpcgss,lockd,nfsv4


It works perfectly fine from other client not running on arch linux. Like indicated in the howto, I have enabled and started the services rpcbind.service,nfs-client.target and remote-fs.target

Can somebody explains what is happening ?

Last edited by FrançoisVal (2015-05-02 16:48:14)

Offline

#2 2015-05-02 16:47:27

FrançoisVal
Member
Registered: 2015-05-02
Posts: 2

Re: [SOLVED] Problem mounting nfs shares

I finally solved my problem by changing the mount options to  this in fstab:

pc-francois.local:/francois /mnt/pc-francois nfs4 rw,proto=tcp,vers=4.0,noauto,users,intr  0 0

One week to find it... Maybe it wants to use nfs 4.1 by default.

Offline

Board footer

Powered by FluxBB