Project

General

Profile

Actions

Feature #21366

closed

tools/ceph-objectstore-tool: split filestore directories offline to target hash level

Added by Zhi Zhang over 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
luminous
Reviewed:
Affected Versions:
Component(RADOS):
objectstore-tool
Pull request ID:

Description

Currently ceph-objectstore-tool can only split dirs that already meet the usual object number criteria. It won't reduce the cost of online split for those dirs that would meet the criteria online.

Following PR uses 'arg1' option for apply-layout-settings to specify the target hash level wants to split to. Then dirs will be split offline no matters how many objects they have. This also helps those pools that forgot to do pre-splitting at their creation time.

For example,

sudo ceph-objectstore-tool --data-path /data/lib/ceph/osd/ceph-0/ --op apply-layout-settings --pool "cephfs_data" --arg1 5

This will split all "cephfs_data" pool's PGs on OSD.0 offline to the 5th hash level no matter how many objects each dir has right now, to avoid potential costly online split.


Related issues 2 (0 open2 closed)

Related to Ceph - Bug #35846: ceph-objectstore-tool apply-layout-settings optional target level can't be specified.ResolvedDavid Zafman09/07/2018

Actions
Copied to RADOS - Backport #24845: luminous: tools/ceph-objectstore-tool: split filestore directories offline to target hash levelResolvedDavid ZafmanActions
Actions #2

Updated by Josh Durgin almost 6 years ago

  • Project changed from Ceph to RADOS
  • Category changed from OSD to Administration/Usability
  • Status changed from New to Pending Backport
  • Backport set to luminous
  • Component(RADOS) objectstore-tool added
Actions #3

Updated by Nathan Cutler almost 6 years ago

  • Copied to Backport #24845: luminous: tools/ceph-objectstore-tool: split filestore directories offline to target hash level added
Actions #4

Updated by David Zafman over 5 years ago

  • Status changed from Pending Backport to Resolved
Actions #5

Updated by David Zafman over 5 years ago

  • Related to Bug #35846: ceph-objectstore-tool apply-layout-settings optional target level can't be specified. added
Actions

Also available in: Atom PDF