0% found this document useful (0 votes)
10 views24 pages

09 NASProtocols EG

This document outlines the steps to enable CIFS and NFS client access by creating and configuring a Vserver, including setting up export policies, creating CIFS shares, and accessing these shares from Windows and NFS clients. It details tasks such as configuring network interfaces, creating volumes, and managing permissions. The exercise aims to provide hands-on experience with NAS protocols in a clustered Data ONTAP environment.

Uploaded by

ajay2345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views24 pages

09 NASProtocols EG

This document outlines the steps to enable CIFS and NFS client access by creating and configuring a Vserver, including setting up export policies, creating CIFS shares, and accessing these shares from Windows and NFS clients. It details tasks such as configuring network interfaces, creating volumes, and managing permissions. The exercise aims to provide hands-on experience with NAS protocols in a clustered Data ONTAP environment.

Uploaded by

ajay2345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

MODULE 9: NAS PROTOCOLS

EXERCISE 9: ENABLING CIFS AND NFS CLIENT ACCESS


In this exercise, you create a Vserver, configure CIFS and NFS, and access the Vserver namespace with CIFS
and NFS clients.

OBJECTIVES
By the end of this exercise, you should be able to:
 Create a Vserver
 Use OnCommand System Manager to configure a Vserver and NAS protocols
 Create an export policy
 Create a CIFS share
 Access a CIFS share from a Windows client
 Access the namespace from an NFS client

TASK 1: CONFIGURE A VSERVER TO SERVE CIFS AND NFS


STEP ACTION

1. In the System Manager navigation frame, click Vservers.

2. In the Vservers toolbar, click Create to create a new Vserver.

3. Enter vs2 as the name for your new Vserver.

4. Select the aggregate n02_aggr1.


NOTE: Keep in mind that Vservers are independent of aggregates and nodes. Here you are
simply choosing an aggregate to host the new Vserver’s root volume. Best practices suggest that
you do not use a node root aggregate to host a Vserver root. If you do so, you receive a warning.

E9-1 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

5. To complete the Vserver Details page of the wizard, take these actions:
a. Data protocols: CIFS and NFS
b. Language: C
c. Security style: UNIX
d. Root aggregate: n02_aggr1
e. DNS configuration: Leave defaults
f. Click Submit & Continue.

6. Select the Retain the CIFS data LIFs checkbox.


This option specifies that the data LIF supports both CIFS and NFS sessions.

E9-2 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

7. On the Configure CIFS/NFS protocol page, take these actions:


a. IP Address: 192.168.0.121
b. Netmask: 255.255.255.0
c. Gateway: 192.168.0.1
d. Home Node: cluster1_02
e. Home Port: e0d
f. Click OK.

8. Type ntapvs2 as the name for your CIFS server, and enter your fully qualified domain name.

9. Enter the domain administrator name administrator and the password supplied by your
instructor, and then click Submit & Continue.

E9-3 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

10. On the Vserver administration page, click Skip.

11. Review the configuration summary and click OK.

E9-4 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

12. In System Manager, select Vservers > cluster1.

13. In the list of Vservers, select vs2 and, on the Vservers toolbar, click the Edit button.

14. Be sure that only the file checkboxes are selected, and clear any other checkboxes.

15. Click the Resource Allocation tab.

E9-5 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

16. Select Delegate volume creation, and then choose aggregates that are available to host volumes
for this Vserver by clearing the checkboxes for the aggr0 aggregates and selecting the rest.
Best practices suggest that data volumes should never be stored on a node’s aggr0 aggregate.

17. Click Save and Close.

18. If the Configure Services warning appears, click OK.

E9-6 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
TASK 2: CREATE A NAS DATA LIF
In the previous task, the Vserver setup wizard configured a data LIF. In this task, you create a second LIF on
the opposite node.
STEP ACTION

1. Select Vservers > cluster1 > vs2 > Configuration > Network Interfaces.

