Module 7: Storage Space Management

In this module, I experiment with Space Guarantees and File Reservation, Configure Deduplication services for a Volume, and  Create a Quotas for all users of the qtree, and Create a Quota for an existing qtree and modifying an existing Quota.

Quotas provide a way to restrict or track the disk space and number of files used by a user, group, or qtree. Path of the quotes:  /etc/quotas file.

We use quotas in the Storage system to limit resource usage. It will give us notification when resources usage reached the specific level that we defined or also track usage of resources. Quotas working with users and group, and qtree. When a quota is created with a qtree, it is called tree quota.

The tasks for the module 7: 

  • Explore file space consumption
  • Configuring deduplication for a volume
  • Create and Manage quotas
  • Generate a quota report
  • Modify the /etc/quotas file and implement quota changes

Steps for the task: Explore file space consumption

In this task, I will discuss how to explore file space consumption. I will create a volume with space reserved for file and create fully provisioned and thin provision file with it

Step 1: Create a new volume with 30 MB in aggregate 1 for reserved space for the files FileVol

vol create Filevol -s file aggr1 30m

 

Step 2: Mount FileVol

#mkdir /mnt/dataontap/Filevol

#mount 192.168.1.15 (IP_Address) :/vol/FileVol/mnt/dataontap (system_name)/FileVol

Step 3: Create a fully provisioned 10 MB file in FileVol that is called FULLfile

#cd /mnt/dataontap/FileVol

#dd if=/dev/zero of =FULLfile bs =1000 count =100000

Step 4: Create 10MB file called SPARSEfile in FileVol

#dd if =/dev/zero of =/SPARSEfile bs=1 count = 0 seek = 100000

Step 5: add a overwrite  protection to FULLfile

file reservation /vol/FULLfile enable

Step 6: add overwrite protection to SPARSfile

file reservation /vol/FILEvol/SPARESfile enable

3

Steps for the task: Configure deduplication for a volume

In this task, I will configure deduplication on NASvol

Step 1: First you need to add license for the deduplication services on Storage System

The license of deduplication is A-SIS.It is integrated with Data ONTAP software and the WAFL file system.

For the deduplication, you need to enable the “nearstore option NetApp storage system”

options licensed_feature.nearstore_option.enable

If options licensed_feature.nearstore_option.enable is off,

turn it on

options licensed_feature.nearstore_option.enable on

options licensed_feature.nearstore_option.enable

1

Check your license list

2.jpg

Step 2: Now I will turn on and check the status of the deduplication services on NASvol by the following command

sis on /vol/NASvol

sis status /vol/NASvol

3.jpg

Step 3: In this step, I will configure the deduplication service on NASvol to run on the flexible volume with percentage level of fingerprints in the change log reached the default threshold 20% by the following command

sis config -s auto /vol/NASvol  [ This configuration only for the future data]

4.jpg

Step 4: Now I will start the deduplication process for the existing data by the following command

sis start -s /vol/NASvol

Press “Y” for confirmation

df -s /vol/NASvol                   [ for checking the space saving]

 

5.jpg

Steps for the task: Create and Manage Quotas

In this task, I will use NetApp OnCommand System manager to create and manage quotas.

Step 1: Click Storage -> Qtrees in the NetApp OnCommand System manager. Click Create for creating a new qtree for NASvol with enabling oplocks and NTFS Security

 

7.jpg

8.jpg

9

10.jpg

Step 2:  In this step, I will create a CIFS share for nas_tree1 in the NetApp OnCommand System manager.11.jpg13.jpg14.jpg15.jpg

Step 3: Before creating a new quota, I will check the current value in the /etc/quotas file by the following command line

rdfile /etc/quotas

12.jpg

The output: #auto-generate by setup means user setup the tight restriction intentionally.

Step 4:  Now I will create a Quota using NetApp OnCommand System manager.

Click Storage -> Quotas ->Create 16.jpg16.jpg

17.jpg

Click next and entry the quota limit for Space Usage and file count 18.jpg

Click Next and Review the Summary of the quota configure19.jpg20.jpg21.jpg

Step 5: Now I will show how to check quota status and current value in the /etc/quotas file by the Storage System CLI

quota status   [ checking quota status]

rdfile /etc/quotas [verify the current value of quotas file]

22.jpg

Step 6: Navigating the nas_tree1 as Map Network Drive

Computer -> Map Network Drive23

Enter the folder path \\IP of Storage System \nas_tree1

24.jpg

Give the domain\Administrator  and Administrator password to establish connection

25.jpg

26.jpg

Step 7: Add at least 8MB of data to the nas_tree1 to check the threshold

27.jpg

28.jpg29.jpg

Steps for the task: Create a Quota Report

In this task, I will create a quotas report using Storage System CLI  and NetApp OnCommand System manager.

Step 1:  View the Quota report by the following command on CLI

quota report

30.jpg

Step 2: In the NetApp OnCommand System manager: click Storage -> Quotas

Click Quota Report tab and compare the value with the CLI output

29.jpg

Steps for the task: Modify the /etc/quotas file and implement quota changes

In this task, I will show how to modify the /etc/quotas file and implement quota changes after threshold exceeded

Step 1: Click the User Defined Quotas tab in the NetApp OnCommand System manager31.jpg

Step 2: Change the hard space quota from 12 MB to 15 MB from Edit Setting -> Space Limit

32.jpg

33.jpg

34.jpg

Step 3: Now click on the Quota Status on Volume tab. You can see each volume is listed with its quota status

35

Step 4: Select the NASvol volume and click the resize button to cause changes to the hard space to take effect

36.jpg

Step 10: From the Storage System CLI, I will again check the values in the /etc/quotas file to monitor the effect of change

rdfile /etc/quotas

37.jpg

Step 11: Try to exceed the limit of the quota

38.jpg

Thank You 🙂

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s