Professional Documents
Culture Documents
M07 NFS PDF
M07 NFS PDF
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
MODULE OBJECTIVES
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
NFS OVERVIEW
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
NFS OVERVIEW
The Network File System (NFS) is a protocol originally developed by Sun Microsystems in 1984, allowing
users on a client computer to access files over a network as easily as if the network devices were attached to
its local disks. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure
Call (ONC RPC) system. The NFS protocol is specified in RFC 1094, RC 1813, and RFC 3530.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
SETTING UP NFS
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
10
EXPORTING RESOURCES
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
11
EXPORTING RESOURCES
To export resources, use one of the following methods:
For persistence across reboots, specify the resources to export in the /etc/exports file; and then execute the
exportfs -a command to make changes effective immediately.
For temporary access, use the exportfs command to export resources not specified in the /etc/exports
file, or to export resources specified in the file but with different access permissions.
FIVE RULES FOR CREATING EXPORTS
1. You must export each volume separately. If you create, rename, or destroy a volume, the /etc/exports file is
updated automatically. This functionality can be disabled using the options nfs.export.autoupdate switch.
2. The storage system must be able to resolve host names if used in exports:
/etc/hosts, NIS, DNS
3. Access must be granted in a positive way:
A host is excluded when it is not listed or it is preceded by a dash (-).
If no host is specified, all hosts have access.
4. Subdirectories of parent exports can be exported with different option specifications.
5. Permissions are determined by matching the longest prefix to the access permissions in the /etc/exports file.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
12
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
13
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
14
EXPORTING
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
15
-sec=sys,ro,rw=sun,root=sun,nosuid
/vol/vol0/home
-sec=sys,rw,root=sun,nosuid
/vol/flexvol1
-sec=sys,rw,root=sun,nosuid
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
16
TEMPORARY EXPORTS
OPTION
Root Access
Read-Write
Access
Read-Only
Access
Anonymous
User ID
DESCRIPTION
The root option specifies that the root on the client has root
permissions for the resource when it is mounted from the storage
system.
The rw option gives read-write access to specific hosts. If no host
is specified, all hosts have read-write access.
The ro option gives read-only access to specific hosts. If no host is
specified, all hosts have read-only access.
The anon option determines the UID of the root user on the
client.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
17
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
18
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
19
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
20
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
21
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
22
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
23
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
24
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
25
MOUNTING
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
26
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
27
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
28
MODULE SUMMARY
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
29
EXERCISE
Please refer to your Exercise Guide for more instruction.
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
30
2011 NetApp, Inc. This material is intended for training use only. Not authorized for reproduction purposes.
33