1 / 10

Module 16: Network File System (NFS)

Module 16: Network File System (NFS). We will discuss the process of setting up an NFS server and clients. NFS. The concept is somewhat similar to the Windows’ sharing disk. NFS servers allow the directories to be shared with clients. The clients have permission to mount NFS servers.

caelan
Download Presentation

Module 16: Network File System (NFS)

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. Module 16: Network File System (NFS) • We will discuss the process of setting up an NFS server and clients. Module 16 NFS

  2. NFS • The concept is somewhat similar to the Windows’ sharing disk. • NFS servers allow the directories to be shared with clients. • The clients have permission to mount NFS servers. Module 16 NFS

  3. Setting up NFS • [ ]# mountservername:/export/home /newhome command shared dir host dir • [root@it3423 ~]# mount mysvr1:/export/h2 /home Module 16 NFS

  4. Setting up NFS Server • /etc/exports permission is in this file. • The only one configuration file for NFS server. • Viewing the RPC(Remote Procedure Call) services: • [ ]# rpcinfo [options] • Start/Stop NFS • Desktop -> System Setting ->… -> nfs or • [ ]# /etc/init.d/nfs start • [ ]# /etc/init.d/nfs stop Module 16 NFS

  5. The Components of NFS (5 parts) • rpc.start – handles the file-locking issues between the client and the server • rpc.quotad – supplies the interface between NFS and the quota manager • rpc.mountd – takes care of verifying that the client has enough permission to make the request. • rpc.nfsd – takes care of handling NFS requests. • rpc.locked – handling lock recovery on crashed systems. Module 16 NFS

  6. Configuring NFS Server • GUI: • Desktop -> System Settings -> Server Settings -> NFS • Command line: (2 steps) • Creating /etc/exports file • Starting the NFS server process that read the /etc/exports file and follow the specification Module 16 NFS

  7. What is in /etc/exports file? • [ ]# cat /etc/exports • sharedDirectory hostNameOfClient(permission) /export/home fred(rw) (the hostname can be placed by an IP address) This file lists the shared directories, the clients, and the clients’ permission Module 16 NFS

  8. Starting NFS server process • Using commandexportfs [ ]# exportfs [option] This command needs to be run after /etc/exports file has been changed. Module 16 NFS

  9. Configuring NFS clients • mount [options] serverName:/directory • Soft mount: • allows the client to time out the connection after a number of retries. • Hard mount: (default) • The client must commit all changes to the server before allowing other operations. Module 16 NFS

  10. Questions • What is NFS? • Which command can be used to tell the NFS server processes to reread the configuration information? Module 16 NFS

More Related