Professional Documents
Culture Documents
Quota Solaris
Quota Solaris
Soft Limits functions as stage-1 or warning stage. If user exceeds soft limit,
timer is invoked (default 7-days). For example if user soft limit is 100MB and
if user exceeds beyond timer, soft limit becomes hard limit and Hard Limits
functions as a storage ceiling and CANNOT be exceeded. If user meets hard
limit, system will not allocate additional storage.
While allocating quota system there are two different 2 objects being
monitored: 1. BLOCKS (based on how many blocks) 2. INODES (base on how
may inodes)
Quota Commands:
modify /etc/vfstab
to
Edit user quotas for ufs file system (here user is john)
Later if you want to copy john's quota policy to other users, the folling
command will copy john's quota policy to other users user1 user2 user3.
bash-3.00#
bash-3.00#
bash-3.00#
Note: With out enabling quota support any user who is defined in quota
policy able to exceed all of the limits both soft and hard
Tesing
For testing, use dd command to create file full of zero using john account.
This command will create file of size 1M. But if, tried to create file approx.
greater than 10 MB it will give an error warning of over disk limit.
quota_ufs: Warning: over disk limit (pid 22474, uid 304, inum 1287105,
fs /export/home)
quota_ufs: over hard disk limit (pid 22474, uid 304, inum 1287105, fs
/export/home)
9985+0 records in
bash-3.00$
/dev/dsk/c0d0s7 (/export/home):