while OSDs units should only be runtime enable and disappear on reboots,
this serves as an additional safeguard to ensure no leftover units can
exist.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
print "destroy OSD $osdsection\n";
- eval { PVE::CephTools::ceph_service_cmd('stop', $osdsection); };
+ eval {
+ PVE::CephTools::ceph_service_cmd('stop', $osdsection);
+ PVE::CephTools::ceph_service_cmd('disable', $osdsection);
+ };
warn $@ if $@;
print "Remove $osdsection from the CRUSH map\n";