wrong block count for quotas after quotacheck

From: Vangelis Koukis (vkoukis@cslab.ece.ntua.gr)
Date: Wed Mar 02 2005 - 15:41:17 EST


Dear list,

I have the following problem, with Solaris 7 running on a dual processor
Enterprise 450: After realizing that /home (local ufs) was quickly running
out of space, I did a 'du -hs *' for all user directories and saw their
size was way larger than what the existing quotas would allow. In fact,
the result of 'quota -v' for certain users showed a block count which
did not correspond to the actual total size of all the files owned by
each of them.

I ran 'quotacheck /home', while there was very little or no activity
on the fs. This did not correct the problem, in fact the report showed
that for certain users the block count was decreased to zero, although
these users cleary owned files with a total size of ~200MB!

As a quick and dirty solution, I tried chown()ing (recursively) each
home dir to root, then back to the original owner. This appeared to do
the trick, as the results of 'quota -v' were correct. Indeed, 'repquota
/home' showed that about ten of the users had exceeded their soft quota
limit and the remaining days counter had started.

After that, I was curious to see what 'quotacheck' would do. After a
'sync' (quotacheck accesses the device directly, so I thought that maybe
this was the reason of its misbehaving, considering that maybe fs data
was still cached in memory), I ran quotacheck, which *again* reset the
quota block count to zero for many users.

After doing the whole chown() procedure again, 'repquota /home' reports
sane numbers, but I am worried that when quotacheck runs at the next
reboot, the problem is going to return.

I would be grateful for any pointers or advice. I will send a summary
of any messages to the list.

/home is mounted as follows:

/home on /dev/dsk/c0t3d0s0 read/write/nosuid/largefiles/quota on Mon
Dec 20 18:08:52 2004

'uname -a' returns:
SunOS machine_name 5.7 Generic_106541-36 sun4u sparc SUNW,Ultra-4

I've also installed the recommended patch cluster released 2004-09-29.

Thank you in advance.

--
Vangelis Koukis
vkoukis@cslab.ece.ntua.gr
OpenPGP public key ID:
pub  1024D/1D038E97 2003-07-13 Vangelis Koukis <vkoukis@cslab.ece.ntua.gr>
     Key fingerprint = C5CD E02E 2C78 7C10 8A00  53D8 FBFC 3799 1D03 8E97
[demime 1.01b removed an attachment of type application/pgp-signature which had a name of signature.asc]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:16 EDT