diff --git a/tools/cephfs/evict-stale.sh b/tools/cephfs/evict-stale.sh index 9aab32903c01edaeafbf15b0a9f7b9a5305e09d7..b5754d2416383804139f1d12d5ad966ae3a14b54 100755 --- a/tools/cephfs/evict-stale.sh +++ b/tools/cephfs/evict-stale.sh @@ -3,11 +3,11 @@ echo Enabling debug_ms=1 for 10s ceph daemon mds.`hostname -s` config set debug_ms 1 sleep 10 -ceph daemon mds.`hostname -s` config set debug_ms 0/1 +ceph daemon mds.`hostname -s` config unset debug_ms echo Checking for Stale fh errors... If positive, re-run with --evict option. -STALE=$(grep Stale /var/log/ceph/ceph-mds.*.log | awk '{print $8}' | cut -d: -f1 | sort | uniq | xargs -r -n1 host | awk '{print $5}' | sort) +STALE=$(grep Stale /var/log/ceph/ceph-mds.*.log | awk '{print $7}' | cut -d: -f1 | sort | uniq | xargs -r -n1 host | awk '{print $5}' | sort) for s in ${STALE} do