summaryrefslogtreecommitdiffstats
path: root/commands/storage/doc/cmdline.generated
blob: cfb2fa2bd92d16e5d16c9dfe8bbd007956c55b84 (plain)
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
..

.. !!! This is generated file. Use 'make cmdregen' to regenerate it from installed 'lmi help XXX'


storage
-------

Basic storage device information.


**Usage:**

    **lmi** **storage** **fs** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **luks** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **lv** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **mount** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **partition** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **partition-table** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **raid** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **vg** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **thinpool** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **thinlv** \ *<cmd>*\  [\ *<args>*\  ...]

    **lmi** **storage** **depends** [ \ **--deep**\  ] [ \ *<device>*\  ...]

    **lmi** **storage** **list** [ \ *<device>*\  ...]

    **lmi** **storage** **provides** [ \ **--deep**\  ] [ \ *<device>*\  ...]

    **lmi** **storage** **show** [ \ *<device>*\  ...]

    **lmi** **storage** **tree** [ \ *<device>*\  ]



**Commands:**


    **fs**
        Filesystem and other data format management.


    **luks**
        LUKS management.


    **lv**
        Logical Volume management.


    **mount**
        Mount management.


    **partition**
        Partition management.


    **partition-table**
        Partition table management.


    **raid**
        MD RAID management.


    **vg**
        Volume Group management.


    **thinpool**
        Thin Pool management.


    **thinlv**
        Thin Logical Volume management.


    **list**
        List short information about given device. If no devices
        are given, all devices are listed.


    **show**
        Show detailed information about given devices. If no devices
        are provided, all of them are displayed.


    **provides**
        Show devices, which are created from given devices
        (= show children of the devices).

        For example, if a disk is provided, all partitions on it are
        returned. If 'deep' is used, all RAIDs, Volume Groups and
        Logical Volumes indirectly allocated from it are returned too.


    **depends**
        Show devices, which are required by given devices to operate
        correctly (= show parents of the devices).

        For example, if a Logical Volume is provided, its Volume Group
        is returned. If 'deep' is used, also all Physical Volumes and
        appropriate disk(s) are returned.


    **tree**
        Show tree of devices, similar to lsblk.

        If no device is provided, all devices are shown, starting
        with physical disks.

        If a device is provided, tree starts with the device
        and all dependent devices are shown.


**Options:**



    **device**
        Identifier of the device. Either one of:

        * DeviceID of appropriate CIM_StorageExtent object. This is
          internal OpenLMI ID of the device and it should be stable
          across system reboots.

        * Device name directly in /dev directory, such as '/dev/sda'.
          This device name is available as Name property of
          CIM_StorageExtent object.

        * Name of MD RAID or logical volume. This method cannot be used
          when the name is not unique, for example when there are two
          logical volumes with the same name, allocated from different
          volume groups. This name is available as ElementName
          property of CIM_StorageExtent object.


    **--deep**
        Show all ancestors/children the device, not only the immediate
        ones.

storage fs
----------

Filesystem and other data format management.


**Usage:**

    **lmi** **storage** **fs** **list** [\ **--all**\ ] [ \ *<device>*\  ...]

    **lmi** **storage** **fs** **create** [ \ **--label**\ =\ *<label>*\  ] \ *<fstype>*\   \ *<device>*\  ...

    **lmi** **storage** **fs** **delete** \ *<device>*\  ...

    **lmi** **storage** **fs** list-supported



**Commands:**


    **list**
        List filesystems and other data formats (RAID metadata,
        ...)  on given devices.
        If no devices are provided, all filesystems are listed.
        If --all option is set, all filesystem, including system
        ones like tmpfs, cgroups, procfs, sysfs etc are listed.


    **create**
        Format device(s) with given filesystem.
        If more devices are given, the filesystem will span
        over these devices (currently supported only by btrfs).

        For list of available filesystem types, see output of
        lmi storage fs list-supported.


    **delete**
        Delete given filesystem or data format (like partition
        table, RAID metadata, LUKS, physical volume metadata etc)
        on given devices.


    **list-supported**
        
        List supported filesystems, which can be used as
        lmi storage fs create <fstype> option.

storage luks
------------

LUKS management


**Usage:**

    **lmi** **storage** **luks** list

    **lmi** **storage** **luks** **create** [\ **-p**\  \ *<passphrase>*\ ] \ *<device>*\ 

    **lmi** **storage** **luks** **open** [\ **-p**\  \ *<passphrase>*\ ] \ *<device>*\  \ *<name>*\ 

    **lmi** **storage** **luks** **close** \ *<device>*\ 

    **lmi** **storage** **luks** **addpass** [\ **-p**\  \ *<passphrase>*\ ] [\ **-n**\  \ *<new-passphrase>*\ ] \ *<device>*\ 

    **lmi** **storage** **luks** **deletepass** [\ **-p**\  \ *<passphrase>*\ ]  \ *<device>*\ 



