Get-SCStorageArray
获取存储数组对象。
语法
Get-SCStorageArray
[-VMMServer <ServerConnection>]
[[-Name] <String>]
[-All]
[<CommonParameters>]
Get-SCStorageArray
-VMHost <Host[]>
[-ConnectedToAllHost]
[-FibreChannelOnly]
[-iSCSIOnly]
[-SASOnly]
[-VMMServer <ServerConnection>]
[[-Name] <String>]
[<CommonParameters>]
Get-SCStorageArray
[-FibreChannelOnly]
[-iSCSIOnly]
[-SASOnly]
[-VMMServer <ServerConnection>]
[[-Name] <String>]
-StorageFileServerNode <StorageFileServerNode[]>
[<CommonParameters>]
Get-SCStorageArray
-HyperConvergedHostCluster <HostCluster>
[-VMMServer <ServerConnection>]
[[-Name] <String>]
[<CommonParameters>]
Get-SCStorageArray
[-VMMServer <ServerConnection>]
[[-Name] <String>]
-VM <VM[]>
[<CommonParameters>]
Get-SCStorageArray
[-VMMServer <ServerConnection>]
[[-Name] <String>]
[-ID <Guid>]
[<CommonParameters>]
说明
Get-SCStorageArray cmdlet 从 Virtual Machine Manager (VMM) 数据库获取存储数组对象。
在发现存储资源之前,必须在可用计算机上安装存储提供程序。
有关配置存储的详细信息,请参阅 Microsoft TechNet 库中的 VMMhttp://go.microsoft.com/fwlink/?LinkID=212013 中的配置存储。http://go.microsoft.com/fwlink/?LinkID=212013
示例
示例 1:按其名称获取存储阵列
PS C:\> Get-SCStorageArray -Name "SANArray"
此命令获取名为 SANArray 的存储数组。
参数
-All
指示此 cmdlet 获取与父对象无关的所有从属对象。
例如,该命令 Get-SCVirtualDiskDrive -All
获取所有虚拟磁盘驱动器对象,而不考虑每个虚拟磁盘驱动器对象关联的虚拟机对象或模板对象。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectedToAllHost
指示存储阵列已连接到所有主机。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FibreChannelOnly
指示仅返回光纤通道数组。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HyperConvergedHostCluster
Type: | HostCluster |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ID
指定此 cmdlet 获取的存储数组的唯一 ID 标识符。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-iSCSIOnly
指示只返回 iSCSI 数组。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定此 cmdlet 获取的存储数组的名称。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SASOnly
指示仅返回共享访问存储 (SAS) 存储阵列。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileServerNode
指定存储文件服务器节点对象的数组。
Type: | StorageFileServerNode[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
指定一个虚拟机对象数组。
Type: | VM[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMHost
指定一个虚拟主机对象。 VMM 支持 Hyper-V 主机、VMware ESX 主机和 Citrix XenServer 主机。 有关每种主机类型的详细信息,请参阅 Add-SCVMHost cmdlet。
Type: | Host[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输出
StorageArray
此 cmdlet 返回 StorageArray 对象。