Tuesday, February 2, 2010

NFS Configuration


The Network File System (NFS) was developed to allow machines to mount a disk partition on a remote machine as if it were a local disk. It allows for fast, seamless sharing of files across a network.
             The directory to be mounted between the host machine and the client has to be defined in the /etc/exports file with the complete path name and file permissions. Before making use of NFS services, export the directory to be mounted in /etc/exports file.


            Edit the file /etc/exports
           
            #vi /etc/exports
           
            Enter the path and file permissions of the directory to be mounted

            #/home/nagaraj/rootfs *(rw,sync,no_root_squash,no_all_squash)

            #    [Press Esc & :wq]
            Now export the directory, by entering the following command.

            #exportfs -a

            Following are the options to control the NFS service.

            #service nfs stop
           
            #service nfs start

            After exporting successfully, start/restart the NFS service.

            #service nfs restart 

            On restarting the NFS service, it should display the following in the console.

            [root@omap root]# 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@omap root]#

            The above information ensures the proper working of NFS server in the linux host machine.

0 comments:

Post a Comment

Recent Comments

About This Blog

Blog Archive

  © Blogger template Webnolia by Ourblogtemplates.com 2009

Back to TOP