]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: post-clean pg_temp during priming if possible
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 24 Jul 2017 05:55:10 +0000 (13:55 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 25 Jul 2017 02:24:43 +0000 (10:24 +0800)
commitea723fbb88c69bd00fefd32a3ee94bf5ce53569c
treec28e9a5d8fe5ffaefe431f67517a2cde08222942
parent27c1d62ae96ecc0c34fc0da55a7e529e0f718234
mon/OSDMonitor: post-clean pg_temp during priming if possible

By vstarting a 3-osds cluster and 'ceph osd purge osd.0', then 'ceph -s':

  services:
    mon: 3 daemons, quorum a,b,c
    mgr: x(active)
    mds: 1/1/1 up {0=a=up:active}, 2 up:standby
    osd: 2 osds: 2 up, 2 in; 14 remapped pgs

And "ceph osd dump":

max_osd 3
osd.1 up   in  weight 1 up_from 9 up_thru 17 down_at 0 last_clean_interval [0,0) 127.0.0.1:6804/269058 127.0.0.1:6805/269058 127.0.0.1:6806/269058 127.0.0.1:6807/269058 exists,up 04336407-097f-4d72-89db-15b6e317370c
osd.2 up   in  weight 1 up_from 12 up_thru 18 down_at 0 last_clean_interval [0,0) 127.0.0.1:6808/269590 127.0.0.1:6809/269590 127.0.0.1:6810/269590 127.0.0.1:6811/269590 exists,up c8d334e4-aa40-4032-84e6-297d9f7a6fdb
pg_temp 1.0 [1,0,2]
pg_temp 1.1 [2,0,1]
pg_temp 1.3 [1,2,0]
pg_temp 1.4 [1,0,2]
pg_temp 1.5 [2,0,1]
pg_temp 1.6 [1,0,2]
pg_temp 1.7 [1,2,0]
pg_temp 2.0 [2,1,0]
pg_temp 2.1 [2,1,0]
pg_temp 2.3 [1,2,0]
pg_temp 2.4 [1,0,2]
pg_temp 2.5 [1,0,2]
pg_temp 2.6 [1,0,2]
pg_temp 2.7 [1,0,2]

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc