From 4f305eb661553bebc1a86d18c11f596fa6206828 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 26 Mar 2018 14:20:30 -0400 Subject: [PATCH] ceph-volume lvv.activate allo to configure the CLI with --all Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index 63591b075ed..8d1f1c545f0 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -9,6 +9,7 @@ from ceph_volume.util import prepare as prepare_utils from ceph_volume.util import encryption as encryption_utils from ceph_volume.systemd import systemctl from ceph_volume.api import lvm as api +from .listing import direct_report logger = logging.getLogger(__name__) @@ -213,6 +214,11 @@ class Activate(object): The lvs associated with the OSD need to have been prepared previously, so that all needed tags and metadata exist. + When migrating OSDs, or a multiple-osd activation is needed, the + ``--all`` flag can be used instead of the individual ID and FSID: + + ceph-volume lvm activate --all + """) parser = argparse.ArgumentParser( prog='ceph-volume lvm activate', @@ -247,6 +253,11 @@ class Activate(object): action='store_true', help='filestore objectstore', ) + parser.add_argument( + '--all', + action='store_true', + help='Activate all OSDs found in the system', + ) if len(self.argv) == 0: print(sub_command_help) return -- 2.39.5