Академический Документы
Профессиональный Документы
Культура Документы
Module Objectives
By the end of this module, you should be able to: Explain NFS implementation in Data ONTAP License NFS on a storage system Explain the purpose and format of /etc/exports
List and define the export specification options Explain the rules for exports Describe the use of the exportfs command Mount an export on a UNIX host Add an export for an adminhost
2008 NetApp. All rights reserved. 2
NFS Overview
NFS Overview
NFS allows network systems (clients) to share files and directories that are stored and administered centrally from a storage system The following platforms usually support NFS:
Sun Microsystems Solaris Linux HP-UX And more
vol0
Network Connection
Client1
Client1
Setting up NFS
Configure NFS using either:
The CLI FilerView
Exporting Resources
10
Exporting Resources
To make resources available to remote clients, the resource must be exported. To export a resource persistently:
Edit the /etc/exports file with new entry Execute the exportfs -a command Use FilerView
11
This option gives root permissions for the pubs directory to host1.
All hosts can mount the /vol/vol0/home directory as read-write if an option is not specified.
This option gives read-write permissions to host2 only. All other hosts have no access.
12
2. Allow read-write access to /vol/vol0/home by host1 and host2 3. Allow read-write access to /vol/vol1 by host1 and read-only access by host3
c. d. e. f. g. h.
13
Exporting
16
-sec=sys,rw=10.254.232.12 -sec=sys,rw,root=10.254.232.12,nosuid
system> rdfile /etc/exports #Auto-generated by setup Mon Apr 30 08:32:21 GMT 2007 /vol/flexvol/qtree -sec=sys,rw=10.254.232.12 /vol/vol0/home -sec=sys,rw,root=10.254.232.12,nosuid system>
17
18
19
20
21
Temporary Exports
Use the exportfs command to create in-memory exports:
exportfs -i -o
Example:
exportfs -i -o ro=host1 /vol/vol0/home
NOTE: When the storage system reboots, this export will be gone.
22
Mounting
24
# mkdir /system-vol2 (2) # mount system:/vol/vol2 /system-vol2 # cd /system-vol2 (4) NetApp1-vol2$ ls l (5) -rwxr-xr-x root 719634 FEB 11 2004 -rwxr-xr-x root 719634 FEB 13 2004
(3)
,general ,policy
25
26
Module Summary
In this module, you should have learned to: NFS is a protocol used by Data ONTAP to network computers. The /etc/exports file defines exports.
You can configure NFS on a storage system using the CLI or FilerView. After you export a resource, you can mount an exported file system on a UNIX host.
27
Exercise
Module 9: NFS Estimated Time: 45 minutes
Answers
Module 9: NFS
What command would you use to view what is exported from the storage appliance?
exportfs
30