LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-710105/)

adeyint 03-08-2009 05:25 PM

NFS
 
Hi,
How can I perfom file transfer in my Linux. I have three computers one for manster and the second two for slave.
Could you please guide me through this.

btmiller 03-08-2009 05:50 PM

What do you mean by "master" and "slave"? These terms are (to my knowledge) not used with NFS. I assume you mean that you have one server and two clients. On the server, you're going to need to set up an /etc/exports file that descibes which filesystem(s) are to be exported. If you have the NFS server installed, then typing "man 5 exports" will bring up the man page for the exports file which lists all of the options.

In general, an exports file looks like:

Code:

/directory/to/export host1(rw) host2(rw)
Once you've set up your exports start/restart the NFS server.

On the clients you can mount the filesystem as normal, assuming NFS client pacvkages are installed, e.g.

Code:

mkdir /mnt/server
mount -t nfs server:/directory/to/export /mnt/server

To make the mount happen automatically on boot, add it to the /etc/fstab. There are a number of mount options -- see "man nfs" for details.

If you need more detail than this, you need to post which distro you're using (how to install packages and restart services varies from distro to distro).

watcher69b 03-08-2009 07:46 PM

you can also "map a drive" using ssh if you have gnome or kde this is really easy. looks like a normal file browser

adeyint 03-09-2009 03:04 AM

NFS
 
I thank you very much for your guidance on this topic.
I am new with no full knowledge on Linux and thanks for your correction i my terms.
When I said manster and slave i meant client and server.
I am using Red hat 9 operating systems to build a cluster.
I have loaded the three computers with this red hat 9.
I will do my NFS as you have directed and get back to you if you do not mind?
I want to start from this before posting any further questions for you the expert.


All times are GMT -5. The time now is 07:10 AM.