Project

General

Profile

Actions

Feature #21835

open

Changing OSD backend from leveldb to rocksdb needs a test.

Added by Anonymous over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
QA Suite
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:

Description

A test that updates a running osd to use rocksdb needs to be implemented. The test should essentially:

set noout

Update the ceph.conf file to specify the following config option for the filestore backend under the [osd.id] sections on the conf file for the SSD OSD’s. The following line should be added to those osd entries:

filestore_rocksdb_options = "max_background_compactions=8;compaction_readahead_size=2097152"

(assumuing osd 5 in this example)

systemctl stop ceph-osd@5

mv /var/lib/ceph/osd/ceph-5/current/omap /var/lib/ceph/osd/ceph-5/omap.orig

ulimit -n 65535

Install ceph-test package for ceph-kvstore-tool

Update the OSD superblock to reflect the new rocksdb:
sed -i s/leveldb/rocksdb/g /var/lib/ceph/osd/ceph-5/superblock

  1. cd /var/lib/ceph/osd/ceph-5
  2. rm -rf omap.orig
  1. systemctl start ceph-osd@5
  1. ceph osd unset noout

No data to display

Actions

Also available in: Atom PDF