Skip navigation
This discussion is archived

xsan quotas not running

751 Views 5 Replies Latest reply: Feb 20, 2013 6:58 PM by killabyte RSS
killabyte Calculating status...
Currently Being Moderated
Feb 20, 2013 11:29 AM

Hi i have been trying to assign a quota for a group so each person in the group can have just 16GB storage capacity. I just can assign quotas one by one to each user. I have 1200 users in the AD so by hand is not an option i want to assign the quota to a group. Have anyone tried this before.

 

best

 

 

killabyte

Xserve, Mac OS X (10.6.8)
  • Blaidd Drwg Level 1 Level 1 (70 points)
    Currently Being Moderated
    Feb 20, 2013 5:14 PM (in response to killabyte)

    I don't think group quotas will do what you want. If you set a 16GB quota on the group, all files that have that POSIX group (regardless of the owner) will count toward the quota. If you want to allow each user 16GB max, you need to give each user a 16GB quota.

     

    If this is for home directories served via AFP, there is a user quota setting you can put in the user record for OD accounts that gets applied when the user logs into his AFP home. You might be able to do the same thing with AD accounts if you extend your AD schema or map the appropriate attribute and set the attribute in the user record.

  • Blaidd Drwg Level 1 Level 1 (70 points)
    Currently Being Moderated
    Feb 20, 2013 6:41 PM (in response to killabyte)

    You could probably script it with cvadmin. Typing help in cvadmin interactive mode shows these helpful commands. Note the "quotas set" command:

     

      quotas [ yes | no ]

                Enable or disable quota accounting and enforcement.

                Enter quotas with no value to get current setting.

     

     

      quotas get <user|group> <name>

                Get quota parameters for user or group <name>.

     

     

      quotas set <user|group> <name> <hardlim> <softlim> <timelim>

                Set current quota parameters for user or group <name>.

                <name> can be the name of a user or group, it can

                also be an integer interpreted as a uid (for user)

                or gid (for a group). Setting the hardlim, softlim,

                and timelim to 0 disables quota enforcement for that

                user or group. The values for hardlim and softlim are

                expressed in bytes. The value for timelim is expressed

                in minutes.

     

     

      quotacheck

                Recalculate the amount of space consumed (the current

                size field of the quota record) by all users and

                groups in the file system. This command can be run on

                an active file system although file updates (writes,

                truncates, etc.) will be delayed until quotacheck has

                completed.

     

     

      quotareset

                   Like quotacheck, but deletes the quota database before

                   performing the check. Use with extreme caution.

  • Blaidd Drwg Level 1 Level 1 (70 points)
    Currently Being Moderated
    Feb 20, 2013 6:44 PM (in response to Blaidd Drwg)

    Oh, and 16GB doesn't seem like much of a quota if you're working with video. Sorry for stating the obvious.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.