Search This Blog

Friday, December 11, 2009

Seting NFS Service on SUSE Server

Following are the steps to configure NFS on SUSE System



1) service nfsserver restart

2) echo "/home/user/nfs *(rw,sync,no_root_squash,no_all_squash,subtree_check)" >> /etc/exports

3) exportfs -a #; export the content of /etc/export file

4) exportfs #; Can check which files are exported and their permission

linux-hth0:/home/vijay # exportfs

/home/user

5) rpcinfo -p | grep nfs # this will list down the nfs server working status, we should be able to see some nfs working on the port number 2049

linux-hth0:/home/vijay # rpcinfo -p | grep nfs

100003 2 udp 2049 nfs

100003 3 udp 2049 nfs

100003 4 udp 2049 nfs

100003 2 tcp 2049 nfs

100003 3 tcp 2049 nfs

100003 4 tcp 2049 nfs

6)

linux-hth0:/home/vijay # netstat -tan | grep 2049

tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN

7) service nfsserver restart

linux-hth0:/home/vijay # service nfsserver start

Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify done

From Client : Target System

1) Setup the IP if not set
ifconfig eth0 $MY_IP netmask $MY_MASK up

2) Set the Gate way

route add default gw $GW_IP

3) mount -t nfs $SERVER_IP:/home/user /mnt -o nolock,rsize=4096,wsize=4096

To Check if the which all system has mounted on your Server check

From Server

linux-hth0:/home/vijay/BSP_OUTPUT # showmount
Hosts on linux-hth0:
X.y.74.190
X.Y.74.222

On other linux distribution version like fedora we need to use nfs instead of nfsserver.

No comments: