Operating System - Tru64 Unix
1748181 Members
3234 Online
108759 Solutions
New Discussion юеВ

group.quota and user.quota consumiing too much space

 

group.quota and user.quota consumiing too much space

In our system user and group quota is not enabled. Still there exist user.quota and group.quota. These are huge files.

How can I stop growing of this file?
I tried to make it of 0 size using 'cp /dev/null group.quota' as root user, it says "cp: quota.user: permission denied" !. Even to root user.
It is consuming too much space. How to free these hard disk space.
7 REPLIES 7
Eric van Dijken
Trusted Contributor

Re: group.quota and user.quota consumiing too much space

If quotas are really not enabled, why not just delete (rm) the files?

Or trunc them with "> quota.user"
Watch, Think and Tinker.
Victor Semaska_3
Esteemed Contributor

Re: group.quota and user.quota consumiing too much space

From what I've read you can't delete those files. Also, they're not really not taking up that much space. Do a 'ls -ls quota*', the 1st field shows the actual amount of space used in KBs.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Mulgund
Frequent Advisor

Re: group.quota and user.quota consumiing too much space

Do you have a AdVFS?
"The AdvFS file system creates quota files to track quotas, grace periods, and fileset usage. Quota files are maintained within the fileset but, unlike UFS, the user cannot delete or create them. Quota files are present in the fileset even if quota limits have not been established." - AdvFS Administration guide.

Hope this helps.
-Srinivas
Han Pilmeyer
Esteemed Contributor

Re: group.quota and user.quota consumiing too much space

As said before in this thread, these files belong to AdvFS and can NOT be deleted or changed with normal utilities. They are not really as big as they seem; they're sparse files. You probably have a large UID and GID in use if they seem large.

Re: group.quota and user.quota consumiing too much space

My system shows -
root@es40> ls -ls quota.*
-rw-r----- 1 root operator 4202496 Jul 21 2003 quota.user
-rw-r----- 1 root operator 4194304 May 15 2002 quota.group

Sizes are about 4 MB for each quota file.
Now it is clear to me that even quota is not enabled quota.user & quota.group file will exit on advfs filesystem.

One thing I wish to know, how filesystem is protecting root user to delete these files or make them of zero value using > quota.user. The permission of these files are 640 and owner is root!


Han Pilmeyer
Esteemed Contributor

Re: group.quota and user.quota consumiing too much space

These files are part of the AdvFS metadata. They are not normal files. AdvFS prevents anyone (including root users) of tampering with these files.
Victor Semaska_3
Esteemed Contributor

Re: group.quota and user.quota consumiing too much space

nasimuddin ansari,

Weren't there no.s to the left of the permissions? When I run the command on both V4.x & V5.x I get:

16 -rw-r----- 1 root operator 163840 May 5 09:01 quota.group
24 -rw-r----- 1 root operator 196608 May 5 09:01 quota.user

So in my case quota.group is 16 KBs and quota.user is 24 KBs.

The quota.* files are special files so the OS won't let you do anything with them even as root.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.