]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume lvm.batch add --osds-per-device flag, defaulting to 1
authorAlfredo Deza <adeza@redhat.com>
Mon, 10 Sep 2018 20:12:59 +0000 (16:12 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 13 Sep 2018 15:29:29 +0000 (11:29 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit fe7c5e0129172a4b2a216e7c49e67d8ead570b39)

src/ceph-volume/ceph_volume/devices/lvm/batch.py

index c6f8a9046470ac2207bfa29d4a63795b9eb7a294..cd472ff3f96abbe4e61795c88285e06130520ffe 100644 (file)
@@ -206,6 +206,12 @@ class Batch(object):
             action='store_true',
             help='Skip creating and enabling systemd units and starting OSD services',
         )
+        parser.add_argument(
+            '--osds-per-device',
+            type=int,
+            default=1,
+            help='Provision more than 1 (the default) OSD per device',
+        )
         args = parser.parse_args(self.argv)
 
         if not args.devices: