Sfoglia il codice sorgente

Adding NFS Stale Handle Check and XFS Reflinks

A couple new schnippets for the collection.
master
Nate Bohman 5 anni fa
parent
commit
869b17f4fc
2 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. +5
    -0
      check_nfs.sh
  2. +1
    -0
      xfs_reflinks.sh

+ 5
- 0
check_nfs.sh Vedi File

@@ -0,0 +1,5 @@
#!/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 Vedi File

@@ -0,0 +1 @@
mkfs.xfs -m reflink=1 /dev/sdXX

Loading…
Annulla
Salva