< Back

New-InStorVolHostMap

Wed Jan 15, 2020 4:17 am

NAME New-InStorVolHostMap



SYNOPSIS

Maps the volume. The host can be specified via HostID or HostName. The volume can be specified via VolumeID or

VolumeName. Returns mapping relationships if succeed while null if fail.





SYNTAX

New-InStorVolHostMap [-Conn] <InStorConnection> [-Host] <String> [-Vdisk] <String> [[-Opts] <String>]

[<CommonParameters>]





DESCRIPTION

Maps the volume. The hosts can be specified via HostID or HostName. Returns mapping relationships if succeed while

null if fail.





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



-Host <String>

The ID or Name of the host(s) that the specified volume will be mapped to.



Required? true

Position? 1

Default value

Accept pipeline input?

Accept wildcard characters? false



-Vdisk <String>

The ID or Name of volume which will be mapped to host.



Required? true

Position? 2

Default value

Accept pipeline input?

Accept wildcard characters? false



-Opts <String>

Optional parameter for special purpose.



Required? false

Position? 3

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-InStorVolHostMap $conn -Host "0" -Vdisk "cdh_vol1"



Map the vdisk named "cdh_vol1" to the host with id of "0" .







id : 0



name : cdh_iscsi_180



vdisk_id : 1

vdisk_name : cdh_vol1



vdisk_UID : 60050760009289C11800000000005420





RELATED LINKS