User Tools

Site Tools


cluster:197

Warning: Undefined array key 3 in /usr/share/dokuwiki/inc/html.php on line 1453

Warning: Undefined array key -1 in /usr/share/dokuwiki/inc/html.php on line 1458

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cluster:197 [2020/08/27 10:30]
hmeij07 created
cluster:197 [2020/08/27 10:39] (current)
hmeij07
Line 1: Line 1:
 +\\
 +**[[cluster:0|Back]]**
 +
 +
 ===== XFS quotas ===== ===== XFS quotas =====
  
Line 35: Line 39:
 And apply 20T quota for example And apply 20T quota for example
  
-<code> +<code>
  
 xfs_quota -x -c 'limit -p bsoft=21000000m    bhard=21470000m    \ xfs_quota -x -c 'limit -p bsoft=21000000m    bhard=21470000m    \
Line 45: Line 49:
  
 To keep the XFS file system healthy unmount it and remount it so the journal does its thing.  Use ''xfs_repair'' for forced consistency checks (-n for no modify mode) To keep the XFS file system healthy unmount it and remount it so the journal does its thing.  Use ''xfs_repair'' for forced consistency checks (-n for no modify mode)
 +
 +Automate quota checks and notification, here is a simple script
 +
 +<code>
 +
 +#!/bin/bash
 +
 +/usr/sbin/repquota -s /home > /root/homedirs/repquota.log
 +
 +d=`date +%d`
 +awk '{print $3","$1}' /root/homedirs/repquota.log | grep G | sed 's/G/ G/g' | sort -rn > /root/homedirs/$d.txt
 +
 +foo=""
 +foo=`grep '+' /root/homedirs/repquota.log | wc -l`;
 +
 +if [ $foo -gt 0  ]; then
 +
 +        foofoo=`head -5 /root/homedirs/repquota.log`
 +        grep '+' /root/homedirs/repquota.log | mail -s "CLUSTER QUOTA REPORT" hmeij
 +
 +fi
 +
 +</code>
 +\\
 +**[[cluster:0|Back]]**
  
cluster/197.1598538611.txt.gz ยท Last modified: 2020/08/27 10:30 by hmeij07