-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SYS-1936 add zfs-auto-snap auto killer
Hack until we fix the real issue - kill any hourly snapshot process that has been running for over 15 minutes.
- Loading branch information
1 parent
db36a0d
commit bbcbc7a
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
export PATH=/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin | ||
|
||
for pid in $(pgrep -f zfs-auto-snapshot); do | ||
if pargs $pid | grep auto-snapshot:hourly > /dev/null ; then | ||
echo Killing stale hourly snapshot process: $pid | ||
ptree $pid | ||
kill $pid | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters