]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: modify the level of a log about OSD's condition in OSDMonitor.cc 6928/head
authorYongqiang He <he.yongqiang@h3c.com>
Thu, 17 Dec 2015 18:57:07 +0000 (13:57 -0500)
committerYongqiang He <he.yongqiang@h3c.com>
Fri, 18 Dec 2015 09:15:04 +0000 (04:15 -0500)
commitd4cf79b803c9f87961012938acafd2e2f29a56fc
tree3267c4a57b9f98393a7ee41ab5ba225b4d1da4b0
parentf1c02a38dc7453dec6bec031f41e20626e732d4b
mon: modify the level of a log about OSD's condition in OSDMonitor.cc

    In actual use, we replace old hard disk by new or do performance testing regularly and need to down OSDs manually, but there are some OSDs can not be marked down, and there is no obvious information.
The log { dout(5) << "can_mark_down current up_ratio " << up_ratio << " < min "<< g_conf->mon_osd_min_up_ratio<< ", will not mark osd." << i << "down" << dendl ; }" can explain  why it happened.
   In addition, we can change the value of mon_osd_min_up_ratio more reasonable in our operating environment.so it is necessary to adjust the log's level lower.

For example:
   There are 6 OSDs , wen have marked down 5 of them and the mon_osd_min_up_ratio = 0.3.
   In this situation, when we mark the last OSD to down, it will show "ceph-osd stop/waiting", but in actually, the OSD is still up.

Signed-off-by: Yongqiang He <he.yongqiang@h3c.com>
src/mon/OSDMonitor.cc