LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-19-2012, 03:46 AM   #1
k7g2lm3
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Disabling disk quota warnings in linux


Hi,

I am runing Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64).

I recently activated user quota limits (soft and hard limits).
Users now complain that the console gets filled with warning messages when the soft or the hard limit are reached.
Warning message for soft limit: dm-2: warning, user block quota exceeded.
Warning message for hard limit: dm-2: write failed, user block limit reached.

Is there a way to either disable this messages or redirect them to a file? I had a look at syslog (http://linux.about.com/od/commands/l...l5_syslogc.htm), but I do not know what "facility" is issuing these messages and what their "priority" is.

Thanks for any help! By the way, I am a newbie in linux...
 
Old 01-19-2012, 09:44 PM   #2
newbie to linux
LQ Newbie
 
Registered: Feb 2009
Location: Kitchener, ON Canada
Distribution: Ubuntu 11.10 with KDE 4.7.4, Debian Squeeze on a server
Posts: 28

Rep: Reputation: 0
In the root directory of the partition there should be a file called quota.user, this file should be owned by root.

The messages on the screen can be stopped by editing this file using the edquota command

to turn quotas off use:
Code:
quotaoff
Here is a link to a web page that explains it all with instructions
http://www.yolinux.com/TUTORIALS/Lin...ialQuotas.html
These messages are being recieved because the users have exceeded their quotas, the second message says that the hard limit (maximum allowed) has been reached and the system cannot write to the file.
 
Old 01-20-2012, 12:06 PM   #3
k7g2lm3
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

thanks for your suggestions. I purposely turned disk quota on, and I want to monitor and limit the amount of disk space a user can use, but I would like to get rid of these warning messages in the console.
With edquota, I can change the hard and soft limits, but not whether warning messages are being displayed or not.

So is there a way to have disk quota turned on but without warning messages (or to redirect these messages to a file)?

Thanks a lot.
 
Old 01-21-2012, 11:37 AM   #4
newbie to linux
LQ Newbie
 
Registered: Feb 2009
Location: Kitchener, ON Canada
Distribution: Ubuntu 11.10 with KDE 4.7.4, Debian Squeeze on a server
Posts: 28

Rep: Reputation: 0
I'm not aware of a way to have quotas enabled without displaying warning messages as it would not be good if a user was under the impression that files were being saved when they aren't. If what you want is the amount of disk space each user is using and then manually enforce (i.e. talk to them) the limits the you can set the disk quota limits rediculously high and use repquota to generate a report or you can use the following command
Code:
find / -printf "%u  %s\n" | awk '{user[$1]+=$2}; END{ for( i in user) print i " " user[i]}'
see this thread for details: http://www.linuxquestions.org/questi...system-213853/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM
low disk space email warnings pyroman59 Linux - Software 3 10-19-2005 04:21 PM
Disk Quota mdk3 Linux - Software 2 04-12-2005 06:44 PM
disk over quota blacbastard Solaris / OpenSolaris 1 11-19-2003 09:26 AM
Disk quota jcb_dreamvsat Linux - Security 4 07-13-2003 08:37 PM


All times are GMT -5. The time now is 02:45 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration