Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find all files that consumes the disk quota ?

 
SOLVED
Go to solution
J_LZ
Occasional Visitor

How to find all files that consumes the disk quota ?

Hi all,

I am kinda new with the Open VMS system and I would like to seek your help with the challenge I am facing right now. 

We have some users who reached the maximum quota and I am currently on task to purge or bring down the number of files consuming the disk space. 

For example, VAX user [111,123] has reached  1064317 Blocks (519.69MB) over his permanent quota which is 250000 Blocks (122.07MB). That's around 426%.

Whenever I try to find all the files that the user [111,123] owns,  using DIR command from the disk's root directory, it does not show all the files.

 

Here's what I got :

DIR […]*.* /by_owner=USERNAME /size /owner
Grand total of 10 directories, 1373 files, 144.55MB

Looks like I am still missing around ‭375.14‬ MB of data. Is there a way on how I'll able to find the remaining files? Are there like hidden folders or files on the directory? 

Will appreciate all your response. Thanks a lot!

 

 

 

3 REPLIES 3
abrsvc
Respected Contributor

Re: How to find all files that consumes the disk quota ?

There are a few things to check:

1) Verify that there are no files located in any different directory outside of the "main" directory.

2) IRRC, quota includes any ALLOCATED space, not just the used space.  With a large cluster size, there can be quite a bit of wasted space.

Change your command to : DIR/SIZ=ALL 

Also:  You are using the wildcard *.* in your command.  for complete coverage, change that to *.*;* to insure that ALL versions are included.  Report back if there is still a large descrepancy.

Dan

Steven Schweda
Honored Contributor
Solution

Re: How to find all files that consumes the disk quota ?

> DIR [...]*.* /by_owner=USERNAME /size /owner

   Useless without "show default" (and not great with it).  Better:

      DIRE <device>:[000000...] /by_owner=USERNAME /size = all /owner

(Although with "/by_owner", I'm not sure what "/owner" buys you.)

   Potentially interesting:

      analyze /disk [/repair] <device>:

The quota data can get corrupted, and "analyze /disk" that can
find/repair such problems.


> Also: You are using the wildcard *.* [...]

      DIRECTORY

        Parameter

          filespec[,...]

      [...]
      o  If a file specification contains a file name or a file type,
         or both, and no version number, the DIRECTORY command lists
         all versions.
      [...]

   Try it.

J_LZ
Occasional Visitor

Re: How to find all files that consumes the disk quota ?

Hi abrsvc and Steven Schweda,

Thank you for your responses, I really found it very helpful. 

Here's what I got after using the command below, 

dir [...]*.*;* /by_owner=USERNAME/size=all /owner
Grand total of 10 directories, 1373 files, 144.55MB/519.01MB

Again, thanks a lot!