
HP P2000 G3 MSA System CLI Reference Guide
69
create volume
Description
Creates a volume in a vdisk. You must specify a size for the volume. You can create the volume
unmapped or set its default mapping. Default mapping settings apply to all hosts, unless overridden
by an explicit mapping between a host and the volume. You can later change the mapping by using
the
map volume
and
unmap volume
commands.
By default, this command will not map the created volume.
Syntax
create volume
vdisk
vdisk
size
size
[B|KB|MB|GB|TB|KiB|MiB|GiB|TiB]
[mapping
ports
.
LUN
]
[access read-write|rw|read-only|ro|no-access]
[lun
LUN
]
[ports
ports
]
[snap-pool
snap-pool
]
[reserve
size
[B|KB|MB|GB|TB|KiB|MiB|GiB|TiB]]
[snappable]
[prepare-replication-volume]
[ovms-uid
ID
]
name
Parameters
vdisk
vdisk
Name or serial number of the vdisk to create the volume in. For vdisk syntax, see
Command syntax
on page 22.
size
size
[B|KB|MB|GB|TB|KiB|MiB|GiB|TiB]
Sets the volume size using the current base, as shown by the
show cli-parameters
command. The unit
can be specified as follows:
•
If base 2 is in use:
B
(bytes),
KiB
(kibibytes),
MiB
(mebibytes), or
GiB
(gibibytes).
•
If base 10 is in use:
B
(bytes),
KB
(kilobytes),
MB
(megabytes), or
GB
(gigabytes).
If no unit is specified, the unit is 512-byte blocks.
mapping
ports
.
LUN
Deprecated; use the
ports
and
lun
parameters.
access read-write|rw|read-only|ro|no-access
Optional. The access permission for hosts connected to the controller for this volume: read-write (
rw
),
read-only (
ro
), or no-access. If
no-access
is specified, the volume is not mapped. The default is
read-write
.
lun
LUN
Optional if the access parameter is set to
no-access
. Specifies the LUN to assign to the mapping
on all ports.
ports
ports
Optional. The ports through which the host can access the volume. In a combo system, select either
FC or iSCSI ports, not both. For port syntax, see
Command syntax
on page 22. If this parameter is
omitted, all ports are selected.
snap-pool
snap-pool
Optional. Name or serial number of the snap pool to associate with the new volume. For volume
syntax, see
Command syntax
on page 22.
Summary of Contents for P2000 G3
Page 1: ...HP P2000 G3 MSA System CLI Reference Guide Part number 500912 009 First edition February 2014 ...
Page 14: ...14 About this guide ...
Page 30: ...30 Categorical list of commands ...
Page 199: ...HP P2000 G3 MSA System CLI Reference Guide 199 See also set cache parameters show volumes ...
Page 294: ...294 Alphabetical list of commands See also set volume set vdisk ...
Page 498: ...498 XML API basetype properties PROPERTY name mrc version type uint8 0 PROPERTY OBJECT ...
Page 524: ...524 Glossary ...
Page 532: ...532 Index ...