'type': int,
'default': 1,
},
- '--no-tmpfs': {
- 'action': 'store_true',
- 'dest': 'no_tmpfs',
- 'help': ('Disable tmpfs osd data directory with bluestore.'
- 'Useful if you want to run lvm preprare from cephadm'),
- },
}
filestore_args = {
)
-def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid, tmpfs=True):
+def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid):
"""
:param block: The name of the logical volume for the bluestore data
:param wal: a regular/plain disk or logical volume, to be used for block.wal
db = prepare_dmcrypt(key, db, 'db', tags)
# create the directory
- prepare_utils.create_osd_path(osd_id, tmpfs=tmpfs)
+ prepare_utils.create_osd_path(osd_id, tmpfs=True)
# symlink the block
prepare_utils.link_block(block, osd_id)
# get the latest monmap
tags['ceph.type'] = 'block'
block_lv.set_tags(tags)
- tmpfs = not self.args.no_tmpfs
-
prepare_bluestore(
block_lv.lv_path,
wal_device,
tags,
self.osd_id,
osd_fsid,
- tmpfs=tmpfs
)
def main(self):