All of lore.kernel.org
 help / color / mirror / Atom feed
* warn users soft quota exceeded
@ 2009-09-08 13:51 Martin Gumbau
  0 siblings, 0 replies; only message in thread
From: Martin Gumbau @ 2009-09-08 13:51 UTC (permalink / raw)
  To: xfs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-08 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-08 13:51 warn users soft quota exceeded Martin Gumbau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.