Skip to contentSkip to conversation

warn users soft quota exceeded

DISCUSSION Martin Gumbau 1 participant 1 message Sep 8, 2009

lore
Share & tools
lore
#0 lore 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]
...

Signature · 12 lines
Martin Gumbau Gonzalez
System Manager
ICIQ - Theoretical chemistry computing groups
[email protected] - http://www.iciq.es
Tel. 977 920 200 - ext 308



_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs