Revision [3943]

Last edited on 2011-04-12 09:40:03 by KenFong
Additions:
%%(text;/etc/defaults/nfs-common)
NEED_IDMAPD=yes
mount remote share with vers=4 option


Revision [3942]

Edited on 2011-04-12 09:23:11 by KenFong
Additions:
No idea why they make this so complicated and different form v3.
==Using CentOS as server==
%%(text;/etc/sysconfig/nfs)
SECURE_NFS="no"
%%(text;/etc/exports)
/exports 192.168.18.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/exports/home 192.168.18.0/24(rw,nohide,insecure,no_subtree_check,async)
%%(text;/etc/idmapd.conf)
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain
[Mapping]
Nobody-User = nobody
Nobody-Group = nobody
[Translation]
Method = nsswitch
Assuming you want to export /home, do this. This is because nfs4 works on psesdo filesystem?
mkdir /exports
mount --bind /home /exports/home
/etc/init.d/nfs start
/etc/init.d/nfslock start
/etc/init.d/rpcidmapd start
==using ubuntu as NFS client==
Notice that I'm mount /home on the remote server, not /exports/home!
%%(text;/etc/fstab)
192.168.18.12:/home /home nfs vers=4,hard,bg,tcp,intr,rsize=8192,wsize=8192 0 0
%%(text;/etc/idmapd.conf)
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
Deletions:
Haven't get a change to get it working... this seems to be a comprehensive guide
http://www.brennan.id.au/19-Network_File_System.html#nfs4


Revision [3941]

Edited on 2011-04-12 08:56:40 by KenFong
Additions:
===NFSv4===
Haven't get a change to get it working... this seems to be a comprehensive guide
http://www.brennan.id.au/19-Network_File_System.html#nfs4


Revision [3940]

Edited on 2011-04-12 08:10:24 by KenFong
Additions:
===Ubuntu as NFS client===
Aside from the usual stuff, it seems that the following option is required otherwise NFS mount will be very slow and one will get repeated messages "lockd: cannot monitor x.x.x.x" in kernel buffer:
%%(text; /etc/default/nfs-common)
NEED_STATD=yes


Revision [3465]

Edited on 2009-07-31 03:44:43 by WikiAdmin
Additions:
192.168.0.1:/data /nfs.data nfs _netdev,soft,intr,rw,bg,rsize=32768,wsize=32768,nfsvers=3 0 0
Deletions:
192.168.0.1:/data /nfs.data nfs _netdev,rw,bg,rsize=32768,wsize=32768,nfsvers=3 0 0


Revision [2127]

Edited on 2008-12-24 02:46:17 by WikiAdmin
Additions:
192.168.0.1:/data /nfs.data nfs _netdev,rw,bg,rsize=32768,wsize=32768,nfsvers=3 0 0
Deletions:
192.168.0.1:/data /nfs.data nfs _netdev,rw,bg,rsize=32768,wsize=32768,nfsvers=3,noauto 0 0


Revision [2124]

Edited on 2008-12-23 01:26:46 by WikiAdmin
Additions:
192.168.0.1:/data /nfs.data nfs _netdev,rw,bg,rsize=32768,wsize=32768,nfsvers=3,noauto 0 0
# _netdev makes sure this mount is brought up after networking
Deletions:
192.168.0.1:/data /nfs.data nfs defaults 0 0


Revision [1874]

Edited on 2008-08-06 21:05:21 by WikiAdmin
Additions:
/data 192.168.0.2(rw,no_root_squash,async)
Deletions:
/data 192.168.0.2(rw,no_root_squash)


Revision [785]

Edited on 2007-07-15 22:15:06 by WikiAdmin
Additions:
Make the mount permanent, edit /etc/fstab
192.168.0.1:/data /nfs.data nfs defaults 0 0


Revision [784]

The oldest known version of this page was created on 2007-07-15 22:12:50 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki