From: Wido den Hollander Date: Thu, 27 Oct 2016 09:52:47 +0000 (+0200) Subject: mon: Do not allow pools to be deleted by default X-Git-Tag: v11.1.0~353^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6dcdb465814e621f2f5d659ffba1777a54f773eb;p=ceph.git mon: Do not allow pools to be deleted by default This prevents accidental pool removals on cluster which may contain very valuable data. Users can still revert this setting and allow a pool to be removed, but that would be a deliberate action of the admin. It can either be enabled by setting it in the [mon] section of the ceph.conf configuration file or on runtime using ceph tell: Signed-off-by: Wido den Hollander --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 34866893e653..8b846267bb56 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -270,7 +270,7 @@ OPTION(mon_pg_check_down_all_threshold, OPT_FLOAT, .5) // threshold of down osds OPTION(mon_cache_target_full_warn_ratio, OPT_FLOAT, .66) // position between pool cache_target_full and max where we start warning OPTION(mon_osd_full_ratio, OPT_FLOAT, .95) // what % full makes an OSD "full" OPTION(mon_osd_nearfull_ratio, OPT_FLOAT, .85) // what % full makes an OSD near full -OPTION(mon_allow_pool_delete, OPT_BOOL, true) // allow pool deletion +OPTION(mon_allow_pool_delete, OPT_BOOL, false) // allow pool deletion OPTION(mon_globalid_prealloc, OPT_U32, 10000) // how many globalids to prealloc OPTION(mon_osd_report_timeout, OPT_INT, 900) // grace period before declaring unresponsive OSDs dead OPTION(mon_force_standby_active, OPT_BOOL, true) // should mons force standby-replay mds to be active