Skip to content

Adding quotas

OUT OF DATE as of 2008-11-01.

Steps: (from http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/admin-primer/s1-storage-quotas.html)

  1. Modified /etc/fstab entry for /home and rebooted:
    /dev/md0 /home ext3 defaults,usrquota,grpquota 1 2
  2. Run:
    quotacheck -avug

    If that fails, can try:
    quotacheck -avugcm

  3. Added the quotacheck command to /etc/cron.weekly with the script:#!/bin/bash
    # Update the database that keeps track of quotas
    # Created by Mark Knight (4.13.06)
    # Modified by Mark Knight (5.06.06)
    quotaoff -a
    quotacheck -agum
    quotaon -a

    exit 0

  4. Set user quotas:
    1. Command:
      edquota knightm
    2. Disk quotas for user knightm (uid 500):
      Filesystem blocks soft hard inodes soft hard
      /dev/md0 1420 512000 1000000 126 0 0

      This sets a soft limit of 512 MB on the user “knightm,” with a hard limit of 1 gig.
  5. Check limits on quotas with
    repquota /home
Published inConfigurationOld as of 2009

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *