LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-19-2020, 03:18 AM   #1
karteekchalla
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Rep: Reputation: Disabled
Quota doesn't report any warning even if the soft limit is crossed. Only reports the warning for hard limit


Disk quota is working only for hard limit. I am not getting any warning message when the size is crossing the soft limit.

any suggestions ??

I have enable user Quota on /export/home shared folder in NFS server and created the user limit. In the NFS client as a user "test" whose home folder is hosted on NFS server under /export/home/test tried checking the limits.

server:~# uname -a
Linux nas-new01 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

server:~# quota -v 57411
Disk quotas for user #57411 (uid 57411):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdb 8 1024 2048 3 0 0



client:~>pwd
/home/test

client:~> id -u
57411

client:~> du -shc
8.0K .
8.0K total

client:~> dd if=/dev/zero of=file1.txt bs=1024K count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.02055 s, 51.0 MB/s

client:~> du -shc
1.1M .
1.1M total

client:~> dd if=/dev/zero of=file2.txt bs=512K count=1 ****<<<< Crossed soft limit. But no warning****
1+0 records in
1+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0.012272 s, 42.7 MB/s

client:~> du -shc
1.6M .
1.6M total

client:~> dd if=/dev/zero of=file3.txt bs=1024K count=2
dd: closing output file 'file3.txt': Disk quota exceeded

Last edited by karteekchalla; 04-19-2020 at 03:28 AM.
 
Old 04-19-2020, 06:16 AM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by karteekchalla View Post
Disk quota is working only for hard limit. I am not getting any warning message when the size is crossing the soft limit.
As far as I remember you only got a message when you've been over the SOFT limit for a week. The first 7 days you're allowed to got over that limit.
But it's been quite a while (more then 6 years) that I've worked with user quota's, so I may remember wrongly.

Last edited by ehartman; 04-19-2020 at 11:42 AM.
 
Old 04-19-2020, 07:04 AM   #3
karteekchalla
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
As far as I remember you only got a message when you've been over the SOFT limit for a week. The first 7 days you're allowed to got over that limit.
But it's when a while (more then 6 years) that I've worked with user quota's.
Hi ehartman,

Thanks for your reply!
But, if at all there isn't any warning immediately after the soft limit has reached, because user doesn't know about this, a situation might occur where the user might cross hard limit suddenly in the middle of an operation of generating/copying files. So, whatever the files are that are copied post hard limit, they will be created but with size of 0. So, there will be inconsistency and all this happens as a shock to the user as he hasn't been warned during the grace period. So, logically, there should be a warning as soon as soft limit is reached.
 
Old 04-28-2020, 12:22 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,364

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
Unless the user is running the 'bad' cmd manually, he won't see the warning anyway.
You could try a cronjob using repquota or quotacheck, run as often as you desire, then parse & email to relevant 'bad' people..
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dovecot, quota-warning script not firing when the quota levels are crossed. tedeasydns Linux - Software 6 08-14-2019 12:10 PM
The soft limit is not very soft tesla75 Linux - General 2 06-22-2015 09:28 AM
Calculate soft limit & hard limit for quotas kennyghh SUSE / openSUSE 4 03-03-2011 12:49 PM
Shell script to delete old files whenever storage limit is crossed phani.junk1 Linux - General 6 10-19-2009 11:14 AM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration