SUSE / DeepSea

A collection of Salt files for deploying, managing and automating Ceph.
GNU General Public License v3.0
161 stars 75 forks source link

osd: add method to zap simple osds #1865

Closed jan--f closed 3 years ago

jan--f commented 3 years ago

This parses the c-v simple scan result in /etc/ceph/osd to retrieve the devices the osd.$i uses and then passes them to c-v lvm zap. The zap subcommand will zap devices no problem, the trick is really just to figure out which devices to zap.

Signed-off-by: Jan Fajerski jfajerski@suse.com

Fixes bsc#1178657

Description:


Checklist:

jan--f commented 3 years ago

:+1: I also confirmed that existing running OSDs won't be accidentally zapped by the new script (in case the files in /etc/ceph/osd are outdated or wrong) as an unmount failes with Device busy.