Created
November 13, 2019 16:47
-
-
Save noonedeadpunk/c606cfc33ec7c76750b6c25d0feb8796 to your computer and use it in GitHub Desktop.
Fix ceph Legacy BlueStore stats
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
for osd in `systemctl | grep ceph-osd@ | cut -d "@" -f 2 | cut -d "." -f 1`; do systemctl stop ceph-osd@$osd; sleep 5; ceph-bluestore-tool repair --path /var/lib/ceph/osd/ceph-$osd; sleep 2; systemctl start ceph-osd@$osd; sleep 10; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment