You are on page 1of 22

Quotas Administration

Data ONTAP Fundamentals


NetApp Confidential -- Do Not Distribute
Objectives
At the end of this module you will be able to
Describe how quotas are used to restrict and track
disk access.
Determine the function of quotas.
Recognize the purpose of the /etc/quotas file.
Interpret the contents of the /etc/quotas file.
Define the function and syntax of the quota,
quota resize, quota report, and quota
logmsg commands.
Turn quotas on for a specific volume.
Display a quota report to view current status.
Identify and define the function of two special
entries in the /etc/quotas file.
NetApp Confidential -- Do Not Distribute
Quotas Overview
Functions of Quotas:
Limit set to control use of file or disk space
Method to track usage without imposing a limit
Way to warn users when usage is high
NetApp Confidential -- Do Not Distribute
Quota Targets
NetApp Confidential -- Do Not Distribute
Quota Targets
NetApp Confidential -- Do Not Distribute
# Target Type Disk Files Thold Sdisk Sfiles


* user@/vol/vol2 50M 15K 45M 10K
/vol/home/user user 50M 10K 45M
21 group 750M 75K 700M 9000
/vol/eng/proj tree 100M 75K 90M
writers group@/vol/techpub 75M 75K 70M
acme\cheng user@/vol/vol2 200M - 150M
tonyp@acme.com user - - -
rtaylor user@/vol/vol2 200M - 150M
s-1-5-32-544 user@/vol/vol2 200M - 150M
The /etc/quotas File
Disk and Files
Columns
List the hard limits
for disk space and
number of files
Sdisk and Sfiles
Columns
List the limits at
which warning
messages are
triggered
Target Column
Lists the users, groups, and trees to which
the quota limits will be applied
Type Column
Lists the type of quota being
applied
Threshold
Column
Lists the limit at
which console
messages are
triggered
NetApp Confidential -- Do Not Distribute
Quota Types
user user @vol user @tree
group
group@vol

group@tree

tree
tree@vol

NetApp Confidential -- Do Not Distribute
Quotas Example

# Target Type Disk Files Thold Sdisk Sfiles


* user@/vol/techpubs 100M 10K 90M - -
editors group@/vol/marketing 100M 10K 90M - 9K
engineers group@/vol/engineering 200M 20K 190M - 19K
yhagopian user@/vol/techpubs 500M 50K 475M - -
NetApp Confidential -- Do Not Distribute
Managing Quotas
Managing
Quotas
NetApp Confidential -- Do Not Distribute
Quota Commands
NetApp Confidential -- Do Not Distribute
Quota Report Example
NetApp> quota report u
Type ID Volume Tree Used Limit Used Limit Quota Specifier
Phughes 4 vol0 Proj1 856 104857600 3 1000 /vol/vol0/proj1
ACME\phughes
NetApp Confidential -- Do Not Distribute
The quota logmsg Command
Specifies interval between log messages

Option Function
ON Example: quota logmsg on 60m v vol2
OFF
Disables logging of messages to system log
-v
Applies interval to named volume
all
Applies interval to all volumes on the filer
NetApp Confidential -- Do Not Distribute
Special Entries in the /etc/quotas File
Two time-saving tools for managing quotas:

QUOTA_TARGET_DOMAIN

QUOTA_PERFORM_USER_MAPPING
NetApp Confidential -- Do Not Distribute
Special Entries in the /etc/quotas File
Change UNIX

names to Windows

names by
inserting a domain name prefix

QUOTA_TARGET_DOMAIN [domain name]


NetApp Confidential -- Do Not Distribute
Special Entries in the /etc/quotas File
Make UNIX

and Windows

user names
equivalent by mapping

QUOTA_PERFORM_USER_MAPPING

NetApp Confidential -- Do Not Distribute
Quota Error
Messages
NetApp Confidential -- Do Not Distribute
Quota Error Messages

Sent when quota limits are reached
Message (to console or client)
depends on quota type
Quota Types /etc/quotas Field
Hard Disk and File
Threshold Threshold
Soft Sdisk and Sfile
NetApp Confidential -- Do Not Distribute
Quota Error Messages
NetApp Confidential -- Do Not Distribute
Quota Error Messages
What happens when a soft quota limit is
reached?
Message to console
SNMP traps generated
What happens when a hard quota limit is
reached?
Message to console
Message to client
SNMP traps generated

NetApp Confidential -- Do Not Distribute
Topic Review
What are the two primary functions of quotas?
Restrict use of space
Track usage
What is the purpose of the /etc/quotas file?
Contains the quota limit rules to which the system refers
every time it receives a write request
What information is entered in the /etc/quotas file?
Quota target, type, disk and file size limits (hard quotas),
threshold limit, disk and file warning limits (soft quotas)
What command would you enter to turn quotas on for
volume vol2?
quota on vol2
NetApp Confidential -- Do Not Distribute
Topic Review
What command would you enter to activate changes made to the
/etc/quotas file for vol2?
quota resize vol2
What command would you enter to view a list of all users and
their current usage?
quota report -s
What command would you enter to make system log entries
every two hours?
quota logmsg on 120m v vol2
In the /etc/quotas file what does the entry,
QUOTA_TARGET_DOMAIN techpubs do?
Adds the domain name, techpubs as a prefix to quota targets
Root user and Windows Administrators are exempt from user and
group quotas. What are they not exempt from?
Tree quotas

NetApp Confidential -- Do Not Distribute
Exercises

Quotas True/False
Quota Management and Administration

You might also like