cluster:197
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cluster:197 [2020/08/27 14:30] – created hmeij07 | cluster:197 [2020/08/27 14:39] (current) – hmeij07 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | \\ | ||
| + | **[[cluster: | ||
| + | |||
| + | |||
| ===== XFS quotas ===== | ===== XFS quotas ===== | ||
| Line 35: | Line 39: | ||
| And apply 20T quota for example | And apply 20T quota for example | ||
| - | < | + | < |
| xfs_quota -x -c 'limit -p bsoft=21000000m | xfs_quota -x -c 'limit -p bsoft=21000000m | ||
| Line 45: | Line 49: | ||
| To keep the XFS file system healthy unmount it and remount it so the journal does its thing. | To keep the XFS file system healthy unmount it and remount it so the journal does its thing. | ||
| + | |||
| + | Automate quota checks and notification, | ||
| + | |||
| + | < | ||
| + | |||
| + | #!/bin/bash | ||
| + | |||
| + | / | ||
| + | |||
| + | d=`date +%d` | ||
| + | awk ' | ||
| + | |||
| + | foo="" | ||
| + | foo=`grep ' | ||
| + | |||
| + | if [ $foo -gt 0 ]; then | ||
| + | |||
| + | foofoo=`head -5 / | ||
| + | grep ' | ||
| + | |||
| + | fi | ||
| + | |||
| + | </ | ||
| + | \\ | ||
| + | **[[cluster: | ||
cluster/197.1598538611.txt.gz · Last modified: by hmeij07
