< Back

New-InStorVolume

Wed Jan 15, 2020 4:17 am

NAME New-InStorVolume



SYNOPSIS

Create a Volume in a pool with name , size, unit. A array of MCS Volume with one instance will be returned if

succeed





SYNTAX

New-InStorVolume [-Conn] <InStorConnection> [-Mdiskgrp] <String> [-Name] <String> [-Size] <Int> [-Unit] <String>

[[-Opts] <String>] [<CommonParameters>]





DESCRIPTION

Create a Volume in a pool with name , size, unit. A array of MCS Volume with one instance will be returned if

succeed.





PARAMETERS

-Conn <InStorConnection>

The Connection to MCS Storage, returned by cmdlet New-InStorConnection.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Mdiskgrp <String>

Pool ID or Pool Name Which the volume will be created in.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Volume Name that will be created.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Size <Int>

Specify the volume size. Its unit can be specified via the Unit parameter.



Required? true

Position? 3

Default value

Accept pipeline input?

Accept wildcard characters? false



-Unit <String>

Specify the unit of Size.??????Optional unit??????"b", "kb","mb", "gb", "tb", "pb"???????



"b"



"kb"



"mb"



"gb"



"tb"



"pb"



Required? true

Position? 4

Default value

Accept pipeline input?

Accept wildcard characters? false



-Opts <String>

Optional parameter for special purpose.



Required? false

Position? 5

Default value

Accept pipeline input?

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Management.Automation.PSObject

returns a PSObject Object.





-------------------------- EXAMPLE 1 --------------------------



New-InStorVolume $conn -Mdiskgrp "Pool0" -Name "cdh_vol1" -Size 2 -Unit "gb"



Create a vdisk in Pool named "Pool0" with information(name:"cdh_vol1",Size:2, Unit:"gb").







id name mdisk_grp_name capacity

-- ---- -------------- --------



1 cdh_vol1 Pool0 2147483648





RELATED LINKS