-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcli-reference.yaml
More file actions
2177 lines (2173 loc) · 74.7 KB
/
cli-reference.yaml
File metadata and controls
2177 lines (2173 loc) · 74.7 KB
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: "--isolate-cores"
help: "Isolate cores in kernel args for provided cpu mask"
dest: isolate_cores
type: bool
default: false
action: store_true
- name: configure
help: "Prepare a configuration file to be used when adding the storage node"
description: >
Runs locally on to-be storage node hosts. Reads system information (CPUs topology, NVME devices) and prepares
yaml config to be used when adding the storage node.
arguments:
- name: "--max-lvol"
help: "Max logical volume per storage node"
dest: max_lvol
type: int
required: true
- name: "--max-size"
help: "Maximum amount of Huge Pages to be set on the node"
description: >
Maximum amount of Huge Pages to be set on the node, it will override the auto-calculated value.
dest: max_prov
type: str
required: false
- name: "--nodes-per-socket"
help: "number of each node to be added per each socket."
dest: nodes_per_socket
type: int
default: 1
- name: "--sockets-to-use"
help: "The system socket to use when adding the storage nodes"
description: >
System socket to use when adding storage nodes. Comma-separated list: e.g. 0,1
dest: sockets_to_use
type: str
default: "0"
- name: "--cores-percentage"
help: "The percentage of cores to be used for spdk (0-99)"
description: >
The percentage of cores to be used for spdk (0-99)
dest: cores_percentage
type:
range:
min: 0
max: 99
default: 0
- name: "--pci-allowed"
help: "Comma separated list of PCI addresses of Nvme devices to use for storage devices."
description: >
Storage PCI addresses to use for storage devices(Normal address and full address are accepted). Comma-separated list: e.g. 0000:00:01.0,00:02.0
dest: pci_allowed
required: false
type: str
default: ""
- name: "--pci-blocked"
help: "Comma separated list of PCI addresses of Nvme devices to not use for storage devices"
description: >
Storage PCI addresses to not use for storage devices(Normal address and full address are accepted). Comma-separated list: e.g. 0000:00:01.0,00:02.0
dest: pci_blocked
required: false
type: str
default: ""
- name: "--device-model"
help: "NVMe SSD model string, example: --model PM1628, --device-model and --size-range must be set together"
description: >
NVMe SSD model string, example: --model PM1628, --device-model and --size-range must be set together
dest: device_model
required: false
type: str
default: ""
- name: "--size-range"
help: "NVMe SSD device size range separated by -, can be X(m,g,t) or bytes as integer, example: --size-range 50G-1T or --size-range 1232345-67823987, --device-model and --size-range must be set together"
description: >
NVMe SSD device size range separated by -, can be X(m,g,t) or bytes as integer, example: --size-range 50G-1T or --size-range 1232345-67823987, --device-model and --size-range must be set together
dest: size_range
required: false
type: str
default: ""
- name: "--nvme-names"
help: "Comma separated list of nvme namespace names like nvme0n1,nvme1n1..."
description: >
Comma separated list of nvme namespace names like nvme0n1,nvme1n1...
dest: nvme_names
required: false
type: str
default: ""
- name: "--force"
help: "Force format detected or passed nvme pci address to 4K and clean partitions"
dest: force
type: bool
action: store_true
- name: "--calculate-hp-only"
help: "Calculate the minimum required huge pages, it depends on the following params: --cores-percentage, --sockets-to-use, --max-lvol, --nodes-per-socket, --number-of-devices"
dest: calculate_hp_only
type: bool
action: store_true
- name: "--number-of-devices"
help: "number of devices that will be used on this host, For calculating huge pages memory only"
dest: number_of_devices
type: int
- name: configure-upgrade
help: "Upgrade the automated configuration file with new changes of cpu mask or storage devices"
description: >
Regenerate the core distribution and auto calculation according to changes in cpu_mask and ssd_pcis only
- 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: clean-devices
help: "clean devices stored in /etc/simplyblock/sn_config_file (local run)"
description: >
Run locally on storage nodes to clean nvme devices and free them.
arguments:
- name: "--config-path"
help: "Config path to read stored nvme devices from"
dest: config_path
required: false
type: str
default: "/etc/simplyblock/sn_config_file"
- 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_addr"
help: "Address of storage node api to add, like <node-ip>:5000"
dest: node_addr
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: "--format-4k"
help: "Force format nvme devices with 4K"
dest: format_4k
type: bool
action: store_true
- name: "--jm-percent"
help: "Number in percent to use for JM from each device"
dest: jm_percent
type: int
default: 3
private: true
- name: "--data-nics"
help: "Storage network interface names. currently one interface is supported."
description: >
Storage network interface names, e.g. eth0,eth1
dest: data_nics
type: str
nargs: "+"
- name: "--size-of-device"
help: "Size of device per storage node"
dest: partition_size
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: int
default: 0
private: true
- name: "--iobuf_large_bufsize"
help: "bdev_set_options param"
dest: large_bufsize
type: int
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: int
default: 3
- 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: "--max-snap"
help: "Max snapshot per storage node"
dest: max_snap
type: int
default: 5000
private: true
- name: "--spdk-proxy-image"
help: "SPDK Proxy image uri"
dest: spdk_proxy_image
type: str
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. Warning: This is dangerous and could lead to unstable cluster if used on active cluster.
arguments:
- name: node_id
help: Storage node id
dest: node_id
completer: _completer_get_sn_list
type: str
- name: "--force"
help: "Force delete storage node from DB...Hopefully you know what you do"
dest: force_remove
type: bool
action: store_true
- 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: int
default: 5000
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: "0"
private: true
- name: "--node-addr"
aliases:
- "--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.<br><br>
The provided value must be presented in the form of _IP:PORT_. Be default the port number is _5000_.
dest: node_ip
type: str
- name: "--spdk-image"
help: "SPDK image uri"
dest: spdk_image
type: str
private: true
- name: "--reattach-volume"
help: "Reattach volume to new instance"
dest: reattach_volume
type: bool
action: store_true
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: int
default: 0
private: true
- name: "--iobuf_large_bufsize"
help: "bdev_set_options param"
dest: large_bufsize
type: int
default: 0
private: true
- name: "--force"
help: "Force restart"
dest: force
type: bool
action: store_true
- name: "--ssd-pcie"
help: "New Nvme PCIe address to add to the storage node. Can be more than one."
dest: ssd_pcie
required: false
type: str
nargs: +
default: ""
- name: "--force-lvol-recreate"
help: "Force LVol recreate on node restart even if lvol bdev was not recovered"
dest: force_lvol_recreate
type: bool
action: store_true
default: False
- name: "--spdk-proxy-image"
help: "SPDK Proxy image uri"
dest: spdk_proxy_image
type: str
private: 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: int
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: "--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: 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: "--force"
help: "Force remove"
dest: force
type: bool
action: store_true
- 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: int
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: "--format"
help: "Format the Alceml device used for JM device"
dest: format
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: "Forces to make the provided node id primary"
description: |
Makes the storage node the primary node. This is required after certain storage cluster operations, such
as a storage node migration.
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: set
help: "set storage node db value"
private: true
arguments:
- name: "node_id"
help: "Storage node id"
dest: node_id
type: str
- name: "attr_name"
help: "attr_name"
dest: attr_name
type: str
- name: "attr_value"
help: "attr_value"
dest: attr_value
type: str
- name: new-device-from-failed
help: "Adds a new device to from failed device information"
usage: >
A previously failed and migrated device may be added back into the cluster as a new device. The new device
would have the same info as the failed device but would be empty and not contain any data.
arguments:
- name: "device_id"
help: "Device id"
dest: device_id
type: str
- name: list-snapshots
help: "List snapshots on a storage node"
arguments:
- name: "node_id"
help: "Node id"
dest: node_id
type: str
- name: "--json"
help: "Print json output"
dest: json
type: bool
action: store_true
- name: list-lvols
help: "List lvols on a storage node"
arguments:
- name: "node_id"
help: "Node id"
dest: node_id
type: str
- name: "--json"
help: "Print json output"
dest: json
type: bool
action: store_true
- name: repair-lvstore
help: "Try repair any inconsistencies in lvstore on a storage node"
arguments:
- name: "node_id"
help: "Node id"
dest: node_id
type: str
- name: "--validate-only"
help: "Validate only, do not perform any repair actions"
dest: validate_only
type: bool
action: store_true
- name: "--force-remove-inconsistent"
help: "Force remove any inconsistent lvols or snapshots"
dest: force_remove_inconsistent
type: bool
action: store_true
- name: "--force_remove_wrong_ref"
help: "Force remove lvols or snapshots with wrong reference count"
dest: force_remove_wrong_ref
type: bool
action: store_true
- name: lvs-dump-tree
help: "dump lvstore tree for debugging"
private: true
arguments:
- name: "node_id"
help: "Node id"
dest: node_id
type: str
- name: "cluster"
help: "Cluster commands"
weight: 200
subcommands:
- 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:
- name: "--page_size"
help: "The size of a data page in bytes"
dest: page_size
type: int
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: "--ifname"
help: "Management interface name, e.g. eth0"
dest: ifname
type: str
- name: "--mgmt-ip"
help: "Management IP address to use for the node (e.g., 192.168.1.10)"
dest: mgmt_ip
type: str
- name: "--tls-secret-name"
help: "Name of the Kubernetes TLS Secret to be used by the Ingress for HTTPS termination (e.g., my-tls-secret)"
dest: tls_secret
type: str
- name: "--log-del-interval"
help: "Logging retention policy, 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: ""
- 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: "--distr-bs"
help: "(Dev) distrb bdev block size, default: 4096"
dest: distr_bs
type: int
default: 4096
private: true
- name: "--distr-chunk-bs"
help: "(Dev) distrb bdev chunk block size, default: 4096"
dest: distr_chunk_bs
type: int
default: 4096
private: true
- name: "--ha-type"
help: "Logical volume HA type (single, ha), default is cluster ha type"
dest: ha_type
type: str
choices:
- single
- ha
default: ha
- name: "--is-single-node"
help: "For single node clusters only"
dest: is_single_node
type: bool
action: store_true
default: false
- name: "--mode"
help: "Environment to deploy management services, default: docker"
dest: mode
type: str
choices:
- docker
- kubernetes
default: docker
- name: "--ingress-host-source"
help: "Ingress host source: 'hostip' for node IP, 'loadbalancer' for external LB, or 'dns' for custom domain"
dest: ingress_host_source
type: str
choices:
- hostip
- loadbalancer
- dns
default: hostip
- name: "--dns-name"
help: "Fully qualified DNS name to use as the Ingress host (required if --ingress-host-source=dns)"
dest: dns_name
type: str
default: ""
- name: "--enable-node-affinity"
help: "Enable node affinity for storage nodes"
dest: enable_node_affinity
type: bool
action: store_true
- name: "--fabric"
help: "fabric: tcp, rdma or both (specify: tcp, rdma)"
dest: fabric
type: str
choices:
- tcp
- rdma
- tcp,rdma
default: tcp
- name: "--max-queue-size"
help: "The max size the queue will grow"
dest: max_queue_size
type: int
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: int
default: 4
private: true
- name: "--disable-monitoring"
help: "Disable monitoring stack, false by default"
dest: disable_monitoring
type: bool
default: false
action: store_true
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: "--name"
help: >
Assigns a name to the newly created cluster.
dest: name
aliases:
- "-n"
type: str
- 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:
range:
min: 0
max: 128
default: 32
- name: "--client-qpair-count"
help: "default NVMe/TCP transport qpair count per logical volume for client"
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: client_qpair_count
type:
range:
min: 0
max: 128
default: 3
- name: "--client-data-nic"
help: >
Network interface name from client to use for LVol connection.
dest: client_data_nic
type: str
- name: add