1 / 15

Network File System

Network File System. Presented By: Syed Saleh Raza Gardezi Adeel Ahmad Fa10-bs( tn )-050 fa10-bs( tn )-56 Ali Tahir Shehryar Baig Fa10-bs( tn )-054 fa09-bs( tn )-015. Introduction.

dirk
Download Presentation

Network File System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Network File System Presented By: SyedSalehRazaGardeziAdeel Ahmad Fa10-bs(tn)-050 fa10-bs(tn)-56 Ali TahirShehryarBaig Fa10-bs(tn)-054 fa09-bs(tn)-015

  2. Introduction • Sun microsystems, inc. defined a remote file access mechanism that has become widely accepted throughout computer industry, known as NFS. • The mechanism allows a computer to run a server that makes some or all of its files available for remote access, and allow applications on other Computers(clients) to access those files.

  3. Remote file access Vs Transfer • When an application accesses a file that resides on a remote machine, the program’s operating system invokes client software that contacts a file server on the remote machine and perform the requested operations on the file.

  4. NFS Client and Servers • NFS file server runs on a machine that has a local file system. • NFS client runs on an arbitrary machine and access files on machine that runs nfs server. • Server and clients are specified either by IP address. • If the path refers to a local file , system uses the computer’s standered file system softwareto access the file while if path refers to a remote file, system uses NFS client software to access the remote file.

  5. Comparison… • Samba server uses SMB protocol which is considered standard for pc’s, windows and operating system both have built in client for it. • NFS server uses its own protocol which is usually just called NFS. • FTP is used for uploading , downloading and transfering of files but NFS only shares file in a Network.

  6. Advantages • Large num of users can access the file at same time. • Changes are made to shared file, they become available to all clients immediately. • It is centrally managed. • Easy to share if file available on multiple machines.

  7. Disadvantages • Security • Network or server may fail even when client OK. • Complexity

  8. Steps for configuration(Server ) • Stop firewall #service iptables stop • Download nfs # yum install nfs-utils • After downloading nfs # service nfs restart • Make a folder to share # mkdir /home/centos/nfs

  9. Cont… • Add entries in exports files # vi /etc/exports • /home/centos/nfs 192.168.1.3/255.255.255.0(ro,no_root_squash) # restart nfs

  10. Client configuration • Stop firewall #service iptables stop • Download nfs # yum install nfs-utils • After downloading nfs # service nfs restart • Creat a folder to show shared file # mkdir /home/centos/nfs

  11. Cont… • Mount # mount 192.168.1.2:/home/centos/nfs /home/centos/nfs • for confirmation # df -f

  12. Mounting • It allows the client to obtain a list of directry hierarchies that client can access through NFS. • It accepts full path names that allow client to identify a perticular directory hierachy.

  13. Optional Commands • rw: This option allows the client server to both read and write within the shared directory • sync: Sync confirms requests to the shared directory only once the changes have been committed.

  14. Cont… • no_root_squash: This phrase allows root to connect to the designated directory • no_subtree_check: This option prevents the subtree checking. When a shared directory is the subdirectory of a larger filesystem, nfs performs scans of every directory above it, in order to verify its permissions and details. Disabling the subtree check may increase the reliability of NFS, but reduce security.

  15. Thanks

More Related