**Commands:**


    **list**
        List available LUKS formats and their clear-text devices
        (if any).


    **create**
        Format given device with LUKS format. Any data on the device
        will be destroyed.


    **open**
        Open given device formatted with LUKS and expose its clear-text
        data as a new block device.


    **close**
        Close given device formatted with LUKS and destroy its
        clear-text block device.


    **addpass**
        Add new passphrase to given LUKS-formatted device. Each device
        can have up to 8 separate passwords and any of them can be used
        to decrypt the device.


    **deletepass**
        Remove given passphrase from LUKS-formatted device.

**Common options:**


    **-p, --passphrase=passphrase**
        Passphrase. It will be read from the
        terminal, if it is not provided on command
        line.


    **-n, --new-passphrase=passphrase**
        New passphrase. It will be read from the
        terminal, if it is not provided on command
        line.

**Open options:**


    **<device>**
        Device with LUKS format on it.


    **<name>**
        Name of the clear-text block device to create.

**Close options:**


    **<device>**
        Device with LUKS format on it, previously opened by
        'lmi storage luks open'.

storage lv
----------

Logical Volume management.


**Usage:**

    **lmi** **storage** **lv** **list** [ \ *<vg>*\  ...]

    **lmi** **storage** **lv** **create** \ *<vg>*\  \ *<name>*\  \ *<size>*\ 

    **lmi** **storage** **lv** **delete** \ *<lv>*\  ...

    **lmi** **storage** **lv** **show** [ \ *<lv>*\  ...]



**Commands:**


    **list**
        List available logical volumes on given volume groups.
        If no volume groups are provided, all logical volumes are
        listed.


    **create**
        Create a logical volume on given volume group.


    **delete**
        Delete given logical volume.


    **show**
        Show detailed information about given Logical Volumes. If no
        Logical Volumes are provided, all of them are displayed.

**Options:**


    **vg**
        Name of the volume group, with or without `/dev/` prefix.


    **size**
        Size of the new logical volume, by default in bytes.
        'T', 'G', 'M' or 'K' suffix can be used to specify other
        units (TiB, GiB, MiB and KiB) - '1K' specifies 1 KiB
        (= 1024 bytes).
        The suffix is case insensitive, i.e. 1g = 1G = 1073741824
        bytes.

        'E' suffix can be used to specify number of volume group
        extents, '100e' means 100 extents.

storage mount
-------------

Mount management.


**Usage:**

    **lmi** **storage** **mount** **list** [ \ **--all**\  ] [ \ *<device>*\  ... ]

    **lmi** **storage** **mount** **create** \ *<device>*\  \ *<mountpoint>*\  [ (\ **-t**\  \ *<fs_type>*\ ) (\ **-o**\  \ *<options>*\ ) ]

    **lmi** **storage** **mount** **delete** \ *<target>*\ 

    **lmi** **storage** **mount** **show** [ \ **--all**\  ] [ \ *<device>*\  ... ]



**Commands:**


    **list**
        List mounted filesystems with a device attached to them.
        Optionally, show all mounted filesystems.


    **create**
        Mount a specified device on the path given by mountpoint.
        Optionally, filesystem type, common options (filesystem
        independent) and filesystem specific options can be provided. If no
        filesystem type is specified, it is automatically detected.

        Options can be provided as a comma-separated string of
        'option_name:value' items.  Possible option names are:

        AllowExecution AllowMandatoryLock AllowSUID AllowUserMount
        AllowWrite Auto Dump FileSystemCheckOrder InterpretDevices
        Silent SynchronousDirectoryUpdates SynchronousIO
        UpdateAccessTimes UpdateDirectoryAccessTimes UpdateFullAccessTimes
        UpdateRelativeAccessTimes

        Possible option values for all of the options except for
        FileSystemCheckOrder are 't', 'true', 'f', 'false'. All of them are
        case insensitive.
        The FileSystemCheckOrder option's value is a number.

        In case an option is not recognized as being one of the possible
        options listed above, it's used as a filesystem dependent option.

        Examples:

        create /dev/vda1 /mnt -t ext4 -o 'AllowWrite:F,InterpretDevices:false'

        create /dev/vda2 /mnt -o 'FileSystemCheckOrder:2'

        create /dev/vda3 /mnt -o 'user_xattr,barrier=0'

        create /dev/vda4 /mnt -o 'Dump:t, AllowMandatoryLock:t, acl'


    **delete**
        Unmount a mounted filesystem. Can be specified either as a device
        path or a mountpoint.


    **show**
        Show detailed information about mounted filesystems with a device
        attached to them. Optionally, show all mounted filesystems.

