Bug 113144 - Quotas causing kernel panic, with repquota also not showing usernames (only uids).
Summary: Quotas causing kernel panic, with repquota also not showing usernames (only u...
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: quota   
(Show other bugs)
Version: 2.1
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Amit Gud
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-01-08 21:37 UTC by Ken Kleiner
Modified: 2007-11-30 22:06 UTC (History)
4 users (show)

Fixed In Version: RHEL4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-01 18:24:36 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
output of kernel panic from /var/log/messages (2.92 KB, text/plain)
2004-01-08 21:43 UTC, Ken Kleiner
no flags Details
The /etc/fstab file from the server (1.79 KB, text/plain)
2004-01-08 21:43 UTC, Ken Kleiner
no flags Details
Latest kernel panic - output from /var/log/messages - see first line about 'remove_free_dquot' (2.87 KB, text/plain)
2004-01-09 15:18 UTC, Ken Kleiner
no flags Details
patch to fix quota locking errors (3.40 KB, patch)
2004-07-07 05:40 UTC, John Newbigin
no flags Details | Diff
Kernel panic (1.83 KB, text/plain)
2005-01-11 11:20 UTC, Peter J. Holzer
no flags Details

Description Ken Kleiner 2004-01-08 21:37:28 UTC
Description of problem:
When using the 'repquota' tool, kernel may sometime panic.  Also, the  repquota
output (when  kernel does not panic) displays USER ID's instead of USER NAMES.
edquota does show right quota information!

Version-Release number of selected component (if applicable):
quota package version is : quota-3.09-1.21
kernel is : 2.4.9-e.35smp

How reproducible:

turn quotas off (quotaoff fsname)
check quota (quotacheck -v fsname)
turn quota on (quotaon fsname)
repquota fsname 

Steps to Reproduce:
1. turn quotas off (quotaoff fsname)
2. check quota (quotacheck -v fsname)
3. turn quota on (quotaon fsname)
4. repquota fsname 

Actual results:
when repquota does work, only userid's are shown where usernames should be.
kernel panics sometimes when repquota runs

Expected results:
usernames instead of userids
no kernel panic

Additional info:
I am using nss-ldap for user database, ldap is running on a seperate server.
this server also is an nfs server
the filesystems are on a CLARIION storage array, using a Qlogic adapter for 

Comment 1 Ken Kleiner 2004-01-08 21:43:15 UTC
Created attachment 96843 [details]
output of kernel panic from /var/log/messages

Comment 2 Ken Kleiner 2004-01-08 21:43:57 UTC
Created attachment 96844 [details]
The /etc/fstab file from the server

Comment 3 Ken Kleiner 2004-01-09 15:18:17 UTC
Created attachment 96857 [details]
Latest kernel panic - output from /var/log/messages - see first line about 'remove_free_dquot'

Latest kernel panic - output from /var/log/messages - see first line about

Comment 4 John Newbigin 2004-07-07 05:40:22 UTC
Created attachment 101676 [details]
patch to fix quota locking errors

For RHEL2.1.  This is a backport of a fix which is in the 2.4 kernel.  Since
running this patch we have had no more quota related crashes.  It may still
have bugs though...

Comment 5 Ken Kleiner 2004-07-08 15:06:25 UTC
thanks for the info - does this mean that if I'm running 
2.4.9-e.40 or later I don't need the patch?  

Comment 6 John Newbigin 2004-07-09 01:23:05 UTC
The patch is from BK cset 1.133 which became part of the 2.4.15
kernel.  If you are running 2.4.9 then you need the patch.  You can
view the cset here:

There are also some fixes for ext3 & quota which should be backported
to the RH kernel but that does not seem to be causing us problems ATM.

Comment 7 Peter J. Holzer 2005-01-11 11:20:46 UTC
Created attachment 109599 [details]
Kernel panic

We also seem to have this or a related problem. We get infrequent kernel
panics, but they do not seem to be related to running repquota). Excerpt 
from syslog is attached.

Comment 8 John Newbigin 2005-01-11 22:17:10 UTC
Peter, if you have quotas enabled then you can get the in memory
corruption.  This does not always seem to cause the segfaults (see
also bugs #53591 and #98837) in the userland tools.  Sometimes you get
just a truncated list of quotas and other times it might work.  My
patch from comment #4 solved all the problems at our site.  This patch
is still not in the RH kernel but if you want to try my patched kernel
I can make it available, or you can build your own if you know how.

Comment 9 Peter J. Holzer 2005-04-12 08:40:34 UTC
We applied the patch and haven't had any panics since. We also didn't notice any
other adverse effects. 

Comment 10 John Newbigin 2005-04-13 02:03:10 UTC
Occasionally I still see quota problems if I add a lot of new users (I guess new
quota records is the issue).

Once added, repquota does not display a complete list of quotas but edquota on
the new users shows that the quota has been set.

To fix this I do a quotaoff followed by a quotaon.  I assume that the new
records are not being synced to disk immediatly, but I don't know for sure.  It
is not causing corruption or crashed so for now I can live with it.

I have not seen this problem after adding only one account.

Note You need to log in before you can comment on or make changes to this bug.