Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 658586

Summary: GFS2: Verify that generic quota tools can perform all functions of gfs2_quota
Product: Red Hat Enterprise Linux 6 Reporter: Abhijith Das <adas>
Component: quotaAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: agk, bmarzins, ccaulfie, cfeist, cluster-maint, fdinitto, fnadge, lhh, mcermak, ovasik, riek, rpeterso, ssaha, swhiteho, teigland
Target Milestone: rcKeywords: FutureFeature, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: quota-3.17-13.el6 Doc Type: Enhancement
Doc Text:
Cause Replace gfs2_quota utility specific to GFS2 with generic quota utilities. Consequence quota utilities could not initialize, check, change, and synchronize GFS2 quotas. Change Complete support for GFS2 quota metadata has been implemented, new quotasync tool for explicit quota synchronization has been provided. Result All standard quota operations can be performed with quota tools on GFS2 file system. Users are encouraged to use quota tools instead of specific gfs_quota tool.
Story Points: ---
Clone Of: 596794 Environment:
Last Closed: 2011-05-19 14:09:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 596794, 676843    
Bug Blocks:    
Attachments:
Description Flags
quotasync patch
none
quotacheck patch none

Comment 3 Sayan Saha 2010-12-01 22:22:19 UTC
Looks like this can addressed in RHEL 6.1 time-frame. Granting pm_ack+.

Comment 16 Petr Pisar 2011-02-04 13:06:57 UTC
Created attachment 476999 [details]
quotasync patch

Sync patch transposed from upstream.

Comment 17 Petr Pisar 2011-02-04 13:07:54 UTC
Created attachment 477000 [details]
quotacheck patch

quotacheck patch implementing GFS2 transposed from upstream.

Comment 18 Steve Whitehouse 2011-02-04 13:17:04 UTC
Many thanks for sorting this out. It will be really good to have these tools available for gfs2 in rhel6.1

Comment 22 Steve Whitehouse 2011-02-07 15:37:01 UTC
Can you post the exact message that you got?

Quota should be changeable via remount, they are not changeable via the quota call, but you can get the current status that way.

Comment 23 Petr Pisar 2011-02-07 15:52:11 UTC
kernel-2.6.32-112.el6.x86_64
util-linux-ng-2.17.2-9.el6.x86_64
gfs2-utils-3.0.12-33.el6.x86_64

# mount -o remount,quota=on /mnt/quota/
error mounting /dev/loop0 on /mnt/quota: Invalid argument

# dmesg
GFS2: invalid mount option: seclabel

The same for remount,quota=off. /etc/fstab has no record for that mount point or block device. I have mounted /dev/loop0 backed by regular file.

Comment 24 Steve Whitehouse 2011-02-07 15:56:37 UTC
Interesting. It is true that seclabel is not a valid option - I guess it is some selinux thing. Can you try with selinux turned off?

Comment 25 Petr Pisar 2011-02-07 16:07:30 UTC
Permissive mode did not help. Disabling SELinux helped.

Comment 26 Steve Whitehouse 2011-02-07 16:13:10 UTC
That is a bit odd still, nobody has reported that issue before, so I'm not sure what is different in your case, but at least we know the answer now. Selinux is not supported on GFS2 in general.

Comment 27 Petr Pisar 2011-02-07 16:15:14 UTC
# strace -eexecve -s256 -fq mount -o remount,quota=on /mnt/quota/
execve("/bin/mount", ["mount", "-o", "remount,quota=on", "/mnt/quota/"], [/* 33 vars */]) = 0
[pid  1605] execve("/sbin/mount.gfs2", ["/sbin/mount.gfs2", "/dev/loop0", "/mnt/quota", "-o", "rw,remount,relatime,seclabel,localflocks,localcaching,quota=on,quota=on"], [/* 29 vars */]) = 0
error mounting /dev/loop0 on /mnt/quota: Invalid argument


The mount helper is being added some options by /bin/mount.

Comment 28 Petr Pisar 2011-02-07 16:16:54 UTC
Which come from /proc/mounts obviously:

/dev/loop0 /mnt/quota gfs2 rw,seclabel,relatime,localflocks,localcaching,quota=on 0 0

Comment 29 Steve Whitehouse 2011-02-10 11:08:28 UTC
Ok, we'll have to look into that. Can you open a bz for that specifically?

I suspect that we just need to make mount.gfs2 ignore the extra argument. It is annoying that every time we want to support an extra mount argument we have to update it. Note that mount.gfs2 will be gone in RHEL7 (it has just been removed from Fedora rawhide) which should resolve this problem.

It shouldn't affect testing of this particular quota feature now we know what the problem is though, I think.

Comment 30 Petr Pisar 2011-02-10 14:31:54 UTC
Bug #676630 opened for the remount/seclabel issue.

Comment 33 Martin Cermak 2011-03-16 13:55:18 UTC
Verified according to https://beaker.engineering.redhat.com/jobs/62389.

Comment 34 Florian Nadge 2011-03-30 14:41:49 UTC
Hi,
I am reviewing and editing erratum:
http://errata.devel.redhat.com/errata/stateview/10703
and would need some more details for this bug to state all the necessary
points.

Could you give a few key words to the points I pasted into the Technical Notes
field. Once I have the text I can start on the approval process. 

Thanks

Comment 35 Florian Nadge 2011-03-30 14:41:50 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    What actions or circumstances induced the feature request.
Consequence
    What action was inhibited by the feature’s absence.
Change
    What was done to implement the feature.
    Note: backported from upstream is not an explanation.
Result
    What now happens when the actions or circumstances above occur.
    Note: this is not the same as the feature request was fulfilled.

Comment 36 Petr Pisar 2011-03-31 12:10:59 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,10 +1,14 @@
 Cause
-    What actions or circumstances induced the feature request.
+    Replace gfs2_quota utility specific to GFS2 with
+    generic quota utilities.
 Consequence
-    What action was inhibited by the feature’s absence.
+    quota utilities could not initialize, check, change,
+    and synchronize GFS2 quotas.
 Change
-    What was done to implement the feature.
-    Note: backported from upstream is not an explanation.
+    Complete support for GFS2 quota metadata has been
+    implemented, new quotasync tool for explicit quota
+    synchronization has been provided.
 Result
-    What now happens when the actions or circumstances above occur.
+    All standard quota operations can be performed with
-    Note: this is not the same as the feature request was fulfilled.+    quota tools on GFS2 file system. Users are encouraged
+    to use quota tools instead of specific gfs_quota tool.

Comment 37 errata-xmlrpc 2011-05-19 14:09:58 UTC
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 therefore 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.

http://rhn.redhat.com/errata/RHBA-2011-0716.html