For When You Can't Have The Real Thing
[ start | index | login ]
start > Sun > Disk Quotas

Disk Quotas

Created by dave. Last edited by dave, 13 years and 313 days ago. Viewed 2,707 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Creating Solaris Disk Quotas

  1. Create a 600 root:root file named 'quotas' in the root of the filesystem to be restricted.
  2. Edit quota for a typical user.
    # /usr/sbin/edquota someuser
  3. Make the quota line look like this: (example: 100MB hard limit, 90MB soft limit)
    fs $FILESYS blocks (soft = 95000, hard = 100000) inodes (soft = 9000, hard = 10000)
    Remember a block is 1KB.
  4. Copy the quota to each other user.
    # /usr/sbin/edquota -p someuser someotheruser
  5. Optionally, set the soft limit time limit.
    # /usr/sbin/edquota -t $TIME_IN_SECONDS
Turn quotas on:
# /usr/sbin/quotacheck $FILESYS
# /usr/sbin/quotaon $FILESYS

It would be wise to create a startup file to do this for you.

Reporting:

# repquota -v $FILESYS

(based on >>http://www.ifh.ee.ethz.ch/~ballisti/computer_topics/diskquota-sol7.html)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt