Skip to content

Commit 2c70de2

Browse files
Ksawery Dziekońskizer0def
authored andcommitted
cephadm: pass wal/db slot count to ceph-volume
Fixes: https://tracker.ceph.com/issues/57939 Signed-off-by: Ksawery Dziekoński <68ekkmm8p9rsut4zz9n1krjzr83vds8hcz8s1jg00a02ogefahbicuidys3arj@definedaszero.xyz>
1 parent 7848045 commit 2c70de2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/python-common/ceph/deployment/translate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,15 @@ def run(self):
121121
if self.spec.block_wal_size:
122122
cmd += " --block-wal-size {}".format(self.spec.block_wal_size)
123123

124+
if isinstance(self.spec.wal_slots, int) and self.spec.wal_slots > 1:
125+
cmd += " --block-wal-slots {}".format(self.spec.wal_slots)
126+
124127
if self.spec.block_db_size:
125128
cmd += " --block-db-size {}".format(self.spec.block_db_size)
126129

130+
if isinstance(self.spec.db_slots, int) and self.spec.db_slots > 1:
131+
cmd += " --block-db-slots {}".format(self.spec.db_slots)
132+
127133
if d != self.NO_CRUSH:
128134
cmd += " --crush-device-class {}".format(d)
129135

0 commit comments

Comments
 (0)