Skip to content

Instantly share code, notes, and snippets.

View benapetr's full-sized avatar
💩
Poopin' around

Petr Bena benapetr

💩
Poopin' around
View GitHub Profile
@benapetr
benapetr / scrub_old.sh
Created August 10, 2020 15:33
ceph scrub old PGs
#!/bin/sh
# This script will instruct ceph to immediately scrub N PGs that are last on list of scrubbed PGs ordered by date
# Default amount of PGs is 5
count=5
if [ $# -gt 0 ]; then
count=$1
fi