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
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
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
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
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
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
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
LEARN ABOUT FREEBSD
quota
QUOTA(1) BSD General Commands Manual QUOTA(1)
NAME
quota -- display disk usage and limits
SYNOPSIS
quota [-ghlu] [-f path] [-v | -q | -r]
quota [-hlu] [-f path] [-v | -q | -r] user ...
quota -g [-hl] [-f path] [-v | -q | -r] group ...
DESCRIPTION
The quota utility displays users' disk usage and limits. By default only the user quotas are printed. Disk block usage and limits are shown
in 1024-byte blocks.
The following options are available:
-f path
Only display quota information for the file system that contains the specified path. This can be any file within a mounted file sys-
tem.
-g Print group quotas for the group of which the user is a member.
-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte.
-l Do not report quotas on NFS file systems.
-q Print a more terse message, containing only information on file systems where usage is over quota. The -q flag takes precedence over
the -v flag.
-r Display the raw quota information as it appears in the quota structure. Non-zero time values will also be displayed in ctime(3) for-
mat. This option implies -v and will override the -q flag.
-u Print the user quotas. This is the default unless -g is specified.
-v Display quotas on file systems where no storage is allocated.
Specifying both -g and -u displays both the user quotas and the group quotas (for the user).
Only the super-user may use the -u flag and the optional user argument to view the limits of other users. Non-super-users can use the -g
flag and optional group argument to view only the limits of groups of which they are members.
The quota utility tries to report the quotas of all mounted file systems. If the file system is mounted via NFS, it will attempt to contact
the rpc.rquotad(8) daemon on the NFS server. For UFS file systems, quotas must be turned on in /etc/fstab. If quota exits with a non-zero
status, one or more file systems are over quota or the path specified with the -f option does not exist.
If the -l flag is specified, quota will not check NFS file systems.
FILES
quota.user located at the file system root with user quotas
quota.group located at the file system root with group quotas
/etc/fstab to find file system names and locations
SEE ALSO
quotactl(2), ctime(3), fstab(5), edquota(8), quotacheck(8), quotaon(8), repquota(8), rpc.rquotad(8)
HISTORY
The quota command appeared in 4.2BSD.
BSD
February 3, 2007 BSD