]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: require force argument to split a cache pool 1681/head
authorSage Weil <sage@inktank.com>
Tue, 15 Apr 2014 20:57:21 +0000 (13:57 -0700)
committerSage Weil <sage@inktank.com>
Tue, 15 Apr 2014 20:57:21 +0000 (13:57 -0700)
commit015df934afceec63d1d928c006d2be1639f0900c
treea2f23c3824d9a6248e82b49943742a45108ddce4
parent4388d876ca8faa0893702710e925cd03b4d0cc9f
mon/OSDMonitor: require force argument to split a cache pool

There are several perils when splitting a cache pool:

 - split invalidstes pg stats, which disables the agent
 - a scrub must be manually triggered post-split to rebuild stats
 - the pool may fill the OSDs during that period.
 - or, the pool may end up beyond the 'full' mark and once scrub does
   complete and the agent activate we may block IO for a long time while
   we catch up with flush/evict

Make it a bit harder for users to shoot themselves in the foot.

Fixes: #8043
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc