'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):
+def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid, tmpfs=True):
"""
: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=False)
+ prepare_utils.create_osd_path(osd_id, tmpfs=tmpfs)
# 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):
for((i=0;i<$NUM_OSDS;i++)); do
echo "Creating osd.${i}"
# create osd folder
- $CEPHADM_PATH ceph-volume --shared_ceph_folder /ceph lvm create --bluestore --data "/dev/vg1/lv${i}" --no-systemd
+ $CEPHADM_PATH ceph-volume --shared_ceph_folder /ceph lvm create --bluestore --no-tmpfs --data "/dev/vg1/lv${i}" --no-systemd
echo "Deploying osd.${i}..."
# deploy osd with osd data folder
$CEPHADM_PATH deploy --name "osd.${i}"