Disk quota management on Solaris

by Ras 24. April 2012 19:27

### Quota management

You can specify two kind of limits for users

 

Soft limits - warning stage - exceeds amount of time (default 7 days), it will become a hard limit
Hard limits - cannot be exceeded

Quota Tools:
1. edquota   - facilitates the creation of quotas for users
2. quotacheck  - checks for consistency in usage and quota policy
3. quotaon - enables quotas on filesystem
4. repquota - displays quota information


##Steps to enable quota support
1. Modify /etc/vfstab - enable quotas per  filesystem ( edit "Mount options" column with rq)
2. create emty 'quotas' file in root of desired  file system (e.g. touch /export/home/quotas && chmod 600 /export/home/quotas)
3. edquota  username
fs /export/home blocks (soft = 500, hard = 1000) inodes (soft = 0, hard = 0)
   edquota -p username1 username2 username3  - will copy username1 policy to others
4. quotacheck -va
5. quota -v username1
6. quotaon -v /dev/dsk/c0t0d0s7  - enables quota

Tags:

FreeBSD/OpenBSD | Linux | Solaris

Comments (1) -

Anbarasu
Anbarasu India
5/17/2012 10:41:11 AM #

Hi ,

Is there any way to implement quota on Folder level in Solaris 10 Operating system.I believe Quota can be implemented on filesystem level on both UFS and ZFS file system.

Please suggest,

Thanks in advance,

Anbarasu

Reply

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

Ras is a network/Security professional working on multiple areas with multiple certificates like CCNP, CCIP, CCSP, CCSA, CCSE, LPI, PM, IPv6, ..

Month List