storage partition
-----------------

Partition management.


**Usage:**

    **lmi** **storage** **partition** **list** [ \ *<device>*\  ...]

    **lmi** **storage** **partition** **create** [ \ **--logical**\  | \ **--extended**\  ] \ *<device>*\  [\ *<size>*\ ]

    **lmi** **storage** **partition** **delete** \ *<partition>*\  ...

    **lmi** **storage** **partition** **show** [ \ *<partition>*\  ...]



**Commands:**


    **list**
        List available partitions on given devices.
        If no devices are provided, all partitions are listed.


    **create**
        Create a partition on given device.

        If no size is given, the resulting partition will occupy the
        largest available space on disk.

        The command automatically creates extended and logical
        partitions using these rules:

        * If no partition type (logical or extended) is provided and
          MS-DOS partition is requested and there is extended partition
          already on the device, a logical partition is created.

        * If there is no extended partition on the device and there are
          at most two primary partitions on the device, primary
          partition is created.

        * If there is no extended partition and three primary partitions
          already exist, new extended partition with all remaining space
          is created and a logical partition with requested size is
          created.


    **delete**
        Delete given partitions.


    **show**
        Show detailed information about given partitions. If no
        partitions are provided, all of them are displayed.

**Options:**


    **size**
        Size of the new partition volume, by default in sectors.
        'T', 'G', 'M' or 'K' suffix can be used to specify other
        units (TiB, GiB, MiB and KiB) - '1K' specifies 1 KiB
        (= 1024 bytes).
        The suffix is case insensitive, i.e. 1g = 1G = 1073741824 bytes.


    **device,**
        

    **partition**
        Identifier of the device/partition. Either one of:

        * DeviceID of appropriate CIM_StorageExtent object. This is
          internal OpenLMI ID of the device and it should be stable
          across system reboots.

        * Device name directly in /dev directory, such as '/dev/sda'.
          This device name is available as Name property of
          CIM_StorageExtent object.

        * Name of MD RAID or logical volume. This method cannot be used
          when the name is not unique, for example when there are two
          logical volumes with the same name, allocated from different
          volume groups. This name is available as ElementName
          property of CIM_StorageExtent object.


    **--logical**
        Override the automatic behavior and request logical partition.

    **--extended**
        Override the automatic behavior and request extended partition.

storage partition-table
-----------------------

Partition table management.


**Usage:**

    **lmi** **storage** **partition-table** **list** [ \ *<device>*\  ...]

    **lmi** **storage** **partition-table** **create** [ \ **--gpt**\  | \ **--msdos**\  ] \ *<device>*\  ...

    **lmi** **storage** **partition-table** **show**  [ \ *<device>*\  ...]



**Commands:**


    **list**
        List partition tables on given device.
        If no devices are provided, all partition tables are listed.


    **create**
        Create a partition table on given devices. The devices must be
        empty, i.e. must not have any partitions on them. GPT partition
        table is created by default.


    **show**
        Show detailed information about partition table on given
        devices. If no devices are provided, all of them are displayed.

**Options:**


    **device**
        Identifier of the device. Either one of:

        * DeviceID of appropriate CIM_StorageExtent object. This is
          internal OpenLMI ID of the device and it should be stable
          across system reboots.

        * Device name directly in /dev directory, such as '/dev/sda'.
          This device name is available as Name property of
          CIM_StorageExtent object.

        * Name of MD RAID or logical volume. This method cannot be used
          when the name is not unique, for example when there are two
          logical volumes with the same name, allocated from different
          volume groups. This name is available as ElementName
          property of CIM_StorageExtent object.


    **--gpt**
        Create GPT partition table (default).

    **--msdos**
        Create MS-DOS partition table.

storage raid
------------

MD RAID management.


**Usage:**

    **lmi** **storage** **raid** list

    **lmi** **storage** **raid** **create** [ \ **--name**\ =\ *<name>*\  ] \ *<level>*\  \ *<device>*\  ...

    **lmi** **storage** **raid** **delete** \ *<device>*\  ...

    **lmi** **storage** **raid** **show** [ \ *<device>*\  ...]



**Commands:**


    **list**
        List all MD RAID devices on the system.


    **create**
        Create MD RAID array with given RAID level from list of devices.


    **delete**
        Delete given MD RAID devices.


    **show**
        Show detailed information about given MD RAID devices. If no
        devices are provided, all MD RAID devices are displayed.

