Feature #21835
openChanging OSD backend from leveldb to rocksdb needs a test.
0%
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
- cd /var/lib/ceph/osd/ceph-5
- rm -rf omap.orig
- systemctl start ceph-osd@5
- ceph osd unset noout
No data to display