Created
June 20, 2019 12:07
-
-
Save Kohei-Toyoda/3f699a694c8475a693a7c24079c2cfc8 to your computer and use it in GitHub Desktop.
storagetier.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Disks = Get-PhysicalDisk -CanPool $true | |
$Disks | |
New-StoragePool -FriendlyName TieredStoragePool -PhysicalDisks $Disks -StorageSubSystemUniqueId (Get-StorageSubSystem).UniqueId | |
Get-StoragePool TieredStoragePool | New-StorageTier -FriendlyName SSDtier -MediaType SSD -ResiliencySettingName Mirror | |
Get-StoragePool TieredStoragePool | New-StorageTier -FriendlyName HDDtier -MediaType HDD -ResiliencySettingName Mirror | |
$SSD = Get-StorageTier -FriendlyName SSDtier | |
$HDD = Get-StorageTier -FriendlyName HDDtier | |
Get-StoragePool TieredStoragePool | New-VirtualDisk -FriendlyName VirtualDisk01 -WriteCacheSize 4GB -StorageTiers $SSD,$HDD -StorageTierSizes (8001563222016*0.997),(1024209543168*0.993) | |
Get-StoragePool Pool01 | Get-VirtualDisk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment