device label (normally the first block of the device).
ceph-volume raw activate --device /dev/sdb
- ceph-volume raw activate --osd-id 1 --osd-fsid f0327efd-c28e-40bb-9199-f2e61e54c12a
The device(s) associated with the OSD needs to have been prepared
previously, so that all needed tags and metadata exist.
dest='crush_device_class',
help='Crush device class to assign this OSD to',
)
- parser.add_argument(
- '--osd-id',
- help='Reuse an existing OSD id',
- )
- parser.add_argument(
- '--osd-fsid',
- help='Reuse an existing OSD UUID',
- )
parser.add_argument(
'--cluster-fsid',
help='Specify the cluster fsid, useful when no ceph.conf is available',
logger = logging.getLogger(__name__)
-def prepare_bluestore(block, secrets, osd_id, fsid, tmpfs):
+def prepare_bluestore(block, secrets, tmpfs):
"""
: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
@decorators.needs_root
def prepare(self):
secrets = {'cephx_secret': prepare_utils.create_key()}
- osd_fsid = self.args.osd_fsid or system.generate_uuid()
+ osd_fsid = system.generate_uuid()
crush_device_class = self.args.crush_device_class
if crush_device_class:
secrets['crush_device_class'] = crush_device_class