Sponsored Content
Full Discussion: CentOS 5.3 quota
Operating Systems Linux CentOS 5.3 quota Post 302347379 by beaker457 on Tuesday 25th of August 2009 01:30:17 PM
Old 08-25-2009
CentOS 5.3 quota

I am running on CentOS 5.3 x86 64bit.

I setup quotas on /home as I thought successfully, I tested numerous times with a couple of different users. I login this morning and find my /home near 100% wondering what happened.

I have one user that some how blew through his 3.5 gig quota and uploaded 14 gigs of data. Initially when I went to go look at his quota, it reported being under his quota.

So I ran quotacheck which gave me this message:
[root@www home]# quotacheck /dev/VolGroup00/LogVol01
quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.

I then ran "quotacheck -f /dev/VolGroup00/LogVol01", which then updated the users quota information and now he is over the limit and can't write any more files.

I've read that you should run quotacheck in cron, but just running the command without the -f will make the server spit out that message and will not do a regular quotacheck which concerns me.

The way I tested this, I placed a few files out there that went over the limit and at the time it told me that I was over the limit. Is there anything that I am doing incorrectly or things that I could check to make sure I don't have this problem creep up again where the user blows through his quota?



[root@www home]# ll
-rw------- 1 root root 21504 Aug 25 13:17 aquota.user

[root@www]# more /etc/fstab
/dev/VolGroup00/LogVol01 /home ext3 defaults,usrquota 1 2

[root@www]# quotaon -p /home
user quota on /home (/dev/mapper/VolGroup00-LogVol01) is on

[root@www]# repquota -a
*** Report for user quotas on device /dev/mapper/VolGroup00-LogVol01
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
user1 -- 192420 3670016 3774874 15 0 0
user2 +- 12742484 3670016 3774874 6days 118041 0 0
user3 -- 2786860 3670016 3774874 27411 0 0


[root@www home]# quota -u user2
Disk quotas for user user2 (uid *******):
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/VolGroup00-LogVol01
12742484* 3670016 3774874 118041 0 0
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Quota

I'm new to Unix and I'm trying to determin how much space I have on this system. the box is dedicated to Oracle and I log in as the oracle user and type quota. It retrunes nothing. Then I log on as root and type quota -v oracle.. It returns nothing! Gosh this is actually a solaris 5.7 box. ... (1 Reply)
Discussion started by: jarthda
1 Replies

2. HP-UX

Quota-problem

Hello, I'm having some trouble with the quota's I've set on our HP-UX B.11.00 U 9000/800. Well not really with the quota's because I was able to set them and get them working without a problem but the problem resides somewhere with our AS/U (Advanced Server for HP9000 Release B.04.06.07 and... (5 Replies)
Discussion started by: chrizz
5 Replies

3. UNIX for Advanced & Expert Users

Quota threshold

Hi, I am trying to make a script in which the user is notified once the disk space of the environment increases a particular threshold. I have made a script for it but I am facing an error while executing it. Could any one here guide me further?? Script #!/bin/sh warninglimit=350000... (22 Replies)
Discussion started by: Taranjeet Singh
22 Replies

4. Red Hat

User quota

Hi, I want to apply the user quota, but i am unable to apply the quota to user. Kindly provide the guide line, so that i can sortout the problem. Step 1: Create partion on device #fdisk /dev/sda (because hard disk is scsi) #n (new partition table) i.e /dev/sda8. #p ( to print the partition... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

5. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

6. Red Hat

Setting quota

I would like to set quota for ALL USERS on a particular filesystem and the quota to be set for NEWLY CREATED USERS also. I am not sure, whether my question is clear. I can set quota for all users but my requirement is, I want the same quota to be set automatically for the user which is going... (2 Replies)
Discussion started by: atanubanerji
2 Replies
REPQUOTA(8)						    BSD System Manager's Manual 					       REPQUOTA(8)

NAME
repquota -- summarize quotas for a file system SYNOPSIS
repquota [-g] [-u] [-v] filesystem ... repquota [-g] [-u] [-v] -a DESCRIPTION
Repquota prints a summary of the disk usage and quotas for the specified file systems. Available options: -a Print the quotas of all the filesystems configured with a quota mount option file at its root. -g Print only group quotas (the default is to print both group and user quotas if they exist). -u Print only user quotas (the default is to print both group and user quotas if they exist). -v Print a header line before printing each filesystem quotas. For each user or group, the current number of files and amount of space (in kilobytes) is printed, along with any quotas created with edquota(8). Only members of the operator group or the super-user may use this command. FILES
Each of the following quota files is located at the root of the mounted filesystem. The mount option files are empty files whose existence indicates that quotas are to be enabled for that filesystem. .quota.user data file containing user quotas .quota.group data file containing group quotas .quota.ops.user mount option file used to enable user quotas .quota.ops.group mount option file used to enable group quotas SEE ALSO
quota(1), quotactl(2), edquota(8), quotacheck(8), quotaon(8) DIAGNOSTICS
Various messages about inaccessible files; self-explanatory. HISTORY
The repquota command appeared in 4.2BSD. 4.2 Berkeley Distribution March 28, 2002 4.2 Berkeley Distribution
All times are GMT -4. The time now is 09:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy