Warning: Undefined array key "DOKU_PREFS" in /usr/share/dokuwiki/inc/common.php on line 2082
cluster:197 [DokuWiki]

User Tools

Site Tools


cluster:197

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

Differences

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

Link to this comparison view

Last revision Both sides next revision
cluster:197 [2020/08/27 10:30]
hmeij07 created
cluster:197 [2020/08/27 10:33]
hmeij07
Line 1: Line 1:
 +\\
 +**[[cluster:0|Back]]**
 +
 +
 ===== XFS quotas ===== ===== XFS quotas =====
  
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.txt ยท Last modified: 2020/08/27 10:39 by hmeij07