Document Sharing in Ubuntu With NFS
The Network File System (NFS) was created to permit Linux machines to mount a circle parcel on a remote Linux machine as though it echo info were a neighborhood plate. It takes into consideration quick, consistent sharing of records over a system.
Note: All the orders are controlled by root client.
Brief about arrangement
I have two machine, both are running ubuntu 10.10 work area version. I am making one machine as a nfs server and another as a nfs customer
Server Machine IP 192.168.1.1
Customer Machine IP 192.168.1.3
Server side arrangement Package establishment
adept get introduce nfs-part server nfs-basic portmap
/and so on/init.d/nfs-part server restart/and so forth/init.d/portmap restart
Test whether NFS is running accurately with the rpcinfo order. You ought to get a posting of running RPC programs that must incorporate mountd, portmapper, nfs, and nlockmgr. You ought to get portmapper, nlockmgr, nfs, mountd port open by running rpcinfo order
rpcinfo – p localhost
You need to make reference to shares and their authorization in/and so forth/sends out document. I am sharing my/motion pictures registry with another pc on the system. Allowing read distinctly to customer machine Edit the record/and so forth/trades
vi/and so forth/sends out
/motion pictures *(ro,sync)
On the off chance that you need to impart same organizer to peruse and compose consent, at that point language structure will be
In the event that you need to share same envelope just for specific machine on the system at that point
For more information you can allude man pages for NFS
man 5 fares
At whatever point we alter/and so forth/trades, you should run
exportfs – av
– an Export or unexport all indexes
– v Be verbose. When sending out or unexporting, show what’s happening.
While showing the present fare list, additionally show the rundown
of fare alternatives.
Customer side arrangement Package establishment
able get introduce nfs-basic portmap
/and so on/init.d/portmap restart
Geting server share data
showmount – e 192.168.1.1
In the event that you run above order you ought to get following yield
Fare list from 192.168.1.1:
/motion pictures *
Mounting The NFS Shares On The Client
mkdir/tp mount – t nfs 192.168.1.1:/motion pictures/tp
Affirm the offer by mount order. You can likewise include mount passage in fstab record, so that at the following beginning of your machine you don’t have to physically mount the offer.
reverberation “192.168.1.1:/films//tp nfs defaults 0” >>/and so on/fstab
Note: If you can’t get to nfs share from customer please guarantee that
1. TCP/UDP 2049,111 ports ought to be open on your firewall.
2. Check the yield of rpcinfo order