Visit Our UNIX and Linux User Community


CentOS 5.3 quota


 
Thread Tools Search this Thread
Operating Systems Linux CentOS 5.3 quota
# 1  
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
# 2  
Old 08-30-2009
Did user2 login as user2 when he/she uploaded the 14G of data? How did they upload the data? ftp? sftp?

Last edited by fpmurphy; 08-30-2009 at 12:21 PM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #321
Difficulty: Medium
DHCP stands for Dynamic Host Configuration Port.
True or False?

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

Featured Tech Videos