Resharding the RocksDB database
Use the BlueStore administration tool to reshard the RocksDB database. Resharding splits the BlueStore block.db into several column families without redeploying the OSDs, which can be beneficial for write performance.
Before you begin
- A running IBM Storage Ceph cluster.
- The object store configured as BlueStore.
- OSD nodes deployed on the hosts.
- Root level access to the all the hosts.
- The
ceph-commonandcephadmpackages installed on all the hosts.
About this task
Reshard the RocksDB database to split the BlueStore block.db into several columns. Column families have the same features as the whole database, but allows users to operate on smaller data sets and apply different options. It leverages the different expected lifetime of keys stored. The keys are moved during the transformation without creating new keys or deleting existing keys.
Reshard the OSD in one of the following ways:
For more information, see Initial installation.Use the rocksdb-resharding.yml playbook
Reshard the database by using the rocksdb-resharding.yml playbook.
Procedure
What to do next
- Stop the OSD that is resharded.
[ceph: root@host01 /]# ceph orch daemon stop osd.7 - Enter the OSD container.
[root@host03 ~]# cephadm shell --name osd.7 - Check for resharding.
[ceph: root@host03 /]# ceph-bluestore-tool --path /var/lib/ceph/osd/ceph-9/ show-sharding m(3) p(3,0-12) O(3,0-13) L P - Start the OSD.
[ceph: root@host01 /]# ceph orch daemon start osd.7
Manually resharding the OSDs
Manually reshard the OSDs with the cephadm shell.