Get-SCStorageArray
取得儲存體陣列物件。
Syntax
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>]
Description
Get-SCStorageArray Cmdlet 會從 Virtual Machine Manager (VMM) 資料庫取得儲存體陣列物件。
您必須先在可用的電腦上安裝存放裝置提供者,才能探索儲存體資源。
如需設定儲存體的詳細資訊,請參閱 在 Microsoft TechNet 程式庫中 http://go.microsoft.com/fwlink/?LinkID=212013 設定 VMM 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 取得之儲存體陣列的唯一識別碼識別碼。
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 物件。