New-SCStorageFileShare
Létrehoz egy tárolófájl-megosztást a VMM-ben.
Syntax
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-LocalPath <String>
[-ContinuouslyAvailable <Boolean>]
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-StoragePool <StoragePool>
[-FileSystem <String>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
[-ReadCacheSizeMB <UInt64>]
-JobGroup <Guid>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-StoragePool <StoragePool>
[-FileSystem <String>]
[-ResiliencySettingName <String>]
[-NumberOfColumns <UInt16>]
[-PhysicalDiskRedundancy <UInt16>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
-SizeMB <UInt64>
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-StoragePool <StoragePool>
[-FileSystem <String>]
[-ResiliencySettingName <String>]
[-NumberOfColumns <UInt16>]
[-PhysicalDiskRedundancy <UInt16>]
[-DedupMode <DedupMode>]
[-AllocationUnitSizeKB <UInt32>]
[-StorageClassification <StorageClassification>]
-MediaType <StoragePhysicalDiskMediaType[]>
-StorageTierSizeMB <UInt64[]>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-StorageVolume <StorageVolume>
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
New-SCStorageFileShare
[-VMMServer <ServerConnection>]
-StorageFileServer <StorageFileServer>
-Name <String>
[-Description <String>]
-HostedStoragePool <String>
-SizeMB <UInt64>
[-StorageClassification <StorageClassification>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
A New-SCStorageFileShare parancsmag létrehoz egy tárolófájl-megosztást a Virtual Machine Managerben (VMM).
Példák
1. példa: Tárfájlmegosztás létrehozása
PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> New-SCStorageFileShare -Name "FileShare02" -StorageFileServer $FileServer -LocalPath "C:\FileShare02"
Az első parancs lekéri a FileServer01 nevű tárolófájl-kiszolgáló objektumot, és az objektumot a $FileServer változóban tárolja.
A második parancs létrehoz egy FileShare02 nevű tárfájlmegosztást a FileServer01 kiszolgálón.
2. példa: Rétegzett tárolófájlmegosztás létrehozása megosztott SOFS-en
PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $StoragePool = Get-SCStoragePool -Name "Pool01"
PS C:\> New-SCStorageTier -MediaType "SSD" -SizeMB 1024 -PhysicalDiskRedundancy "2" -ResiliencySettingName "Mirror" -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e6-64a54012dce3"
PS C:\> New-SCStorageTier -MediaType "HDD" -SizeMB 1024 -PhysicalDiskRedundancy "2" -ResiliencySettingName "Parity" -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e6-64a54012dce3"
PS C:\> $StorageClassification = Get-SCStorageClassification -Name "Gold"
PS C:\> $StorageFileShare = New-SCStorageFileShare -StorageFileServer $FileServer -StoragePool $StoragePool -Name "FileShare01" -Description "shared SOSF" -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e664a54012dce3" -FileSystem "CSVFS_ReFS" -StorageClassification $StorageClassification
Az első parancs lekéri a FileServer01 nevű tárolófájl-kiszolgáló objektumot, majd a $FileServer változóban tárolja.
A második parancs lekéri a Pool01 nevű tárolókészletet, majd a $StoragePool változóban tárolja.
A harmadik és negyedik parancs tárolási rétegeket hoz létre.
Az ötödik parancs lekéri a Gold nevű tárolási besorolást, majd a $StorageClassification változóban tárolja.
Az utolsó parancs rétegzett fájlmegosztást hoz létre FileShare01 néven. A parancs az előző parancsokban létrehozott értékeket használja.
3. példa: Rétegzett tárolási fájlmegosztás létrehozása S2D rendszeren
PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $StoragePool = Get-SCStoragePool -Name "S2DPool01"
PS C:\> New-SCStorageTier -StorageTierFriendlyName "Performance" -StorageTierSizeInMB 1024 -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e6-64a54012dce3"
PS C:\> New-SCStorageTier -StorageTierFriendlyName "Capacity" -StorageTierSizeInMB 1024 -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e6-64a54012dce3"
PS C:\> $StorageClassification = Get-SCStorageClassification -Name "Gold"
PS C:\> $StorageFileShare = New-SCStorageFileShare -StorageFileServer $FileServer -StoragePool $StoragePool -Name "FileShare01" -Description "storage spaces direct config" -RunAsynchronously -JobGroup "2e42beba-fb19-4c15-94e664a54012dce3" -FileSystem "CSVFS_ReFS" -StorageClassification $StorageClassification"
Az első parancs lekéri a FileServer01 nevű tárolófájl-kiszolgáló objektumot, majd a $FileServer változóban tárolja.
A második parancs lekéri az S2DPool01 nevű tárolókészletet, majd a $StoragePool változóban tárolja. Ez egy közvetlen tárolóhelyek készlete.
A harmadik és negyedik parancs tárolási rétegeket hoz létre.
Az ötödik parancs lekéri a Gold nevű tárolási besorolást, majd a $StorageClassification változóban tárolja.
Az utolsó parancs rétegzett fájlmegosztást hoz létre FileShare01 néven. A parancs az előző parancsokban létrehozott értékeket használja.
Paraméterek
-AllocationUnitSizeKB
Egy kötet kiosztási méretét adja meg kilobájtban.
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ContinuouslyAvailable
Azt jelzi, hogy a fájlmegosztás folyamatosan elérhető-e.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DedupMode
Deduplikáció alkalmazása a köteten vagy fájlmegosztáson a számítási feladat alapján. A paraméter elfogadható értékei a következők:
- 0 – Letiltva
- 1 – GeneralPurpose
- 2 – Hyper-V
- 3 – Biztonsági mentés
Type: | DedupMode |
Accepted values: | Disabled, GeneralPurpose, HyperV, Backup, NotAvailable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Megadja a tárolási fájlmegosztás leírását.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FileSystem
A tárkötet fájlrendszerét határozza meg. A paraméter elfogadható értékei a következők:
- CSVFS_NTFS
- CSVFS_ReFS
Type: | String |
Accepted values: | CSVFS_NTFS, CSVFS_ReFS |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostedStoragePool
Üzemeltetett tárolókészletet ad meg.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
Megadja az azonos feladatcsoport-azonosítót tartalmazó utolsó parancs futtatása előtt készletként futtatandó parancsok azonosítóját.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Meghatározza, hogy a feladat előrehaladása nyomon legyen követve és tárolva legyen a paraméter által elnevezett változóban.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LocalPath
A tárolási fájlmegosztás helyi elérési útját adja meg.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MediaType
Fizikai lemez típusú tárolóeszköz típusú objektumok tömbjének megadása.
Type: | StoragePhysicalDiskMediaType[] |
Accepted values: | Unknown, HDD, SSD |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Egy VMM-objektum nevét adja meg.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NumberOfColumns
Egy virtuális lemez oszlopainak számát adja meg.
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PhysicalDiskRedundancy
Meghatározza, hogy egy virtuális lemez hány fizikai lemezhibát tud elviselni.
Type: | UInt16 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Megadja a műveletet kiváltó teljesítmény- és erőforrás-optimalizálási tipp (PRO-tipp) azonosítóját. Ez a paraméter lehetővé teszi a PRO-tippek naplózását.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReadCacheSizeMB
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResiliencySettingName
Megadja a virtuális lemez rugalmassági beállítását. A paraméter elfogadható értékei a következők:
- Egyszerű
- Tükrözött
- Parity
Type: | String |
Accepted values: | Simple, Mirror, Parity |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Azt jelzi, hogy a feladat aszinkron módon fut, így a vezérlő azonnal visszatér a parancsfelületre.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SizeMB
Megabájtban adja meg a tárfájlmegosztás méretét.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassification
Tárolóbesorolási objektumot ad meg.
Type: | StorageClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileServer
Egy tárolófájl-kiszolgálóobjektumot határoz meg.
Type: | StorageFileServer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StoragePool
Egy tárolókészlet-objektumot határoz meg.
Type: | StoragePool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageTierSizeMB
A tárolási réteg méretét adja meg MB-ban.
Type: | UInt64[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageVolume
Egy tárolókötet-objektumot határoz meg egy adott virtuálisgép-gazdagépen.
Type: | StorageVolume |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
VMM-kiszolgálóobjektumot ad meg.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |