Mount-SCStorageDisk
Mount-SCStorageDisk
Mounts a storage disk.
構文
Parameter Set: Default
Mount-SCStorageDisk -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-StorageLogicalUnit <StorageLogicalUnit> ] [ <CommonParameters>]
Parameter Set: ClusterFormatGPT
Mount-SCStorageDisk -GuidPartitionTable -JobGroup <Guid]> -StorageLogicalUnit <StorageLogicalUnit> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-FullFormat] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-QuickFormat] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
Parameter Set: ClusterFormatMBR
Mount-SCStorageDisk -JobGroup <Guid]> -MasterBootRecord -StorageLogicalUnit <StorageLogicalUnit> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-FullFormat] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-QuickFormat] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
Parameter Set: ForceNewDiskIdGuid
Mount-SCStorageDisk -DiskId <Guid]> -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [ <CommonParameters>]
Parameter Set: ForceNewDiskIdSignature
Mount-SCStorageDisk -DiskSignature <String> -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [ <CommonParameters>]
Parameter Set: FullFormatGPT
Mount-SCStorageDisk -FullFormat -GuidPartitionTable -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
Parameter Set: FullFormatMBR
Mount-SCStorageDisk -FullFormat -MasterBootRecord -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
Parameter Set: QuickFormatGPT
Mount-SCStorageDisk -GuidPartitionTable -QuickFormat -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
Parameter Set: QuickFormatMBR
Mount-SCStorageDisk -MasterBootRecord -QuickFormat -StorageDisk <StorageDisk> [-CreateClusterSharedVolume] [-DeleteClusterSharedVolume] [-DesiredUnitAllocationSizeBytes <UInt32> ] [-ForceFormat] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-MountPoint <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [-VolumeLabel <String> ] [ <CommonParameters>]
詳細説明
The Mount-SCStorageDisk cmdlet mounts a storage disk.
パラメーター
-CreateClusterSharedVolume
Indicates that the cmdlet creates a Cluster Shared Volume.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DeleteClusterSharedVolume
Indicates that the cmdlet deletes a Cluster Shared Volume.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DesiredUnitAllocationSizeBytes<UInt32>
Specifies, in bytes, the default allocation size of a volume.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DiskId<Guid]>
Specifies the ID of a disk object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DiskSignature<String>
Specifies the signature of a disk object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ForceFormat
Forces the formatting of the storage disk even if volumes are already present.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-FullFormat
Indicates that a full format of the partition is performed.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-GuidPartitionTable
Indicates that the storage disk is a GUID partition table disk.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobGroup<Guid]>
Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-MasterBootRecord
Indicates that the storage disk is a master boot record disk.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-MountPoint<String>
Specifies a mount point location.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROTipID<Guid]>
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-QuickFormat
Indicates that a quick format of the partition is performed.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StorageClassification<StorageClassification>
Specifies a storage classification object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StorageDisk<StorageDisk>
Specifies a disk on a Hyper-V or VMware ESX host that a virtual machine on that host can use instead of using a virtual hard disk. This disk is referred to as a pass-through disk. The corresponding VMware term is Raw Device Mapping, or RDM. The host disk is either a local hard disk or a logical unit on a Storage Area Network (SAN). VMM lets the virtual machine bypass the host file system and access the pass-through disk directly. The types of host and whether each has pass-through disk support are:
Hyper-V: Supports pass-through disks and supports converting a pass-through disk to a VHD.
VMware ESX: Supports pass-through disks (RDP), but not disk conversion.
Citrix XenServer: Does not support pass-through disks.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-StorageLogicalUnit<StorageLogicalUnit>
Specifies a storage logical unit object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VolumeLabel<String>
Specifies a label for a disk volume.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
注
- Requires a VMM storage disk object, which can be retrieved using the Get-SCStorageDisk cmdlet.
例
Example 1: Format a new disk
The first command generates a GUID, and then stores the GUID string in variable $JobGroup. Subsequent commands that include this GUID are collected into a single job group.
The second command gets the host object named VMHost01, and then stores the object in the $VMHost variable.
The third command gets the storage logical unit object named LUN01, and then stores the object in the $LU variable.
The fourth command registers LUN01 with VMHost01. Using the JobGroup parameter specifies that this command does not run until just before the final command that includes the JobGroup with the same GUID.
The fifth command mounts LUN01 on VMHost01, performs a quick format on the volume, labels the volume New Volume, and then sets the mount point to S:\. Using the JobGroup parameter specifies that this command does not run until just before the final command that includes the JobGroup with the same GUID.
The last command updates VMHost01 with the mounted storage disk. This command uses the JobGroup parameter to register and mount LUN01 before running Set-SCVMHost.
PS C:\> $JobGroup = [Guid]::NewGuid().ToString()
PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> $LU = Get-SCStorageLogicalUnit -Name "LUN01"
PS C:\> Register-SCStorageLogicalUnit -StorageLogicalUnit $LU -VMHost $VMHost -JobGroup $JobGroup
PS C:\> Mount-SCStorageDisk -QuickFormat -MasterBootRecord -VolumeLabel "New Volume" -StorageLogicalUnit $LU -MountPoint "S:\" -JobGroup $JobGroup
PS C:\> Set-SCVMHost -VMHost $VMHost -JobGroup $JobGroup