2. Click the Create button to begin creating a data LIF.

3. Click Next.

E9-7 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

4. Name the LIF vs2_cifs_nfs_lif2 and select the Data role.

5. Click Next.

6. Choose NAS protocols CIFS and NFS and click Next.

E9-8 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

7. Click Browse.

8. Select e0e on cluster1_01 and click OK.

E9-9 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

9. Type IP address 192.168.0.122, netmask 255.255.255.0, and gateway


192.168.0.1, and then click Next.

10. Review your options and click Next, and then click Finish.

E9-10 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

11. Verify creation of the data LIF.

TASK 3: CREATE AN EXPORT POLICY


STEP ACTION

1. Select Vserver > cluster1 > vs2 > Policies > Export Policies.

2. Click the Create Policy button.

3. Name the policy vs2def and click Add to add a rule.

E9-11 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

4. Specify 0.0.0.0/0 for the client specification.

5. Select both CIFS and NFS for protocols.

6. Select Any for each access type and click OK.

7. Click Create.

TASK 4: CREATE AND EXPORT A VOLUME


STEP ACTION

1. Select Vserver > cluster1 > vs2 > Storage > Volumes.
The root volume for your Vserver is displayed.

2. In the Volumes toolbar, click the Create button to create a new volume.

3. Name the volume vs2_vol01.

4. Click the Choose button to select a home aggregate for the new volume.

5. Select n01_aggr1 and click OK.

6. In the Storage Type area, ensure that NAS is selected.

E9-12 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

7. To complete the volume specifications, enter these values:


a. Set the Total Size to 400 MB.
b. Leave the Snapshot Reserve at the default.
c. Select the Thin Provisioned checkbox.
d. Click Create.

8. After the wizard completes the volume creation, verify the new volume in the volume list.

E9-13 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

9. Perform these actions to modify permissions on the volume that was created at the beginning of
this task:
a. With vs2_vol01 selected, click Edit.
b. Select all of the Read, Write, and Execute checkboxes for Owner, Group, and Others.
c. Clear the Thin Provisioned checkbox.
d. Click Save and Close.

10. Repeat the previous step for the vs2 Vserver root volume.

11. Select Vserver > cluster1 > vs2 > Storage > Namespace and verify where the new volume has
been mounted in the namespace.
This page indicates that the volume is accessed by clients as /vs2_vol01 and that the default
export policy has been assigned to the volume.

E9-14 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

12. To unmount the volume and remount it with a different junction name, select the volume on the
Namespace page, click Unmount and, leaving the “Force volume unmount operation”
checkbox unselected, click Unmount.

13. On the Namespace toolbar, click Mount.

14. Perform the following actions:


a. Select volume vs2_vol01.
b. Type junction name vs2vol1.
c. Click Browse and select the root directory as the junction path.
d. Click Mount.
NOTE: In this exercise, the junction name is slightly different from the volume name. It is not
necessary for the names to be the same. The volume name is used to reference the volume
within the cluster. The junction name is used to reference the root of the volume in the
namespace.

E9-15 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

15. Verify that the junction path in the vs2 namespace is correct.

16. Select the volume vs2_root and click Change Export Policy.

17. Select export policy vs2def and click Change.

18. Repeat the process for vs2_vol01.

E9-16 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
TASK 5: CREATE A CIFS SHARE
STEP ACTION

1. To create a CIFS share for the new volume, select Vserver > cluster1 > vs2 > Storage >
Shares, and click the Create Share button.

2. When the Create Share window appears, click the Browse button to select a folder to share.
NOTE: It is helpful to remember that you share folders, not volumes. You can share a
subdirectory within a volume or any junction path.

E9-17 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

3. Expand the root directory to view the volume that was recently mounted in the namespace,
select the folder that represents the junction for the volume, and click OK.

4. Change the Share Name to vol1 and click Create.

E9-18 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

5. Verify that the new CIFS share appears in the Shares list.

