Pages

Wednesday, November 16, 2011

Export ext File System and NFS mount

The idea is to share a directory from the source machine and to mount it on another.

In RHEL / Oracle Linux or similar environments:  

On source machine host1

Add to /etc/exports:
<absolute-path-to-the-directory>  *(rw,sync,fsid=0)

Restart services:
$ /etc/init.d/portmap restart
$ /etc/init.d/nfs restart  

On destination machine host2

mount host1:<absolute-path-to-the-directory> <mount-point: empty-directory-path-on-host2="">