**Options:**


    **device**
        Identifier of the device. Either one of:

        * DeviceID of appropriate CIM_StorageExtent object. This is
          internal OpenLMI ID of the device and it should be stable
          across system reboots.

        * Device name directly in /dev directory, such as '/dev/sda'.
          This device name is available as Name property of
          CIM_StorageExtent object.

        * Name of MD RAID or logical volume. This method cannot be used
          when the name is not unique, for example when there are two
          logical volumes with the same name, allocated from different
          volume groups. This name is available as ElementName
          property of CIM_StorageExtent object.


    **level**
        RAID level. Supported levels are: 0, 1, 4, 5, 6, 10.

storage vg
----------

Volume Group management.


**Usage:**

    **lmi** **storage** **vg** list

    **lmi** **storage** **vg** **create** [ \ **--extent-size**\ =\ *<size>*\  ] \ *<name>*\  \ *<device>*\  ...

    **lmi** **storage** **vg** **delete** \ *<vg>*\  ...

    **lmi** **storage** **vg** **show** [ \ *<vg>*\  ...]



**Commands:**


    **list**
        List all volume groups on the system.


    **create**
        Create Volume Group with given name from list of devices.


    **delete**
        Delete given Volume Groups.


    **show**
        Show detailed information about given Volume Groups. If no
        Volume Groups are provided, all of them are displayed.

**Options:**



    **device**
        Identifier of the device. Either one of:

        * DeviceID of appropriate CIM_StorageExtent object. This is
          internal OpenLMI ID of the device and it should be stable
          across system reboots.

        * Device name directly in /dev directory, such as '/dev/sda'.
          This device name is available as Name property of
          CIM_StorageExtent object.

        * Name of MD RAID or logical volume. This method cannot be used
          when the name is not unique, for example when there are two
          logical volumes with the same name, allocated from different
          volume groups. This name is available as ElementName
          property of CIM_StorageExtent object.


    **vg**
        Name of the volume group, with or without `/dev/` prefix.


    **size**
        Requested extent size of the new volume group, by default in
        bytes. 'T', 'G', 'M' or 'K' suffix can be used to specify
        other units (TiB, GiB, MiB and KiB) - '1K' specifies 1 KiB
        (=1024 bytes).
        The suffix is case insensitive, i.e. 1g = 1G = 1073741824 bytes.

storage thinpool
----------------

Thin Pool management.


**Usage:**

    **lmi** **storage** **thinpool** list

    **lmi** **storage** **thinpool** **create** \ *<name>*\  \ *<vg>*\  \ *<size>*\ 

    **lmi** **storage** **thinpool** **delete** \ *<tp>*\  ...

    **lmi** **storage** **thinpool** **show** [ \ *<tp>*\  ...]



**Commands:**


    **list**
        List all thin pools on the system.


    **create**
        Create Thin Pool with given name and size from a Volume Group.


    **delete**
        Delete given Thin Pools.


    **show**
        Show detailed information about given Thin Pools. If no
        Thin Pools are provided, all of them are displayed.

**Options:**


    **vg**
        Name of the volume group, with or without `/dev/` prefix.


    **tp**
        Name of the thin pool, with or without `/dev/` prefix.


    **size**
        Requested extent size of the new volume group, by default in
        bytes. 'T', 'G', 'M' or 'K' suffix can be used to specify
        other units (TiB, GiB, MiB and KiB) - '1K' specifies 1 KiB
        (=1024 bytes).
        The suffix is case insensitive, i.e. 1g = 1G = 1073741824 bytes.

storage thinlv
--------------

Thin Logical Volume management.


**Usage:**

    **lmi** **storage** **thinlv** **list** [ \ *<tp>*\  ...]

    **lmi** **storage** **thinlv** **create** \ *<tp>*\  \ *<name>*\  \ *<size>*\ 

    **lmi** **storage** **thinlv** **delete** \ *<tlv>*\  ...

    **lmi** **storage** **thinlv** **show** [ \ *<tlv>*\  ...]



**Commands:**


    **list**
        List available thin logical volumes on given thin pools.
        If no thin pools are provided, all thin logical volumes are
        listed.


    **create**
        Create a thin logical volume on given thin pool.


    **delete**
        Delete given thin logical volume.


    **show**
        Show detailed information about given Thin Logical Volumes. If no
        Thin Logical Volumes are provided, all of them are displayed.

**Options:**


    **tp**
        Name of the thin pool, with or without `/dev/` prefix.


    **size**
        Size of the new logical volume, by default in bytes.
        'T', 'G', 'M' or 'K' suffix can be used to specify other
        units (TiB, GiB, MiB and KiB) - '1K' specifies 1 KiB
        (= 1024 bytes).
        The suffix is case insensitive, i.e. 1g = 1G = 1073741824
        bytes.