Usage: nvmesh volume create [OPTIONS]
Create volume.
IMPORTANT: When creating a volume only one of the following can be
defined: VPG, target/drive classes, limit by targets/drives.
Usage example, create a volume named 'r1_vol' whose type is Mirrored
RAID-1 and has a capacity of 1TB:
$ nvmesh volume create -n r1_vol --raid-level 1 -c 1T
Options:
-n, --name TEXT The name of the volume. The name must be
unique, as it will become the ID of the
volume. [required]
-rl, --raid-level [lvm|ec|0|1|10]
The RAID level of the volume. Options: lvm =
Concatenated, ec = Erasure Coding, 0 =
Striped RAID-0, 1 = Mirrored RAID-1, 10 =
Striped & Mirrored RAID-10. NOTE: This
option is mutually exclusive with the
follwoing options: `vpg`. [required]
-c, --capacity TEXT The capacity of the allocated volume in
bytes. Minimal volume capacity is 1GB.The
number of bytes may be followed by the
following multiplicative suffixes: K/KB
=1000, KiB =1024, M/MB =1000^2, MiB =1024^2,
G/GB =1000^3, GiB =1024^3, T/TB =1000^4, TiB
=1024^4, , PiB =1024^5. Use "MAX" for using
all of the available space. All the units
are case insensitive. [required]
-d, --description TEXT Description of the volume.
--domain TEXT Domain to use.
--vpg TEXT The VPG to use.
--relative-rebuild-priority INTEGER RANGE
Sets the volume relative rebuild priority.
-dc, --drive-class TEXT Limit volume allocation to specific drive
classes. NOTE: This option can be used
multiple times, e.g. -dc <value> -dc
<value>. It can also be used once with
multiple values separated with the ','
character, e.g. -dc <value>,<value>,<value>
-tc, --target-class TEXT Limit volume allocation to specific target
classes. NOTE: This option can be used
multiple times, e.g. -tc <value> -tc
<value>. It can also be used once with
multiple values separated with the ','
character, e.g. -tc <value>,<value>,<value>
-D, --limit-by-drive TEXT Limit volume allocation to specific drives.
NOTE: This option can be used multiple
times, e.g. -D <value> -D <value>. It can
also be used once with multiple values
separated with the ',' character, e.g. -D
<value>,<value>,<value>
-T, --limit-by-target TEXT Limit volume allocation to specific targets.
NOTE: This option can be used multiple
times, e.g. -T <value> -T <value>. It can
also be used once with multiple values
separated with the ',' character, e.g. -T
<value>,<value>,<value>
--stripe-width INTEGER Number of disks to use. Required if RAID
Level is 0 or 10.
--wait-for-status [online|offline|degraded]
Wait for the volume to become in a specific
status before continue. Options: online,
offline, degraded.
--timeout INTEGER Maximum time in seconds to wait for status.
(default: 60 seconds)
--data-blocks INTEGER RANGE Number of disks to use. Required if RAID
Level is ec.
--parity-blocks INTEGER RANGE Number of disks to use. Required if RAID
Level is ec.
--protection-level, --target-node-redundancy [full|minimal|ignore]
Protection level to use. Required if RAID
Level is ec. Options: full = Full Separation
(N+2 Target redundancy), minimal = Minimal
Separation (N+1 Target Redundancy), ignore =
Ignore Separation (No Target Redundancy).
Optional if the RAID Level is 1 or 10.
Options: full = Full Separation (1+1 Target
Node Separation) - default, ignore = Ignore
Separation (No Target Redundency).
--enable-nvmf BOOLEAN Enables access to the NVMesh volume using
the NVMf protocol.
-nc, --nvmf-client TEXT The ID of a client that allowed to export
via NVMf protocol. NOTE: This option can be
used multiple times, e.g. -nc <value> -nc
<value>. It can also be used once with
multiple values separated with the ','
character, e.g. -nc <value>,<value>,<value>
--enable-crc-check BOOLEAN Enables CRC check of the volume.
-vsg, --volume-security-group TEXT
The name of the associated volume security
group. NOTE: This option can be used
multiple times, e.g. -vsg <value> -vsg
<value>. It can also be used once with
multiple values separated with the ','
character, e.g. -vsg <value>,<value>,<value>
-h, --help Show this message and exit.
Post your comment on this topic.