]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: Do not allow OSD removal using setmaxosd
authorAnand Bhat <anand.bhat@sandisk.com>
Thu, 14 Aug 2014 04:22:56 +0000 (09:52 +0530)
committerSage Weil <sage@redhat.com>
Thu, 14 Aug 2014 19:58:50 +0000 (12:58 -0700)
commita1c3afb60a248eac7eb472bd2dad4aed3b38c871
tree001073228818e4a7af8b23278e5de2135f203f76
parent8393fdea40f75e66409dcc3acbb7a678bd52eb8d
OSDMonitor: Do not allow OSD removal using setmaxosd

Description: Currently setmaxosd command allows removal of OSDs by providing
a number less than current max OSD number. This causes abrupt removal of
OSDs causing data loss as well as kernel panic when kernel RBDs are involved.
Fix is to avoid removal of OSDs if any of the OSDs in the range between
current max OSD number and new max OSD number is part of the cluster.

Fixes: #8865
Signed-off-by: Anand Bhat <anand.bhat@sandisk.com>
src/mon/OSDMonitor.cc