tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Darryl Milczarek <darryl.milczarek () emsusa ! com>
To: tru64-unix-managers
Subject: SUMMARY: How big is quota.user & quota.group really?
Date: Thu, 22 Mar 2001 13:34:39 +0000	[thread overview]
Message-ID: <98526756929046.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks to the following for quick responses to an almost too obvious
question:
Joe Fletcher, Marie-Claud Vialatte, Scott Fafrak, Tyler Hall, and Dr. Thomas
Blinn

Lots of hints (and chastisements for not reviewing the archives):

The quota files are "sparse" files and aren't really as big as they look.
You can safely leave them alone.
Use du -sk /*/q* to see real size of these files.
Or, if you want to get fancy...
# ls -sl /*/quota.* | awk 'BEGIN { print "\n  Actual     Allocated\n" } \
{ printf ("  %6d    %10d    -- %s\n",$1*1024,$6,$10) }'
Two points:
1)  The files are sparse, that is, the vast majority of the pages that
could be in a file with the indicated end of file pointer are simply 
not there.  Think of it as a big array with only some rows filled in.

2)  You can't remove them.  Even if you're not using quotas, AdvFS has
a rule that you MUST have the files.  Period.

The problem is somewhere else.  There are ways to tell which files are
the really large files.  Those aren't them. 

*** Original Question below***

> As usual, we are continually fighting to reclaim space on our 
> drives. That is what prompted me to look at files which seemed to use a
lot 
> of space. Below are the ls -l listings of my q* files and I am wondering
if these 
> quote.x files are really as big as some of them seem to be, and why.
> 
> # ls -l /*/q*
> -rwxr-xr-x   1 bin      bin        57344 May 14  2000 /sbin/quotacheck
> -rw-r-----   1 root     operator   40960 Mar  5 17:58 /tmp/quota.group
> -rw-r-----   1 root     operator  303104 Mar  5 17:58 /tmp/quota.user
> -rw-r-----   1 root     operator    8192 Nov  2  1998 /u01/quota.group
> -rw-r-----   1 root     operator    8192 Nov  2  1998 /u01/quota.user
> -rw-r-----   1 root     operator    8192 Feb  2  1999 /u02/quota.group
> -rw-r-----   1 root     operator   32768 Feb  2  1999 /u02/quota.user
> -rw-r-----   1 root     operator    8192 May 27  2000 /u03/quota.group
> -rw-r-----   1 root     operator   16384 Mar  6 15:21 /u03/quota.user
> -rw-r-----   1 root     operator    8192 Nov  2  1998 /u04/quota.group
> -rw-r-----   1 root     operator    8192 Nov  2  1998 /u04/quota.user
> -rw-rw-rw-   1 applmgr  users     401408 Nov  2  1998 /u05/quota.group
> -rw-rw-rw-   1 applmgr  users     655360 Nov  2  1998 /u05/quota.user
> -rw-r-----   1 oracle2  dba2        8192 Feb  5 13:34 /u06/quota.group
> -rw-r-----   1 oracle2  dba2     2097152 Mar  8 12:36 /u06/quota.user
> -rw-r-----   1 root     20         40960 Mar  5 17:59 /usr/quota.group
> -rw-r-----   1 root     20        303104 Mar  5 17:59 /usr/quota.user
> 
> (Running AS4100, 4.0g)
> 
> Darryl Milczarek
> EMS 602 258-8545
> darryl.milczarek@emsusa.com 
> 

                 reply	other threads:[~2001-03-22 13:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox