Skip to content

Commit a689ebe

Browse files
authored
Merge pull request ceph#64893 from zer0def/bug-57939
cephadm: pass wal/db slot count to ceph-volume Reviewed-by: Guillaume Abrioux <[email protected]>
2 parents 9223523 + 2c70de2 commit a689ebe

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)