Nfs

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Nfs as PDF for free.

More details

  • Words: 299
  • Pages: 10
1

What is NFS?

The NFS environment contains the following components: NFS server A system that contains the file resources to be shared with other systems on the network. NFS client A system that mounts the file resources shared over the network and presents the file resources as if they were local.

2

Benefits of NFS

The benefits of an NFS include: Centralized file access Common software access Easy to use

3

NFS works ?

NFS NFS Server Server

A B

192.168.0.253 192.168.0.253 /var/zoom /var/zoom

Linux Linux Client Client

Linux Linux Client Client

A

/nfs /nfs User1

B

/nfs /nfs User2

4

Requirements Packages portmap-4.0-63.i386.rpm nfs-utils-1.0.6-46.i386.rpm Port Numbers 2049 Nfsd 111 Portmap Configuration File /etc/exports Service portmap nfs Daemons nfsd mountd statd lockd

5

NFS Configuration

NFS NFS Server Server 192.168.0.253 192.168.0.253 /var/zoom /var/zoom

Linux Linux Client Client

Linux Linux Client Client /nfs /nfs

/nfs /nfs

6

Configuring NFS Server

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ [root@comp1~]# mount 192.168.0.250:/var/ftp/pub/RedHat/RPMS/ /mnt /mnt [root@comp1 ~]# cd /mnt [root@comp1 ~]# cd /mnt [root@comp1 [root@comp1~]# ~]#rpm rpm -ivh -ivh nfs* nfs* --force --force --aid --aid

Create Createdirectory directoryto tobe beshared shared [root@comp1~]# [root@comp1~]#mkdir mkdir/var/zoom /var/zoom

Open Openconfiguration configurationfor forediting editing [root@comp1~]# vi /etc/exports [root@comp1~]# vi /etc/exports

7

/etc/exports

To Toadd addthe thebelow below

/var/zoom /var/zoom

192.168.0.0/255.255.255(ro,async) 192.168.0.0/255.255.255(ro,async)

8

NFS Server

To Torestart restartthe theNFS NFSservices services [root@comp1 ~]# service nfs restart [root@comp1 ~]# service nfs restart

To Tocheck checkNFS NFS server server [root@comp1 [root@comp1~]# ~]#showmount showmount -e -e <servername <servername or orserver serverip> ip>

9

Configuring Client

Create CreateMount Mountpoint pointon onclient client [root@comp1 ~]# mkdir /nfs [root@comp1 ~]# mkdir /nfs

Mount Mountremote remoteshared sharedfilesystem filesystemon onlocal localmount mountpoint point [root@comp1 [root@comp1~]# ~]#mount mount 192.168.0.253:/var/zoom 192.168.0.253:/var/zoom /nfs /nfs [root@comp1 [root@comp1~]# ~]#cd cd /nfs /nfs

10

Related Documents

Nfs
November 2019 21
Nfs
October 2019 18
Nfs
November 2019 15
Nfs Undercover
May 2020 13
Unx-nfs
June 2020 14
Nfs-mw
August 2019 39