Skip to content

Instantly share code, notes, and snippets.

@tschreiner
Created August 6, 2021 20:02
Show Gist options
  • Select an option

  • Save tschreiner/b66d11f4ccef810f4435c256d403c840 to your computer and use it in GitHub Desktop.

Select an option

Save tschreiner/b66d11f4ccef810f4435c256d403c840 to your computer and use it in GitHub Desktop.
ceph-out.osd
#!/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