Trying to make a tiered virtual disk, but it keeps failing. two-way mirror, fixed provisioning, full size of both tiers. In gui it fail with this message:
While in Powershell with this script:
I get this output:
Any ideas what this might be?
While in Powershell with this script:
Code:
#Variables
$StoragePoolName = "General Storage"
$TieredSpaceName = "General Tier"
$ResiliencySetting = "Mirror"
$SSDTierName = "SSDTier"
$HDDTierName = "HDDTier"
#List all disks that can be pooled and output in table format (format-table)
Get-PhysicalDisk -CanPool $True | ft FriendlyName,OperationalStatus,Size,MediaType
#Store all physical disks that can be pooled into a variable, $PhysicalDisks
$PhysicalDisks = (Get-PhysicalDisk -CanPool $True | Where MediaType -NE UnSpecified)
#Create a new Storage Pool using the disks in variable $PhysicalDisks with a name of My Storage Pool
$SubSysName = (Get-StorageSubSystem).FriendlyName
New-StoragePool -PhysicalDisks $PhysicalDisks -StorageSubSystemFriendlyName $SubSysName -FriendlyName $StoragePoolName
#View the disks in the Storage Pool just created
Get-StoragePool -FriendlyName $StoragePoolName | Get-PhysicalDisk | Select FriendlyName, MediaType
#Create two tiers in the Storage Pool created. One for SSD disks and one for HDD disks
$SSDTier = New-StorageTier -StoragePoolFriendlyName $StoragePoolName -FriendlyName $SSDTierName -MediaType SSD
$HDDTier = New-StorageTier -StoragePoolFriendlyName $StoragePoolName -FriendlyName $HDDTierName -MediaType HDD
#Identify tier sizes within this storage pool
$SSDTierSizes = (Get-StorageTierSupportedSize -FriendlyName $SSDTierName -ResiliencySettingName $ResiliencySetting).TierSizeMax
$HDDTierSizes = (Get-StorageTierSupportedSize -FriendlyName $HDDTierName -ResiliencySettingName $ResiliencySetting).TierSizeMax
#Create a new virtual disk in the pool with a name of TieredSpace using the SSD and HDD tier
New-VirtualDisk -StoragePoolFriendlyName $StoragePoolName -FriendlyName $TieredSpaceName -StorageTiers $SSDTier, $HDDTier -StorageTierSizes $SSDTierSizes, $HDDTierSizes -ResiliencySettingName $ResiliencySetting -AutoWriteCacheSize -NumberOfColumns 10 -FaultDomainAwareness PhysicalDisk -NumberOfDataCopies 2
#Alternatively try adjusting the sizes manually:
#New-VirtualDisk -StoragePoolFriendlyName $StoragePoolName -FriendlyName $TieredSpaceName -StorageTiers @($SSDTier,$HDDTier) -StorageTierSizes @(228GB,1.816TB) -ResiliencySettingName $ResiliencySetting -AutoWriteCacheSize -AutoNumberOfColumns
Code:
PS C:\Users\administrator.MRMRRUBIC> C:\Users\administrator.MRMRRUBIC\Documents\CreateTieredStorage.ps1
FriendlyName OperationalStatus Size MediaType
------------ ----------------- ---- ---------
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
ATA HGST HUS724030AL OK 3000592982016 HDD
ATA Hitachi HUA72303 OK 3000592982016 HDD
SEAGATE ST2000NM NEO2000 OK 2000398934016 HDD
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
ATA Hitachi HUA72303 OK 3000592982016 HDD
HITACHI HUSRL401 NEO100 OK 100030242816 SSD
ATA Hitachi HUA72303 OK 3000592982016 HDD
FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly Size AllocatedSize
------------ ----------------- ------------ ------------ ---------- ---- -------------
General Storage OK Healthy False False 13.28 TB 2.75 GB
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : ATA HGST HUS724030AL
MediaType : HDD
FriendlyName : ATA Hitachi HUA72303
MediaType : HDD
FriendlyName : SEAGATE ST2000NM NEO2000
MediaType : HDD
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : ATA Hitachi HUA72303
MediaType : HDD
FriendlyName : HITACHI HUSRL401 NEO100
MediaType : SSD
FriendlyName : ATA Hitachi HUA72303
MediaType : HDD
New-VirtualDisk : Not Supported
Extended information:
The storage pool does not have sufficient eligible resources for the creation of the specified virtual disk.
Recommended Actions:
- Choose a combination of FaultDomainAwareness and NumberOfDataCopies (or PhysicalDiskRedundancy) supported by the storage pool.
- Choose a value for NumberOfColumns that is less than or equal to the number of physical disks in the storage fault domain selected for the virtual disk.
Activity ID: {e145f4ca-34d1-48f1-ae83-279c2a325b87}
At C:\Users\administrator.MRMRRUBIC\Documents\CreateTieredStorage.ps1:30 char:1
+ New-VirtualDisk -StoragePoolFriendlyName $StoragePoolName -FriendlyNa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (StorageWMI:ROOT/Microsoft/...SFT_StoragePool) [New-VirtualDisk], CimException
+ FullyQualifiedErrorId : StorageWMI 1,New-VirtualDisk
PS C:\Users\administrator.MRMRRUBIC>