6. Create a second CIFS share, sharing the root directory as rootdir.

TASK 6: ACCESS YOUR CIFS SHARE FROM A WINDOWS CLIENT


STEP ACTION

1. From the Windows command line, access the CIFS share by entering the following command:
net view ntapvs2
You access the CIFS server by the name that you assigned when you used the cifs create
command to create the server.

2. If you encounter Error 53 “The Network Path was not found,” attempt to identify the problem
by performing one or more of the following actions:
 Verify that the export policy allows CIFS access.
 Verify that CIFS access is enabled for the Vserver.
 Review the data LIF setup to ensure that the LIF has the proper routing group and that you
can ping the IP address from the Windows client.
 Verify that can you ping the CIFS server by name.
 If you cannot ping the CIFS server by name (the DNS is not set up to resolve the CIFS
server), attempt to access the CIFS server with the IP address of a data LIF.

3. Map a drive letter to the CIFS shares.


net use * \\ntapvs2\vol1
net use * \\ntapvs2\rootdir

4. Verify successful access.


dir z:
dir y:

E9-19 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
TASK 7: CONFIGURE CIFS HOME DIRECTORIES
STEP ACTION

1. In System Manager, select Vserver > cluster1 > vs2 > Storage > Shares, and click the Create
Home Directory button.

2. Enter the share name ~%w and the relative path name %w, and click Manage.

3. Click Browse.
NOTE: You can add one or more search paths for a directory name match.

E9-20 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

4. Select /vs2vol1 and click OK.

5. Click Add.

6. Click Save & Close.

E9-21 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

7. Click Create.

8. Notice that the home directory share is among your list of CIFS shares.

9. From your Windows desktop, open File Explorer.

E9-22 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
STEP ACTION

10. Navigate to the vol1 share on your z: drive.

11. On the vol1 share, create a directory called administrator and, in that directory, create an empty
text file called adminfile.

12. Map a drive to the home-directory share and verify the contents.
net view \\ntapvs2
net use * \\ntapvs2\~administrator
Drive X: is now connected to \\ntapvs2\~administrator.
X:

dir
Volume in drive X is ~Administrator
Volume Serial Number is 8000-0405
Directory of X:\
07/08/2011 01:26 PM <DIR> .
07/08/2011 01:26 PM <DIR> ..
07/08/2011 02:06 PM 13 adminfile.txt
1 File(s) 13 bytes
2 Dir(s) 199,090,176 bytes free

E9-23 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.
TASK 8: ACCESS YOUR DATA FROM AN NFS CLIENT
STEP ACTION

1. Verify the export policy that was created for your volume.
vserver export-policy rule show -vserver vs2

2. Log in to the Linux machine.


mkdir /mnt/vs2
mkdir /mnt/path01

3. Using the IP address of either data LIF within vs2, access vs2 exports through NFS.
mount -t nfs 192.168.0.121:/ /mnt/vs2
mount -t nfs 192.168.0.122:/vs2vol1 /mnt/path01

4. Explore both NFS mounts, which are mounted at different points in the vs2 namespace, and
locate the home directory that you created earlier in the exercise.
cd /mnt/vs2/vs2vol1/administrator/
ls
adminfile.txt

5. Copy some data into the vs2_vol01 volume, and compare the amount of space that was used
before the copy with the amount of space that is used after the copy:
a. From the cluster shell:
vol show -volume vs2_vol01 -fields used
b. Then from your Linux client:
cd /mnt/path01
cp /usr/include/* .
ls
c. Then from the cluster shell:
vol show -volume vs2_vol01 -fields used
The space consumed before the copy represents the Snapshot copy reserve space.

6. From your Linux client, navigate to the vs2_vol01 volume by using the other mount path.
cd /mnt/vs2/vs2vol1
ls

END OF EXERCISE

E9-24 Clustered Data ONTAP Administration: NAS Protocols

© 2013 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

You might also like