Skip to contentSkip to conversation

a question about disk quota

DISCUSSION Luca Ferrari 5 participants 7 messages Mar 13, 2004 – Mar 18, 2004

lore
Share & tools
lore
#0 lore raw

Hello,
I've got some problems using disk quotas, or better I saw some strange behaviors that I cannot explain to myself.
This is the situation: one file server (Linux debian 3.0 r2) with homes mounted by client (debian too) through NFS. Users cannot access directly to the server, and this means the only directories they can see is their home, mounted thru NFS.
Since the number of user start growing fast,I decided to activate disk quotas per users. To do so I applied a first quota to a user and then copied it to all others using edquota -p. In other words I applied quotas after some users have already started to use their disk space, so that they can be already out of the quota limit. In fact, some users had to delete some files to come back under the limit, and until now all seems right.
But from a few days I found some users with large amounts of disk usage, exceeding the quota (and thus unable to save files), but I cannot find their files! In other words, checking their home they don't seem to use more space than the quota limit. I have already tried with find, to see all their files, I have ran quotacheck more than one time (and I execute it every night), but I cannot find their files.
The only solution I found is to temporarily raise their quota, but this is not what I want to do. Any idea? Could it be a bug? I'm using quota v2.

Thanks,
Luca

Signature · 2 lines
Luca Ferrari,
[email protected]
#1 lore raw
Quoted 8 lines · Luca Ferrari

But from a few days I found some users with large amounts of disk usage, exceeding the quota (and thus unable to save files), but I cannot find their files! In other words, checking their home they don't seem to use more space than the quota limit. I have already tried with find, to see all their files, I have ran quotacheck more than one time (and I execute it every night), but I cannot find their files.
The only solution I found is to temporarily raise their quota, but this is not what I want to do. Any idea? Could it be a bug? I'm using quota v2.

Have you checked the entire filesystem, not just their home directories?

Do any of the users have processes running which could be holding onto deleted files?

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw
In reply to Luca Ferrari

Quotas are based on file ownership, not location. The files owned by the over-quota users may be in another user's directory...

try:

find /partition -user victim -ls

where /partition is the partition where the quotars are applied.

Quoted 3 lines · Luca Ferrari

Hello,
I've got some problems using disk quotas, or better I saw some strange behaviors that I cannot explain to myself.
This is the situation: one file server (Linux debian 3.0 r2) with homes mounted by client (debian too) through NFS. Users cannot access directly to the server, and this means the only directories they can see is their home, mounted thru NFS.

....

Quoted 1 line

But from a few days I found some users with large amounts of disk usage, exceeding the quota (and thus unable to save files), but I cannot find their files! In other words, checking their home they don't seem to use more space than the quota limit. I have already tried with find, to see all their files,

Signature · 4 lines
Stephen Samuel +1(604)876-0426                [email protected]
		   http://www.bcgreen.com/~samuel/
   Powerful committed communication. Transformation touching
     the jewel within each person and bringing it to light.
#3 lore raw
Quoted 2 lines · On Tuesday 16 March 2004 12:23 Stephen Samuel's cat walking on the keyboard…

Quotas are based on file ownership, not location. The files owned by the over-quota users may be in another user's directory...

I know this, and it is for this reason that I'm surprised, since the users cannot access the whole disk, but only homes mounted via NFS. I've already tried to find files by owner along the whole disk, but I'm unable to find a total amount that exceeds the quota.
I cannot explain it to myself.

Luca

Signature · 2 lines
Luca Ferrari,
[email protected]
#4 lore raw

Did you run quotacheck in single user mode?

Quoted 12 lines · Luca Ferrari
Quoted 2 lines · On Tuesday 16 March 2004 12:23 Stephen Samuel's cat walking on the keyboard…

Quotas are based on file ownership, not location. The files owned by the over-quota users may be in another user's directory...

I know this, and it is for this reason that I'm surprised, since the users cannot access the whole disk, but only homes mounted via NFS. I've already tried to find files by owner along the whole disk, but I'm unable to find a total amount that exceeds the quota. I cannot explain it to myself.

Luca

#5 lore raw
Quoted 2 lines · On Tuesday 16 March 2004 16:42 Darío Mariani's cat walking on the keyboard…

Did you run quotacheck in single user mode?

No, but I have quotacheck in my crontab. The problem is that home directories are on the same partition of the /. I believe this is not a good idea, but this machine has been inherited, so I have to put it working as it is. Coming back to quota, the fact that homes are on the same partition of the / imposes to run quotacheck with the filesystem in rw mode, and as quotacheck warns me, it can cause errors. But what i found is users with 100.000 blocks, while quota is just 10.000 and their home is about 1-2MB.
I know that it seems ridiculus, but I don't know where to check for files.

Luca

Signature · 6 lines
Luca Ferrari,
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

Try doing a "find / -type f -uid nnn" That will find all the files that the person owns.

Quoted 16 lines · Luca Ferrari
Quoted 2 lines · On Tuesday 16 March 2004 16:42 Darío Mariani's cat walking on the keyboard…

Did you run quotacheck in single user mode?

No, but I have quotacheck in my crontab. The problem is that home directories are on the same partition of the /. I believe this is not a good idea, but this machine has been inherited, so I have to put it working as it is. Coming back to quota, the fact that homes are on the same partition of the / imposes to run quotacheck with the filesystem in rw mode, and as quotacheck warns me, it can cause errors. But what i found is users with 100.000 blocks, while quota is just 10.000 and their home is about 1-2MB.
I know that it seems ridiculus, but I don't know where to check for files.

Luca

Signature · 8 lines
|       Richard Nairn          Specializing in Linux
|     Nairn Consulting         Web / Database Solutions
|        Calgary, AB
 | [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html