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 above information ensures the proper working of NFS server in the linux host machine.Edit the file /etc/exports#vi /etc/exportsEnter 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 restartShutting 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]#



0 comments:
Post a Comment