public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Gumbau <mgumbau@ICIQ.ES>
To: xfs@oss.sgi.com
Subject: warn users soft quota exceeded
Date: Tue, 8 Sep 2009 15:51:38 +0200	[thread overview]
Message-ID: <1252417898.2452.64.camel@p005> (raw)

Hi,
I try o manage soft xfs_quota warning messages with:

	xfs_quota -x -c 'warn 2 userA' /QUOTEDPARTITION

and any warn message is sent to userA when user exceeded soft quota.
How can I warn user when the user-disk-limit is coming?


------------------------------------------------------------------------------
$ xfs_info /QUOTEDPARTITION

meta-data=/dev/sdb1              isize=256    agcount=16, agsize=7631000
blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=122096000,
imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0

------------------------------------------------------------------------------
$ xfs_quota -x -c 'state'

User quota state on /QUOTEDPARTITION (/dev/sdb1)
  Accounting: ON
  Enforcement: ON
  Inode: #40089640 (9 blocks, 7 extents)
Group quota state on  /QUOTEDPARTITION(/dev/sdb1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #18446744073709551615 (0 blocks, 0 extents)
Project quota state on /QUOTEDPARTITION (/dev/sdb1)
  Accounting: OFF
  Enforcement: OFF
  Inode: #18446744073709551615 (0 blocks, 0 extents)
Blocks grace time: [7 days 00:00:30]
Inodes grace time: [7 days 00:00:30]
Realtime Blocks grace time: [--------]


------------------------------------------------------------------------------
$ xfs_quota -x -c report /QUOTEDPARTITION

User quota on /QUOTEDPARTITION (/dev/sdb1)
                               Blocks
User ID          Used       Soft       Hard    Warn/Grace
---------- --------------------------------------------------
...
userA       2566056    2566056    2600100     02  [6 days]
...







-- 
Martin Gumbau Gonzalez
System Manager
ICIQ - Theoretical chemistry computing groups
mgumbau@iciq.es - http://www.iciq.es
Tel. 977 920 200 - ext 308



_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

                 reply	other threads:[~2009-09-08 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1252417898.2452.64.camel@p005 \
    --to=mgumbau@iciq.es \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox