]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-objectstore-tool: add a way to split filestore directories offline 11253/head
authorJosh Durgin <jdurgin@redhat.com>
Fri, 5 Aug 2016 18:45:00 +0000 (11:45 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 29 Sep 2016 00:57:21 +0000 (17:57 -0700)
commit99bb9f603f2123e81470a819c1cd64df13a22425
tree3532cbcada234256d4fbd3423bb0db70ad097eb0
parentda4f735d7937aa623dfef41f921ad9381b1a07d7
ceph-objectstore-tool: add a way to split filestore directories offline

Use the usual split code, and split each dir that meets the
usual split criteria.

This can be run with lower than usual split settings, to avoid costly
online splits. To make sure the directories are not merged again, use
a load merge threshold (e.g. filestore merge threshold = 1), and
adjust the split multiplier accordingly.

Fixes: http://tracker.ceph.com/issues/17220
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit e7b0428e0e8d8f5459311dc698d94a3ac4f04684)

Conflicts:
src/tools/ceph_objectstore_tool.cc
* remove c++11 auto usage
* change HashIndex::list_subdirs() call to use set instead of vector
* adjust to hammer signature of coll_t::is_pg()
src/os/CollectionIndex.h
src/os/FileStore.cc
src/os/FileStore.h
src/os/HashIndex.cc
src/os/HashIndex.h
src/tools/ceph_objectstore_tool.cc