• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 448
  • Last Modified:

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
0
tinhnho
Asked:
tinhnho
  • 2
  • 2
  • 2
1 Solution
 
Deepak KosarajuCommented:
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
 
tinhnhoAuthor Commented:
are those corrected ?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Deepak KosarajuCommented:
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
 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now