Mount-SCStorageDisk
Koppelt een opslagschijf.
Syntax
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-StorageLogicalUnit <StorageLogicalUnit>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
-DiskId <Guid>
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
-DiskSignature <String>
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-FullFormat]
[-ForceFormat]
[-MasterBootRecord]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-FullFormat]
[-ForceFormat]
[-GuidPartitionTable]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-QuickFormat]
[-ForceFormat]
[-MasterBootRecord]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageDisk <StorageDisk>
[-QuickFormat]
[-ForceFormat]
[-GuidPartitionTable]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
[-JobGroup <Guid>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageLogicalUnit <StorageLogicalUnit>
[-FullFormat]
[-QuickFormat]
[-ForceFormat]
[-MasterBootRecord]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
-JobGroup <Guid>
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Mount-SCStorageDisk
-StorageLogicalUnit <StorageLogicalUnit>
[-FullFormat]
[-QuickFormat]
[-ForceFormat]
[-GuidPartitionTable]
[-DesiredUnitAllocationSizeBytes <UInt32>]
[-MountPoint <String>]
[-CreateClusterSharedVolume]
[-DeleteClusterSharedVolume]
[-VolumeLabel <String>]
-JobGroup <Guid>
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
De cmdlet Mount-SCStorageDisk koppelt een opslagschijf.
Voorbeelden
Voorbeeld 1: Een nieuwe schijf opmaken
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
Met de eerste opdracht wordt een GUID gegenereerd en wordt de GUID vervolgens opgeslagen als een tekenreeks in de $JobGroup variabele. Volgende opdrachten met deze GUID worden verzameld in één taakgroep.
Met de tweede opdracht wordt het hostobject met de naam VMHost01 opgehaald met behulp van de Cmdlet Get-SCVMHost . Met de opdracht wordt dat object opgeslagen in de $VMHost variabele.
Met de derde opdracht wordt het logische eenheidsobject voor opslag met de naam LUN01 opgehaald met behulp van de cmdlet Get-SCStorageLogicalUnit . Met de opdracht wordt dat object opgeslagen in de $LU variabele.
Met de vierde opdracht wordt LUN01 geregistreerd bij VMHost01 met behulp van de cmdlet Register-SCStorageLogicalUnit . Met deze opdracht geeft u de parameter JobGroup op. Daarom wordt deze opdracht pas uitgevoerd vóór de laatste opdracht die de taakgroep met dezelfde GUID bevat.
Met de vijfde opdracht wordt de logische opslageenheid in $LU op VMHost01 gekoppeld. De opdracht voert een snelle indeling uit op het volume, labelt het volume Nieuw volume en stelt het koppelpunt in op S:. Met deze opdracht geeft u JobGroup op.
Met de laatste opdracht wordt VMHost01 bijgewerkt met de gekoppelde opslagschijf. Met deze opdracht geeft u de JobGroup-parameter op om LUN01 te registreren en te koppelen voordat u de Set-SCVMHost-cmdlet uitvoert.
Parameters
-CreateClusterSharedVolume
Geeft aan dat de cmdlet een gedeeld clustervolume maakt.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeleteClusterSharedVolume
Geeft aan dat de cmdlet een gedeeld clustervolume verwijdert.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DesiredUnitAllocationSizeBytes
Hiermee geeft u de grootte, in bytes, van de standaardtoewijzing van een volume.
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskId
Hiermee geeft u de id van een schijfobject.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskSignature
Hiermee geeft u de handtekening van een schijfobject.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceFormat
Dwingt de opmaak van de opslagschijf af, zelfs als er al volumes aanwezig zijn.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FullFormat
Geeft aan dat er een volledige indeling van de partitie wordt uitgevoerd.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GuidPartitionTable
Geeft aan dat de opslagschijf een GUID-partitietabelschijf is.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
Hiermee geeft u een id op voor een reeks opdrachten die worden uitgevoerd als een set vlak voor de laatste opdracht die dezelfde taakgroep-id bevat.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Hiermee geeft u een variabele op waarin de voortgang van de taak wordt bijgehouden en opgeslagen.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MasterBootRecord
Geeft aan dat de opslagschijf een schijf met een hoofdstartrecord is.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MountPoint
Hiermee geeft u een koppelpuntlocatie op.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Hiermee geeft u de id op van de tip Prestatie- en resourceoptimalisatie (PRO-tip) die deze actie heeft geactiveerd. Met deze parameter kunt u PRO-tips controleren.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-QuickFormat
Geeft aan dat er een snelle indeling van de partitie wordt uitgevoerd.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Geeft aan dat de taak asynchroon wordt uitgevoerd, zodat het besturingselement onmiddellijk terugkeert naar de opdrachtshell.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
Hiermee geeft u een opslagclassificatieobject op.
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageDisk
Hiermee geeft u een schijf op een Hyper-V- of VMware ESX-host die een virtuele machine op die host kan gebruiken in plaats van een virtuele harde schijf te gebruiken. Deze schijf wordt een passthrough-schijf genoemd. De bijbehorende VMware-term is Raw Device Mapping (RDM). De hostschijf is een lokale harde schijf of een logische eenheid in een San (Storage Area Network). Met VMM kan de virtuele machine het bestandssysteem van de host omzeilen en rechtstreeks toegang krijgen tot de passthrough-schijf. Hyper-V-hosts ondersteunen passthrough-schijven en conversie van een passthrough-schijf naar een VHD. VMware ESX-hosts bieden ondersteuning voor passthrough-schijven, maar niet voor schijfconversie. Citrix XenServer-hosts bieden geen ondersteuning voor passthrough-schijven.
Type: | StorageDisk |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageLogicalUnit
Hiermee geeft u een logische opslageenheidobject op.
Type: | StorageLogicalUnit |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VolumeLabel
Hiermee geeft u een label voor een schijfvolume.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Notities
- Voor deze cmdlet is een VMM-opslagschijfobject vereist, dat kan worden opgehaald met behulp van de Cmdlet Get-SCStorageDisk .