Browse Source

Adding NFS Stale Handle Check and XFS Reflinks

A couple new schnippets for the collection.
master
Nate Bohman 5 years ago
parent
commit
869b17f4fc
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      check_nfs.sh
  2. +1
    -0
      xfs_reflinks.sh

+ 5
- 0
check_nfs.sh View File

#!/usr/bin/env bash

while read _ _ mount _; do
read -t1 < <(stat -t "$mount") || echo "$(date) ${mount} timeout $(lsof -b 2>/dev/null | grep "${mount}")";
done < <(mount -t nfs) >> /var/log/nfs.err

+ 1
- 0
xfs_reflinks.sh View File

mkfs.xfs -m reflink=1 /dev/sdXX

Loading…
Cancel
Save