NFS Protocol: IBM Systems &technology Group
NFS Protocol: IBM Systems &technology Group
NFS Protocol: IBM Systems &technology Group
NFS Protocol
N04_NFS
N04_NFS
February, 2007
N series
AIX
N04_NFS
February, 2007
OSI Layer
NFS is an application, running in OSI layer 7
N series support NFS versions 2, 3, and 4
N04_NFS
Layer 7
Application
Layer 6
Presentation
Layer 5
Session
Layer 4
Transport
Layer 3
Network
Layer 2
Data Link
Layer 1
Physical Link
February, 2007
Version 3
Version 4
Based on RFC1094
Based on RFC1813
Based on RFC3530
Stateless
Stateless
N04_NFS
Stateful,
no dependency on
NFS v2 & v3
February, 2007
Mount
A UNIX command that allows you to attach exported resources to a
mount point
Netgroup
Network groups database that describes network groups used for
access permission checking during mount requests
Subnet
A group of individual hosts that can be addressed through one
broadcast domain
N04_NFS
February, 2007
Client
Mount command is used to attach a file system to the file system
hierarchy
Requires a mount point, usually a directory
Mounted directories are unmounted with the umount command
Mounted resources are included in the mount table (/etc/mnttab)
6
N04_NFS
February, 2007
Host (Client)
A host (client) is any computer with assigned IP address that has permission
to mount resources from a storage server. Hostnames can be configured in
the /etc/hosts and /etc/hosts.equiv files
Netgroup
/etc/netgroup file defines groups of host (clients) that the appliance uses for
processing access permission during remote mounts
Subnet
Portions of a network sharing common address format. Subnets are shown
in the /etc/exports file as follows:[network] IPAdd [netmask] netmask"
7
N04_NFS
February, 2007
Qtrees
Logical directory that resides in a volume
Directories
Containers of files
Files
Collection of data, records or information
N04_NFS
February, 2007
on
options nfs.webnfs.enable
off
Enables web-nfs
options nfs.export.pos.timeout
36000
options nfs.mountd.trace
off
N04_NFS
February, 2007
10
N04_NFS
February, 2007
11
N04_NFS
February, 2007
Qtrees exported by
Using exportfs command
Modifying the /etc/exports file
12
N04_NFS
February, 2007
exportfs -s pathname
Verifies the path to which a volume is exported
exportfs -d
Reverts the access cache to the format prior to 7.0
exportfs -r
Ensures only persistent exports are loaded
exportfs -h
Displays help menu for all options
13
N04_NFS
February, 2007
14
N04_NFS
February, 2007
15
N04_NFS
February, 2007
16
N04_NFS
rw=123.45.67.0/24
rw=123.45.67.0 255.255.255.0
root=123.45.67.0/24
ro=123.45.67.0 255.255.255.0
February, 2007
N04_NFS
February, 2007
Access Restrictions
Access restrictions specify
Which host can mount a resource
Whether access is read-write (rw) or read-only (ro)
Whether the root user on the client can access the resource
Whether files can be created with the SETUID bit
The UID of the user accessing the resource
18
N04_NFS
February, 2007
The rw option
Gives read-write access to specified hosts, if no host is
specified, all hosts have read-write access
The ro option
Gives read-only access to specified hosts, if no host is
specified, all hosts have read only access
N04_NFS
February, 2007
then
Only host1,host2,and host3 can access /vol/vol65
Read/Write access is granted to host2
Read Only access is granted to both host1 and host3
Root access is granted to host2
20
N04_NFS
February, 2007
21
N04_NFS
February, 2007
22
N04_NFS
February, 2007
23
N04_NFS
February, 2007
On a UNIX system
mount (without option displays mounted files)
showmount e filer_x
Displays list of mounts available from filer_X
24
N04_NFS
February, 2007
25
N04_NFS
February, 2007
26
N04_NFS
February, 2007
27
N04_NFS
February, 2007
28
N04_NFS
February, 2007
29
N04_NFS
February, 2007
30
N04_NFS
February, 2007
31
N04_NFS
February, 2007
32
N04_NFS
February, 2007
33
N04_NFS
February, 2007
Questions or Comments?
N04_NFS
February, 2007