M07-NFS
-
Upload
kurtenweiser -
Category
Documents
-
view
222 -
download
0
Transcript of M07-NFS
-
7/27/2019 M07-NFS
1/31
NFS
Module 7
Data ONTAP 8.0 7-Mode
Administration
-
7/27/2019 M07-NFS
2/31
2009 NetApp. All rights reserved.
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
-
7/27/2019 M07-NFS
3/31
2009 NetApp. All rights reserved.
NFS Overview
-
7/27/2019 M07-NFS
4/31
2009 NetApp. All rights reserved.
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
-
7/27/2019 M07-NFS
5/31
2009 NetApp. All rights reserved.
vol0 flexvol1
Exported Resources Overview
Storage System
Client1
etc
home
data_files
eng_files
misc_files
Network Connection
Client1
-
7/27/2019 M07-NFS
6/31
2009 NetApp. All rights reserved.
Setting Up andConfiguring NFS
-
7/27/2019 M07-NFS
7/31 2009 NetApp. All rights reserved.
Setting up NFS
Configure NFS using either:
CLI
NetApp System Manager
When setting up NFS, you must have:
An NFS license code
Determined if you are enabling NFS over TCP,
UDP, or both
Determined which version of NFS to enable
-
7/27/2019 M07-NFS
8/31 2009 NetApp. All rights reserved.
CLI: NFS Setup
To use the CLI to configure NFS on a storage
system, complete the following steps:
License NFS on the storage system:
license add
Executing this command starts the rpc.mountdand nfsd daemons.
Set NFS options:
options nfs
-
7/27/2019 M07-NFS
9/31 2009 NetApp. All rights reserved.
System Manager: NFS Setup
Enter the NFS
license code
To configure
licenses
-
7/27/2019 M07-NFS
10/31 2009 NetApp. All rights reserved.
System Manager: NFS Setup (Cont.)
The newly added
license code
Exports Added
-
7/27/2019 M07-NFS
11/31 2009 NetApp. All rights reserved.
Exporting Resources
-
7/27/2019 M07-NFS
12/31 2009 NetApp. All rights reserved.
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 -p command Use NetApp System Manager
To export a resource temporarily, use theexportfs -i -o command
-
7/27/2019 M07-NFS
13/31 2009 NetApp. All rights reserved.
/vol/vol0/pubs -rw=host1:host2,root=host1/vol/vol1 -rw=host2
/vol/vol0/home
Adding an Export: /etc/exports
Specifies the full path to the
directory that is exported
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
This option gives host1s root
user has root access
The first option is listed
following a dash. Additional
options are separated bycommas. In this example the -
rw option allows host1 and
host2 to mount the pubs
directory. Host names are
listed separated by colons
-
7/27/2019 M07-NFS
14/31 2009 NetApp. All rights reserved.
Test Your Knowledge
1. Allow root access to
/vol/vol0 by adminhost
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
/etc/exports
a. /vol/vol1 -rw=host2
b. /vol/vol0 -rw=adminhost,root=adminhost
c. /vol/vol0/home -rw=host1:host2
d. /vol/vol0 -ro=host2
e. /vol/vol1 -rw=host1,ro=host3
f. /vol/vol1 rw=host1,root=host3
g. /vol/vol0/home rw=host1,ro=host2
h. /vol/vol0 ro=adminhost2,root=adminhost2
-
7/27/2019 M07-NFS
15/31 2009 NetApp. All rights reserved.
Exporting
-
7/27/2019 M07-NFS
16/31 2009 NetApp. All rights reserved.
After adding an export to /etc/exports, use
the exportfs -a command to load the
export
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> exportfs
system> exportfs -a
system> exportfs
/vol/flexvol/qtree -sec=sys,rw=10.254.232.12
/vol/vol0/home -sec=sys,rw,root=10.254.232.12,nosuid
The exportfs Command
-
7/27/2019 M07-NFS
17/31 2009 NetApp. All rights reserved.
Temporary Exports
Use the exportfs command to create in-
memory exports:
system> exportfs -i -o
Example:
system> exportfs -i -o ro=host1/vol/vol0/home
NOTE: When the storage system reboots,
this export will be gone
-
7/27/2019 M07-NFS
18/31 2009 NetApp. All rights reserved.
Common exportfs Options
Display all current exports:
system> exportfs
Add exports to the /etc/exports file:
system> exportfs -p [options] path
Reload exports from /etc/exports files:
system> exportfs -r
Unload all exports:
system> exportfs -uav
Unload a specific export:system> exportfs -u [path]
Unload an export and remove it from /etc/exports
system> exportfs -z [path]
-
7/27/2019 M07-NFS
19/31 2009 NetApp. All rights reserved.
System Manager: Exporting
Current /etc/exports fileTo configure
exports
-
7/27/2019 M07-NFS
20/31 2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
-
7/27/2019 M07-NFS
21/31 2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
-
7/27/2019 M07-NFS
22/31
2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
-
7/27/2019 M07-NFS
23/31
2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
-
7/27/2019 M07-NFS
24/31
2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
The newly addedexport
-
7/27/2019 M07-NFS
25/31
2009 NetApp. All rights reserved.
System Manager: Exporting (Cont.)
anon applies
only to root users
anon=0 (root)
anon=65535 (deny access
to root users)
anon=65534
(nobody)
-
7/27/2019 M07-NFS
26/31
2009 NetApp. All rights reserved.
Mounting
-
7/27/2019 M07-NFS
27/31
2009 NetApp. All rights reserved.
Mounting From a Client
To mount an export from a client:
1. Establish a Telnet session or log in to the host
2. Create a directory as a mountpoint for the storage system
3. Mount the exported directory in the host directory you just
created
4. Change directories to the mounted export5. Enter ls l to verify that the storage appliance is mounted
and accessible
telnet 10.32.30.20 (1)
#mkdir /system-vol1-qt1 (2)
mount system:/vol/vol1/qtree1 /system-vol1-qt1 (3)
cd /system-vol1-qt1 (4)
#
#
#
ls l (5)
-rwxr-xr-x root 719634 FEB 11 2004 ,general
-rwxr-xr-x root 719634 FEB 13 2004 ,policy
-
7/27/2019 M07-NFS
28/31
2009 NetApp. All rights reserved.
Other NFS Administration Resources
For more information about NFS administration,
see Data ONTAP NFS Administration This advanced course covers:
Exporting resources across domains, subnets, and
netgroups
Advanced configuration
NFS statistics gathering
NFS performance tuning
NFS troubleshooting
-
7/27/2019 M07-NFS
29/31
2009 NetApp. All rights reserved.
Module Summary
In this module, you should have learned 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
-
7/27/2019 M07-NFS
30/31
Exercise
Module 7: NFS
Estimated Time: 45 minutes
-
7/27/2019 M07-NFS
31/31
Check Your Understanding
What does NFS stand for?
Network File System
What is the format for the /etc/exports file?
path -{export_option}
What is the purpose of export options?
To set access rights and host access
What command would you use to view what is
exported from the storage appliance? exportfs