-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli-reference.yaml
2066 lines (2065 loc) · 70.8 KB
/
cli-reference.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# $schema: ./cli-reference-schema.yaml
# yaml-language-server: $schema=./cli-reference-schema.yaml
commands:
- name: "storage-node"
help: "Storage node commands"
aliases:
- sn
weight: 100
subcommands:
- name: deploy
help: "Prepares a host to be used as a storage node"
description: >
Runs locally on to-be storage node hosts. Installs storage node dependencies and prepares it to be used as a
storage node. Only required, in standalone deployment outside of Kubernetes.
arguments:
- name: "--ifname"
help: "Management interface name, e.g. eth0"
description: >
The network interface to be used for communication between the control plane
and the storage node.
dest: ifname
type: str
- name: deploy-cleaner
help: "Cleans a previous simplyblock deploy (local run)"
description: >
Run locally on storage nodes and control plane hosts. Remove a previous deployment to support a fresh
scratch-deployment of cluster software.
- name: add-node
help: "Adds a storage node by its IP address"
arguments:
- name: "cluster_id"
help: "Cluster id"
dest: cluster_id
type: str
- name: "node_ip"
help: "IP of storage node to add"
dest: node_ip
type: str
- name: "ifname"
help: "Management interface name"
dest: ifname
type: str
- name: "--journal-partition"
help: "1: auto-create small partitions for journal on nvme devices. 0: use a separate (the smallest) nvme device of the node for journal. The journal needs a maximum of 3 percent of total available raw disk space."
dest: partitions
type: int
default: 1
- name: "--jm-percent"
help: "Number in percent to use for JM from each device"
dest: jm_percent
type: str
default: 3
private: true
- name: "--data-nics"
help: "Storage network interface name(s). Can be more than one."
description: >
Storage network interface name(s). Can be more than one. Comma-separated list: e.g. eth0,eth1
dest: data_nics
type: str
nargs: "+"
- name: "--max-lvol"
help: "Max logical volume per storage node"
dest: max_lvol
type: int
- name: "--max-size"
help: "Maximum amount of GB to be utilized on this storage node"
description: >
Maximum amount of GB to be utilized on this storage node. This cannot be larger than the total effective
cluster capacity. A safe value is `1/n * 2.0` of effective cluster capacity. Meaning, if you have three
storage nodes, each with 100 TiB of raw capacity and a cluster with erasure coding scheme 1+1
(two replicas), the effective cluster capacity is _100 TiB * 3 / 2 = 150 TiB_. Setting this parameter to
_150 TiB / 3 * 2 = 100TiB_ would be a safe choice.
dest: max_prov
type: str
- name: "--number-of-distribs"
help: "The number of distirbs to be created on the node"
dest: number_of_distribs
type: int
default: 4
private: true
- name: "--number-of-devices"
help: "Number of devices per storage node if it's not supported EC2 instance"
dest: number_of_devices
type: str
private: true
- name: "--size-of-device"
help: "Size of device per storage node"
dest: partition_size
type: str
private: true
- name: "--vcpu-count"
help: >
Number of vCPUs used for SPDK. Remaining CPUs will be used for Linux system, TCP/IP processing, and
other workloads. The default on non-Kubernetes hosts is 80%.
dest: vcpu_count
type: int
- name: "--cpu-mask"
help: >
SPDK app CPU mask, default is all cores found
dest: spdk_cpu_mask
type: str
private: true
- name: "--spdk-image"
help: "SPDK image uri"
dest: spdk_image
type: str
private: true
- name: "--spdk-debug"
help: "Enable spdk debug logs"
dest: spdk_debug
type: bool
action: store_true
private: true
- name: "--iobuf_small_bufsize"
help: "bdev_set_options param"
dest: small_bufsize
type: str
default: 0
private: true
- name: "--iobuf_large_bufsize"
help: "bdev_set_options param"
dest: large_bufsize
type: str
default: 0
private: true
- name: "--enable-test-device"
help: "Enable creation of test device"
dest: enable_test_device
type: bool
action: store_true
private: true
- name: "--disable-ha-jm"
help: "Disable HA JM for distrib creation"
dest: enable_ha_jm
type: bool
default: true
action: store_false
private: true
- name: "--ha-jm-count"
help: "HA JM count"
dest: ha_jm_count
type: str
default: 3
private: true
- name: "--is-secondary-node"
help: >
Adds as secondary node. A secondary node does not have any disks attached. It is only used for I/O
processing in case a primary goes down.
dest: is_secondary_node
type: bool
default: false
action: store_true
- name: "--namespace"
help: "Kubernetes namespace to deploy on"
dest: namespace
type: str
- name: "--id-device-by-nqn"
help: "Use device nqn to identify it instead of serial number"
dest: id_device_by_nqn
type: bool
default: false
action: store_true
private: true
- name: delete
help: "Deletes a storage node object from the state database."
usage: >
Deletes a storage node object from the state database. It must only be used on clusters without any logical
volumes.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: remove
help: "Removes a storage node from the cluster"
description: >
The storage node cannot be used or added any more. Any data residing on this storage node will be migrated to
the remaining storage nodes. The user must ensure that there is sufficient free space in remaining cluster to
allow for successful node removal.
!!! danger
If there isn't enough storage available, the cluster may run full and switch to read-only mode.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--force-remove"
help: "Force remove all logical volumes and snapshots"
dest: force_remove
type: bool
action: store_true
- name: list
help: "Lists all storage nodes"
arguments:
- name: "--cluster-id"
help: "Cluster id"
dest: cluster_id
type: str
- name: "--json"
help: "Print outputs in json format"
dest: json
type: bool
action: store_true
- name: get
help: "Gets a storage node's information"
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: restart
help: "Restarts a storage node"
description: >
A storage node is required to be _offline_ to be restarted. All functions and device drivers will be reset
as a result of the restart. New physical devices can only be added with a storage node restart. During
restart, the node will not accept any I/O.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--max-lvol"
help: "Max logical volume per storage node"
dest: max_lvol
type: int
default: 0
- name: "--max-snap"
help: "Max snapshot per storage node"
dest: max_snap
type: str
default: 0
private: true
- name: "--max-size"
help: "Maximum amount of GB to be utilized on this storage node"
description: >
Maximum amount of GB to be utilized on this storage node. This cannot be larger than the total effective
cluster capacity. A safe value is `1/n * 2.0` of effective cluster capacity. Meaning, if you have three
storage nodes, each with 100 TiB of raw capacity and a cluster with erasure coding scheme 1+1
(two replicas), the effective cluster capacity is _100 TiB * 3 / 2 = 150 TiB_. Setting this parameter to
_150 TiB / 3 * 2 = 100TiB_ would be a safe choice.
dest: max_prov
type: str
default: ""
private: true
- name: "--node-ip"
help: "Restart Node on new node"
description: >
Allows to restart an existing storage node on new host or hardware. Devices attached to storage nodes
have to be attached to new hosts. Otherwise, they have to be marked as failed and removed from cluster.
Triggers a pro-active migration of data from those devices onto other storage nodes.
dest: node_ip
type: str
- name: "--number-of-devices"
help: "Number of devices per storage node if it's not supported EC2 instance"
dest: number_of_devices
type: str
default: 0
private: true
- name: "--spdk-image"
help: "SPDK image uri"
dest: spdk_image
type: str
private: true
- name: "--spdk-debug"
help: "Enable spdk debug logs"
dest: spdk_debug
type: bool
action: store_true
private: true
- name: "--iobuf_small_bufsize"
help: "bdev_set_options param"
dest: small_bufsize
type: str
default: 0
private: true
- name: "--iobuf_large_bufsize"
help: "bdev_set_options param"
dest: large_bufsize
type: str
default: 0
private: true
- name: "--force"
help: "Force restart"
dest: force
type: bool
action: store_true
- name: shutdown
help: "Initiates a storage node shutdown"
usage: Once the command is issued, the node will stop accepting IO,but IO, which was previously received, will still be processed. In a high-availability setup, this will not impact operations.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--force"
help: "Force node shutdown"
dest: force
type: bool
action: store_true
- name: suspend
help: "Suspends a storage node"
usage: The node will stop accepting new IO, but will finish processing any IO, which has been received already.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--force"
help: "Force node suspend"
dest: force
type: bool
action: store_true
- name: resume
help: "Resumes a storage node"
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: get-io-stats
help: "Gets storage node IO statistics"
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--history"
help: "list history records -one for every 15 minutes- for XX days and YY hours -up to 10 days in total-, format: XXdYYh"
dest: history
type: str
- name: "--records"
help: "Number of records, default: 20"
dest: records
type: str
default: 20
- name: get-capacity
help: "Gets a storage node's capacity statistics"
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--history"
help: "list history records -one for every 15 minutes- for XX days and YY hours -up to 10 days in total-, format: XXdYYh"
dest: history
type: str
- name: list-devices
help: "Lists storage devices"
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "-s"
help: "Sort the outputs"
dest: -s
type: str
choices:
- node-seq
- serial
- dev-seq
nargs: "1"
private: true
- name: "--json"
help: "Print outputs in json format"
dest: json
type: bool
action: store_true
- name: device-testing-mode
help: "Sets a device to testing mode"
private: true
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: "mode"
help: "Testing mode"
dest: mode
type: str
choices:
- full_pass_through
- io_error_on_write
- io_error_on_all
- hotplug_removal
- discard_io_all
- io_error_on_unmap
- io_error_on_read
default: full_pass_through
- name: get-device
help: "Gets storage device by its id"
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: reset-device
help: "Resets a storage device"
usage: >
Hardware device reset. Resetting the device can return the device from an unavailable into online state, if
successful.
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: restart-device
help: "Restarts a storage device"
usage: >
A previously logically or physically removed or unavailable device, which has been re-inserted, may be
returned into online state. If the device is not physically present, accessible or healthy, it will flip back
into unavailable state again.
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: add-device
help: "Adds a new storage device"
usage: >
Adds a device, including a previously detected device (currently in "new" state) into cluster and launches
an auto-rebalancing background process in which some cluster capacity is re-distributed to this newly added
device.
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: remove-device
help: "Logically removes a storage device"
usage: >
Logical removes a storage device. The device will become unavailable, irrespectively if it was physically
removed from the server. This function can be used if auto-detection of removal did not work or if the device
must be maintained while remaining inserted into the server.
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: "--force"
help: "Force device remove"
dest: force
type: bool
action: store_true
- name: set-failed-device
help: "Sets storage device to failed state"
usage: >
Sets a storage device to state failed. This command can be used, if an administrator believes that the device
must be replaced. Attention: a failed state is final, meaning, all data on the device will be automatically
recovered to other devices in the cluster.
arguments:
- name: "device_id"
help: "Device ID"
dest: device_id
type: str
- name: get-capacity-device
help: "Gets a device's capacity"
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: "--history"
help: "list history records -one for every 15 minutes- for XX days and YY hours -up to 10 days in total-, format: XXdYYh"
dest: history
type: str
- name: get-io-stats-device
help: "Gets a device's IO statistics"
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: "--history"
help: "list history records -one for every 15 minutes- for XX days and YY hours -up to 10 days in total-, format: XXdYYh"
dest: history
type: str
- name: "--records"
help: "Number of records, default: 20"
dest: records
type: str
default: 20
- name: port-list
help: "Gets the data interfaces list of a storage node"
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: port-io-stats
help: "Gets the data interfaces' IO stats"
arguments:
- name: "port_id"
help: "Data port id"
dest: port_id
type: str
- name: "--history"
help: "list history records -one for every 15 minutes- for XX days and YY hours -up to 10 days in total, format: XXdYYh"
dest: history
type: str
- name: check
help: "Checks the health status of a storage node"
description: >
Verifies if all of the NVMe-oF connections to and from the storage node, including those to and from other
storage devices in the cluster and the meta-data journal, are available and healthy and all internal objects
of the node, such as data placement and erasure coding services, are in a healthy state.
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: check-device
help: "Checks the health status of a device"
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: info
help: "Gets the node's information"
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: info-spdk
help: "Gets the SPDK memory information"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: remove-jm-device
help: "Removes a journaling device"
private: true
arguments:
- name: "jm_device_id"
help: "Journaling device id"
dest: jm_device_id
type: str
- name: "--force"
help: "Force device remove"
dest: force
type: bool
action: store_true
- name: restart-jm-device
help: "Restarts a journaling device"
arguments:
- name: "jm_device_id"
help: "Journaling device id"
dest: jm_device_id
type: str
- name: "--force"
help: "Force device remove"
dest: force
type: bool
action: store_true
- name: send-cluster-map
help: "Sends a new cluster map"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: get-cluster-map
help: "Get the current cluster map"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: make-primary
help: "In case of HA SNode, makes the current node as primary"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: dump-lvstore
help: "Dump lvstore data"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
completer: _completer_get_sn_list
- name: "cluster"
help: "Cluster commands"
weight: 200
subcommands:
- name: deploy
help: "Deploys a storage nodes"
arguments:
- name: "--storage-nodes"
help: "comma separated ip addresses"
dest: storage_nodes
type: str
- name: "--test"
help: "Test Cluster"
dest: test
type: bool
action: store_true
- name: "--secondary-nodes"
help: "comma separated ip addresses"
dest: secondary_nodes
type: str
- name: "--ha-type"
help: "Logical volume HA type (single, ha), default is cluster HA type"
dest: ha_type
type: str
choices:
- single
- ha
default: single
- name: "--ha-jm-count"
help: "HA JM count"
dest: ha_jm_count
type: str
default: 3
private: true
- name: "--data-chunks-per-stripe"
help: "Erasure coding schema parameter k (distributed raid), default: 1"
dest: distr_ndcs
type: int
default: 1
- name: "--parity-chunks-per-stripe"
help: "Erasure coding schema parameter n (distributed raid), default: 1"
dest: distr_npcs
type: int
default: 1
- name: "--enable-qos"
help: "Enable qos bdev for storage nodes"
dest: enable_qos
type: bool
action: store_true
private: true
- name: "--ifname"
help: "Management interface name, e.g. eth0"
dest: ifname
type: str
- name: "--blk_size"
help: "The block size in bytes"
dest: blk_size
type: str
choices:
- 512
- 4096
default: 512
private: true
- name: "--page_size"
help: "The size of a data page in bytes"
dest: page_size
type: str
default: 2097152
private: true
- name: "--CLI_PASS"
help: "Password for CLI SSH connection"
dest: CLI_PASS
type: str
private: true
- name: "--cap-warn"
help: "Capacity warning level in percent, default: 89"
dest: cap_warn
type: int
default: 89
- name: "--cap-crit"
help: "Capacity critical level in percent, default: 99"
dest: cap_crit
type: int
default: 99
- name: "--prov-cap-warn"
help: "Capacity warning level in percent, default: 250"
dest: prov_cap_warn
type: int
default: 250
- name: "--prov-cap-crit"
help: "Capacity critical level in percent, default: 500"
dest: prov_cap_crit
type: int
default: 500
- name: "--log-del-interval"
help: "Logging retention period, default: 3d"
dest: log_del_interval
type: str
default: 3d
- name: "--metrics-retention-period"
help: "Retention period for I/O statistics (Prometheus), default: 7d"
dest: metrics_retention_period
type: str
default: 7d
- name: "--contact-point"
help: "Email or slack webhook url to be used for alerting"
dest: contact_point
type: str
default: ""
- name: "--grafana-endpoint"
help: "Endpoint url for Grafana"
dest: grafana_endpoint
type: str
default: ""
private: true
- name: "--distr-bs"
help: "(Dev) distrb bdev block size, default: 4096"
dest: distr_bs
type: str
default: 4096
private: true
- name: "--chunk-size-in-bytes"
help: "(Dev) distrb bdev chunk block size, default: 4096"
dest: distr_chunk_bs
type: str
default: 4096
- name: "--enable-node-affinity"
help: "Enable node affinity for storage nodes"
dest: enable_node_affinity
type: bool
action: store_true
- name: "--qpair-count"
help: "NVMe/TCP transport qpair count per logical volume"
usage: >
Increase for clusters with few but very large logical volumes or decrease for clusters with a large number
of very small logical volumes.
dest: qpair_count
type: int
value_range: 1..128
default: 3
- name: "--max-queue-size"
help: "The max size the queue will grow"
dest: max_queue_size
type: str
default: 128
private: true
- name: "--inflight-io-threshold"
help: "The number of inflight IOs allowed before the IO queuing starts"
dest: inflight_io_threshold
type: str
default: 4
private: true
- name: "--strict-node-anti-affinity"
help: >
Enable strict node anti affinity for storage nodes. Never more than one chunk is placed on a node.
This requires a minimum of _data-chunks-in-stripe + parity-chunks-in-stripe + 1_ nodes in the cluster."
dest: strict_node_anti_affinity
type: bool
action: store_true
- name: "--journal-partition"
help: >
1: auto-partition nvme devices for journal. 0: use a separate nvme device for journal.
The smallest NVMe device available on the host will be chosen as a journal. It should provide about 3% of
the entire node’s NVMe capacity. If set to false, partitions on other devices will be auto-created to
store the journal.
dest: partitions
type: str
default: true
- name: "--jm-percent"
help: "Number in percent to use for JM from each device"
dest: jm_percent
type: str
default: 3
private: true
- name: "--data-nics"
help: "Storage network interface name(s). Can be more than one."
description: >
Storage network interface name(s). Can be more than one. Comma-separated list: e.g. eth0,eth1
dest: data_nics
type: str
nargs: "+"
- name: "--max-lvol"
help: "Max logical volume per storage node"
dest: max_lvol
type: int
- name: "--max-snap"
help: "Max snapshot per storage node"
dest: max_snap
type: str
default: 500
private: true
- name: "--max-size"
help: "Maximum amount of GB to be provisioned via all storage nodes"
dest: max_prov
type: str
default: ""
- name: "--number-of-distribs"
help: "The number of distirbs to be created on the node"
dest: number_of_distribs
type: str
default: 4
private: true
- name: "--number-of-devices"
help: "Number of devices per storage node if it's not supported EC2 instance"
dest: number_of_devices
type: str
private: true
- name: "--size-of-device"
help: "Size of device per storage node"
dest: partition_size
type: str
private: true
- name: "--vcpu-count"
help: >
Number of vCPUs used for SPDK. Remaining CPUs will be used for Linux system, TCP/IP processing, and
other workloads. The default on non-Kubernetes hosts is 80%.
dest: vcpu_count
type: int
- name: "--cpu-mask"
help: "SPDK app CPU mask, default is all cores found"
dest: spdk_cpu_mask
type: str
private: true
- name: "--spdk-image"
help: "SPDK image uri"
dest: spdk_image
type: str
private: true
- name: "--spdk-debug"
help: "Enable spdk debug logs"
dest: spdk_debug
type: bool
action: store_true
private: true
- name: "--iobuf_small_bufsize"
help: "bdev_set_options param"
dest: small_bufsize
type: str
default: 0
private: true
- name: "--iobuf_large_bufsize"
help: "bdev_set_options param"
dest: large_bufsize
type: str
default: 0
private: true
- name: "--enable-test-device"
help: "Enable creation of test device"
dest: enable_test_device
type: bool
action: store_true
private: true
- name: "--disable-ha-jm"
help: "Disable HA JM for distrib creation"
dest: enable_ha_jm
type: bool
default: true
action: store_false
private: true
- name: "--is-secondary-node"
help: >
Adds as secondary node. A secondary node does not have any disks attached. It is only used for I/O
processing in case a primary goes down.
dest: is_secondary_node
type: bool
default: false
action: store_true
- name: "--namespace"
help: "k8s namespace to deploy on"
dest: namespace
type: str
- name: "--id-device-by-nqn"
help: "Use device nqn to identify it instead of serial number"
dest: id_device_by_nqn
type: bool
default: false
action: store_true
- name: "--lvol-name"
help: "Logical volume name or id"
dest: lvol_name
type: str
default: lvol01
private: true
- name: "--lvol-size"
help: "Logical volume size: 10M, 10G, 10(bytes)"
dest: lvol_size
type: str
default: 10G
private: true
- name: "--pool-name"
help: "Pool id or name"
dest: pool_name
type: str
default: pool01
private: true
- name: "--pool-max"
help: "Pool maximum size: 20M, 20G, 0(default)"
dest: pool_max
type: str
default: 25G
private: true
- name: "--snapshot"
help: "Make logical volume with snapshot capability, default: false"
dest: snapshot
type: bool
action: store_true
default: false
private: true
- name: "--max-volume-size"
help: "Logical volume max size"
dest: max_size
type: str
default: 1000G
private: true
- name: "--host-id"
help: "Primary storage node id or hostname"
dest: host_id
type: str
- name: "--encrypt"
help: "Use inline data encryption and decryption on the logical volume"
dest: encrypt
type: bool
action: store_true
default: false
private: true
- name: "--crypto-key1"
help: "Hex value of key1 to be used for logical volume encryption"
dest: crypto_key1
type: str
private: true
- name: "--crypto-key2"
help: "Hex value of key2 to be used for logical volume encryption"
dest: crypto_key2
type: str
private: true
- name: "--max-rw-iops"
help: "Maximum Read Write IO Per Second"
dest: max_rw_iops
type: int
private: true
- name: "--max-rw-mbytes"
help: "Maximum Read Write Megabytes Per Second"
dest: max_rw_mbytes
type: int
private: true
- name: "--max-r-mbytes"
help: "Maximum Read Megabytes Per Second"
dest: max_r_mbytes
type: int
private: true
- name: "--max-w-mbytes"
help: "Maximum Write Megabytes Per Second"
dest: max_w_mbytes
type: int
private: true
- name: "--distr-vuid"
help: "(Dev) set vuid manually, default: random (1-99999)"
dest: distr_vuid
type: str
default: 0
private: true
- name: "--lvol-ha-type"
help: "Logical volume HA type (single, ha), default is cluster HA type"
dest: lvol_ha_type
type: str
choices:
- single
- default
- ha
default: default
private: true
- name: "--lvol-priority-class"
help: "Logical volume priority class"
dest: lvol_priority_class
type: int
default: 0
private: false
- name: "--fstype"
help: "Filesystem type for testing (ext4, xfs)"
dest: fstype
type: str
choices:
- ext4
- xfs
default: xfs
private: true
- name: create
help: "Creates a new cluster"
usage: >
Created a new control plane cluster with the current node as the primary control plane node.
arguments: