raise RuntimeError('could not find %s with uuid %s' % (device_type, device_uuid))
-def activate_bluestore(lvs, no_systemd=False, tmpfs=True):
+def activate_bluestore(lvs, no_systemd=False, no_tmpfs=False):
# find the osd
osd_lv = lvs.get(lv_tags={'ceph.type': 'block'})
if not osd_lv:
osd_path = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id)
if not system.path_is_mounted(osd_path):
# mkdir -p and mount as tmpfs
- prepare_utils.create_osd_path(osd_id, tmpfs=tmpfs)
+ prepare_utils.create_osd_path(osd_id, tmpfs=(not no_tmpfs))
# XXX This needs to be removed once ceph-bluestore-tool can deal with
# symlinks that exist in the osd dir
for link_name in ['block', 'block.db', 'block.wal']:
logger.info('unable to find a journal associated with the OSD, assuming bluestore')
return activate_bluestore(lvs,
no_systemd=args.no_systemd,
- tmpfs=(not args.no_tmpfs))
+ no_tmpfs=args.no_tmpfs)
if args.bluestore:
activate_bluestore(lvs,
no_systemd=args.no_systemd,
- tmpfs=(not args.no_tmpfs))
+ no_tmpfs=args.no_tmpfs)
elif args.filestore:
activate_filestore(lvs, no_systemd=args.no_systemd)