NFS setup ?

Hi guys,

I just installed CentOs for my machine and like to setup nfs.

here is my info:
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      108G  2.4G  100G   3% /
/dev/hda1              99M   12M   83M  13% /boot
tmpfs                 248M     0  248M   0% /dev/shm
[root@localhost ~]#

and my /etc/exports contains this line :
/home 192.168.0.0/255.255.255.0(rw) 10.0.0.0/255.0.0.0(rw)

When I restart my nfs service:
[root@localhost ~]# service nfs restart
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@localhost ~]#

Everything seems start ok. I have not connected to nfs server yet but I think my nfs setup is not corrected. What do you think ? Thanks
tinhnhoAsked:
Who is Participating?
 
Deepak KosarajuDevOps EngineerCommented:
every this is correct make sure portmap service is up on the server and client. check with the following command
service portmap status
if its up and no firewall/selinux blocks then you are ready to go
use the following commad on client
mount :  

Following link can help you more
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-nfs-mount.html
0
 
Deepak KosarajuDevOps EngineerCommented:
exportfs
and type
exportfs -v
see where filesystem ins shared.
0
 
tinhnhoAuthor Commented:
[root@localhost ~]# exportfs
/home           192.168.0.0/255.255.255.0
/home           10.0.0.0/255.0.0.0

and

[root@localhost ~]# exportfs -v
/home           192.168.0.0/255.255.255.0(rw,wdelay,root_squash,no_subtree_check,anonuid=65534,anongid=65534)
/home           10.0.0.0/255.0.0.0(rw,wdelay,root_squash,no_subtree_check,anonuid=65534,anongid=65534)
[root@localhost ~]#

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
tinhnhoAuthor Commented:
are those corrected ?
0
 
dinendudasCommented:
# vi /etc/exports
/home 192.168.0.0/255.255.255.0(rw) 10.0.0.0/255.0.0.0(rw)

Then save the file

#exportfs -a
#Service portmap restart
#chkconfig portmap on
#service nfs restart
#chkconfig nfs on

0
 
dinendudasCommented:
or you can use

# vi /etc/exports
/home 192.168.0.0/255.255.255.0(rw) 10.0.0.0/255.0.0.0(rw,sync)

Then save the file
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.