Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...??
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
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.
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.
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.
/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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.