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.
:+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.
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: