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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
tinhnhoAuthor Commented:
are those corrected ?
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.