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@xxxxxxx - http://www.iciq.es
Tel. 977 920 200 - ext 308
|