LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2009, 10:45 AM   #1
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Rep: Reputation: 15
Quota issues


Hi,

I am using disk quotas in linux server, even though i set the quota limit to users some of the login accounts are able to store beyond the limit.

When i see the quota of the user using quota<user name> or repquota <filesystem>| grep <username> it shows me that the user has not reached his quota limit yet.

But when i map the drive in windows and see it shows me the user disk limits as per quota. but the data stored is more than quota limit.

I have tried running the quotacheck in single user mode, removed quotas and re-created on the FS. But no use, can any one help me here.
 
Old 11-28-2009, 11:44 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Tekken View Post
Hi,

I am using disk quotas in linux server, even though i set the quota limit to users some of the login accounts are able to store beyond the limit.

When i see the quota of the user using quota<user name> or repquota <filesystem>| grep <username> it shows me that the user has not reached his quota limit yet.

But when i map the drive in windows and see it shows me the user disk limits as per quota. but the data stored is more than quota limit.

I have tried running the quotacheck in single user mode, removed quotas and re-created on the FS. But no use, can any one help me here.
can you show the output of repquota for that user?? and show what happens when you try to create a large file in that users home dir...??
 
Old 11-29-2009, 11:54 PM   #3
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Please find the output of repquota for the user below,

XYZ -- 5585452 7800000 8000000 108 0 0

When i try to add the huge files it gets addedd and the repquota output after adding the huge files remains same as above.
 
Old 11-30-2009, 03:42 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Tekken View Post
Please find the output of repquota for the user below,

XYZ -- 5585452 7800000 8000000 108 0 0

When i try to add the huge files it gets addedd and the repquota output after adding the huge files remains same as above.
errmm...and what size file are you trying to add to this users space??
can you please add an oversized file, tell me the size of this file, then report back the repquota results...thanks
 
Old 11-30-2009, 11:06 PM   #5
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by centosboy View Post
errmm...and what size file are you trying to add to this users space??
can you please add an oversized file, tell me the size of this file, then report back the repquota results...thanks
It already has the data more than the quota limit, 8.5GB and i tried adding a file with size 2.5GB and it was added with out any warnings.

After adding the file when i checkd the repquota fro the user i got the output which i mentioned in my previous reply.
 
Old 11-30-2009, 11:20 PM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Did you applied quotaon command of partition on which you want to apply quota.

For example
quotaon /root

Thanks
 
Old 12-01-2009, 02:50 AM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Tekken View Post
It already has the data more than the quota limit, 8.5GB and i tried adding a file with size 2.5GB and it was added with out any warnings.

After adding the file when i checkd the repquota fro the user i got the output which i mentioned in my previous reply.
can you also show the output mount and the path to the directory where y ou are uploading the files?
 
Old 12-01-2009, 11:00 AM   #8
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vishesh View Post
Did you applied quotaon command of partition on which you want to apply quota.

For example
quotaon /root

Thanks
I did ran the command quotaon on the partition on which i have applied quota...
 
Old 12-01-2009, 11:02 AM   #9
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by centosboy View Post
can you also show the output mount and the path to the directory where y ou are uploading the files?
I have the quotas applied on /home directory of the server and have modified the /etc/fstab file accordingly by adding usrquota and grpquota lines....

I am uploading the files to the user home directory under /home/user
 
Old 12-02-2009, 03:16 AM   #10
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Here is the example,For a user xyz i have set his quota limit to 3GB with 2.8GB as soft limit and 3.0GB as hard limit.
User has only 2.2GB in his home directory, but the repquota command gives the below output showing that user has nearly 5.0GB and is not allowing to copy any more data in his home directory.

XYZ +- 5087300 2800000 3000000 7days 33319 0 0

Can i know what could be wrong here?
 
Old 12-02-2009, 03:56 AM   #11
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Tekken View Post
Here is the example,For a user xyz i have set his quota limit to 3GB with 2.8GB as soft limit and 3.0GB as hard limit.
User has only 2.2GB in his home directory, but the repquota command gives the below output showing that user has nearly 5.0GB and is not allowing to copy any more data in his home directory.

XYZ +- 5087300 2800000 3000000 7days 33319 0 0

Can i know what could be wrong here?
you still wont give me enough info so i cant help im afraid.
but i will say one thing. you have applied quota on all of the file systems it appears from what you have said......just bear in mind that users can store files elsewhere other then just their home directory.
 
Old 12-02-2009, 06:50 AM   #12
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Please find the output of the command mount

/dev/mapper/VolGroup_ID_22682-LogVolHome on /home type ext3 (rw,usrquota)

I have quotas applied only on /home partition to restrict users to store data.

What do you mean by this
"just bear in mind that users can store files elsewhere other then just their home directory."
 
Old 12-02-2009, 10:37 AM   #13
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by Tekken View Post
Please find the output of the command mount

/dev/mapper/VolGroup_ID_22682-LogVolHome on /home type ext3 (rw,usrquota)

I have quotas applied only on /home partition to restrict users to store data.

What do you mean by this
"just bear in mind that users can store files elsewhere other then just their home directory."
Check /etc/fstab : you should have usrquota in the options.
Remount the filesystem
Create quotaconfiguration files using
quotacheck -cum /home
You should see aquota.user or something like that in the top of your partition.
quotaon /home
edquota -u username
Change the appropriate column.
If you want your user to be unable to write more than a certain amount: put it in the hard quota.

What the person means is: if you create quotas for /home, but a user also has access to another directory on another filesystem, then he can still write to this filesystem until it is full.

Please provide output of each command that you did that proves you did what I said above.

Last edited by deadeyes; 12-02-2009 at 10:38 AM.
 
Old 12-02-2009, 10:32 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Certainly if a user is over 'quota' before quotas are enabled, the quota cmd will not delete any files. However, according to this http://linux.die.net/man/1/quota
Quote:
If quota exits with a non-zero status, one or more filesystems are over quota.
You could check that...
 
Old 12-06-2009, 11:31 PM   #15
Tekken
Member
 
Registered: Jun 2009
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by deadeyes View Post
Check /etc/fstab : you should have usrquota in the options.
Remount the filesystem
Create quotaconfiguration files using
quotacheck -cum /home
You should see aquota.user or something like that in the top of your partition.
quotaon /home
edquota -u username
Change the appropriate column.
If you want your user to be unable to write more than a certain amount: put it in the hard quota.

What the person means is: if you create quotas for /home, but a user also has access to another directory on another filesystem, then he can still write to this filesystem until it is full.

Please provide output of each command that you did that proves you did what I said above.
I have checked the /etc/fstab and it has the usrquota entry in it for my /home directory
Can i remount the files system while the users are accessing it or should i do it in single user mode?

I have followed the below steps for enabling quotas
1.Boot to single user mode (Init1)
2.Edited the /etc/fstab and kept usrquota entry in it.
3.Re-mounted the /home directory which has created the aquota.user file in /home partition.
4. used quotaon /home
5.Edited the appropriate columns for setting quota limits.

But still i have the same issue.

Let me know how i can remove and re-enable the quotas? What happens if i disable the exisiting quotas and reenable them by following steps?

What happens to the user files if i set quota limit to the size less than the data in user's home directory?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Quota + Print Quota dimingo Linux - Newbie 1 09-25-2008 12:31 AM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 03:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
redhat7.3 and disk quota issues xemous Linux - General 2 01-06-2005 08:07 AM
quota on RH 7.3 keevitaja Linux - Newbie 5 08-17-2002 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration