Created
August 6, 2021 20:02
-
-
Save tschreiner/b66d11f4ccef810f4435c256d403c840 to your computer and use it in GitHub Desktop.
ceph-out.osd
This file contains hidden or 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
| #!/bin/bash | |
| for i in {8,9,10,13,14,15,20} | |
| do | |
| N=$i | |
| echo $N | |
| ceph osd out osd.$N | |
| while ! ceph osd safe-to-destroy osd.$N ; do sleep 1m ; done | |
| ceph osd destroy osd.$N | |
| ceph-volume lvm zap /path/to/device | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment