Thursday, November 01, 2012

Autofs with NFS server - RHEL 5/6 system

NFS Server------------------
/etc/init/nfs start
/etc/init/rpcbind start

[root@nfs-server]# cat /etc/exports
/common         *(rw,sync)
/export/home    *(rw,sync)

NFS Client------------------

[root@nfs-client]# /etc/init.d/portmap start
[root@nfs-client]# /etc/init.d/autofs start

NFS Server entry should be in DNS or /etc/hosts file

[root@nfs-client]# cd /net/nfs-server/common
(Autofs automatically mounts share in net directory because of auto.net file)


NFS Client - Home Directors

[root@nfs-client]# grep home /etc/auto.master
/home   /etc/auto.home

[root@nfs-client]# cat /etc/auto.home
*       nfs-server:/export/home/&

Note: Home directors will have to created manually with appropriate permissions.

No comments: