* a question about disk quota
@ 2004-03-13 15:34 Luca Ferrari
2004-03-15 10:17 ` Glynn Clements
2004-03-16 11:23 ` Stephen Samuel
0 siblings, 2 replies; 7+ messages in thread
From: Luca Ferrari @ 2004-03-13 15:34 UTC (permalink / raw)
To: linux-admin
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
--
Luca Ferrari,
fluca1978@virgilio.it
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-13 15:34 a question about disk quota Luca Ferrari
@ 2004-03-15 10:17 ` Glynn Clements
2004-03-16 11:23 ` Stephen Samuel
1 sibling, 0 replies; 7+ messages in thread
From: Glynn Clements @ 2004-03-15 10:17 UTC (permalink / raw)
To: fluca1978; +Cc: linux-admin
Luca Ferrari wrote:
> 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?
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-13 15:34 a question about disk quota Luca Ferrari
2004-03-15 10:17 ` Glynn Clements
@ 2004-03-16 11:23 ` Stephen Samuel
2004-03-16 11:55 ` Luca Ferrari
1 sibling, 1 reply; 7+ messages in thread
From: Stephen Samuel @ 2004-03-16 11:23 UTC (permalink / raw)
To: fluca1978; +Cc: linux-admin
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.
Luca Ferrari wrote:
> 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.
....
> 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,
--
Stephen Samuel +1(604)876-0426 samuel@bcgreen.com
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-16 11:23 ` Stephen Samuel
@ 2004-03-16 11:55 ` Luca Ferrari
2004-03-16 15:42 ` Darío Mariani
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2004-03-16 11:55 UTC (permalink / raw)
To: linux-admin
On Tuesday 16 March 2004 12:23 Stephen Samuel's cat walking on the keyboard
wrote:
> 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
--
Luca Ferrari,
fluca1978@virgilio.it
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-16 11:55 ` Luca Ferrari
@ 2004-03-16 15:42 ` Darío Mariani
2004-03-17 19:14 ` Luca Ferrari
0 siblings, 1 reply; 7+ messages in thread
From: Darío Mariani @ 2004-03-16 15:42 UTC (permalink / raw)
To: fluca1978; +Cc: linux-admin
Did you run quotacheck in single user mode?
Luca Ferrari wrote:
> On Tuesday 16 March 2004 12:23 Stephen Samuel's cat walking on the keyboard
> wrote:
>
>
>>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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-16 15:42 ` Darío Mariani
@ 2004-03-17 19:14 ` Luca Ferrari
2004-03-18 15:41 ` Richard Nairn
0 siblings, 1 reply; 7+ messages in thread
From: Luca Ferrari @ 2004-03-17 19:14 UTC (permalink / raw)
To: linux-admin
On Tuesday 16 March 2004 16:42 Darío Mariani's cat walking on the keyboard
wrote:
> 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
--
Luca Ferrari,
fluca1978@virgilio.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: a question about disk quota
2004-03-17 19:14 ` Luca Ferrari
@ 2004-03-18 15:41 ` Richard Nairn
0 siblings, 0 replies; 7+ messages in thread
From: Richard Nairn @ 2004-03-18 15:41 UTC (permalink / raw)
To: fluca1978; +Cc: linux-admin
Try doing a "find / -type f -uid nnn" That will find all the files that
the person owns.
On Wed, 17 Mar 2004 20:14:24 +0100, Luca Ferrari <fluca1978@virgilio.it>
wrote:
> On Tuesday 16 March 2004 16:42 Darío Mariani's cat walking on the
> keyboard
> wrote:
>
>> 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
--
| Richard Nairn Specializing in Linux
| Nairn Consulting Web / Database Solutions
| Calgary, AB
| Richard@NairnConsulting.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-03-18 15:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-13 15:34 a question about disk quota Luca Ferrari
2004-03-15 10:17 ` Glynn Clements
2004-03-16 11:23 ` Stephen Samuel
2004-03-16 11:55 ` Luca Ferrari
2004-03-16 15:42 ` Darío Mariani
2004-03-17 19:14 ` Luca Ferrari
2004-03-18 15:41 ` Richard Nairn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).