diff --git a/tools/cephfs/evict-stale.sh b/tools/cephfs/evict-stale.sh index a89d7decb54e1ecf9a866251c7564e2b2e73571c..030cd0390180c0dd5070440800424755af3c8db7 100755 --- a/tools/cephfs/evict-stale.sh +++ b/tools/cephfs/evict-stale.sh @@ -7,7 +7,7 @@ ceph daemon mds.`hostname -s` config set debug_ms 0/1 echo Checking for Stale fh errors... If positive, re-run with --evict option. -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) +STALE=$(grep Stale /var/log/ceph/ceph-mds.*.log | awk '{print $7}' | cut -d: -f2 | sort | uniq | xargs -r -n1 host | awk '{print $5}' | sort) for s in ${STALE} do