mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 20:57:41 +00:00
ceph: disable OSD unit in destroyosd
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>
This commit is contained in:
parent
f4fe197db4
commit
8ccae777f0
@ -379,7 +379,10 @@ __PACKAGE__->register_method ({
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user