Monday, March 19, 2012

NFS Server Setup



At first have to check 4 settings:

1. Packages

2. IP address

3. Host name

4. Host file [#vi /etc/hosts ]

# rpm -qa|grap nfs [to check the package]

Example:

Server side

# cd /

# mkdir arif

# cd arif

# vi hello

--------

:wq

# vi /etc/exports

/arif *(ro) [*ro ->read only, *rw-> read write , *- for all host, replace * by host_name for limited share i.e /arif linux102 linux103(ro) then only 2 user can share the file]

:wq

# service nfs restart

Client side

# showmount -e linux101 :/arif /mnt

# cd /mnt

# ls

No comments:

Post a Comment