Red Hat Bugzilla – Bug 179357
Problem enabling quota's on cluster
Last modified: 2009-04-16 16:19:40 EDT
/sbin/quotaon -aug is *not* what we want here. We need:
Having quotas enabled for one file system should not affect other file systems.
In looking for alternatives:
For ext2/3, the quota mount options are ignored.
grpquota / noquota / quota / usrquota
These options are accepted but ignored.
Ok, so we have to have checkboxes in the UI and attributes to handle quota
support. There are two types of quotas - user and group; they should be
controlled individually, or we can make them one attribute:
Quota Support: [X] User [ ] Group
Quota Support: (*) None ( ) User ( ) Group ( ) User+Group
Or a dropdown list:
Quota Support: | None |
| User |
| Group |
| Both |
The way this is modeled in the UI should be consistent between RHCS3 and RHCS4
so that the code is reusable. The way this feature is modeled in the UI
directly affects how the underlying implementation will work, so it's important
to know this ahead of time. I'm going to speak with the UI designer.
Created attachment 124291 [details]
Implements quota support if specified in the options
This patch implements quota support based on whether or not they are specified
in the file system mount options (e.g. usrquota,grpquota). If specified,
quotas are assumed 'on', since these options have no effect in any other case.
The man page for "quotaon" is misleading: one or both of the quota options must
be present to enable quotas for a given file system, because the quotaon
command looks for them.
So, to use this patch, just add "usrquota", "grpquota", or both to the mount
options and the svclib_filesystem will:
(a) Create the quota files if they do not exist, and
(b) (re)generate quota information using "quotacheck" if it had to create any
quota information files.
Quota information is not updated on mount, rather, it is up to the
administrator to do this periodically.
With the above patch, no UI changes are necessary.
Created attachment 124330 [details]
Ported patch for RHCS4
Functionality is the same: add usrquota/grpquota to the file system mount
options and fs.sh will automatically turn on quotas after mounting the file
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.