Wednesday, May 27, 2009

NFS

The Network File System is a way to connect a folder or drive on one computer to a remote computer so that it looks like the folder or drive is a local folder or drive on the remote computer. I "exported" /home/tayloe on legacy to varsity by first making sure that nfs was running on legacy by using chkconfig and ps -e.

Then I had to add the following line to /etc/exports on legacy:

/home/tayloe     varsity(rw)

That means "Allow /home/tayloe on legacy to be exported to varsity and give read write permissions".

Then I had to run the following executable file on legacy to make the change take effect:

/usr/sbin/exportfs  -a

Then on varsity, I executed the following command:

mount -t nfs 192.168.1.20:/home/tayloe /mnt/legacy

That means "Mount the folder on legacy called /home/tayloe and call it /mnt/legacy. The "-t" stands for "type".  192.168.1.20 is legacy's IP address.

After all this, I could navigate to /mnt/legacy on varsity and see the /home/tayloe files on legacy as if they were local on varsity.

No comments: