The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Archive for the ‘MVA’ Category

Microsoft Virtual Academy (MVA) – Storage Spaces Deep Dive script are now published

Posted by Mikael Nystrom on February 27, 2016

In springtime 2015, me, Markus Lassfolk and Ola Skog did an MVA recording about Storage Spaces, during that recording we did use some scripts and someone said “Please, could you publish them?” (more then one time) and here they are…

https://github.com/DeploymentBunny/DemoScript/tree/master/2015-05-08%20-%20Storage%20Spaces%20MVA

I have also added the main script here for indexing and easy “copy-paste” operations…


1..12 | % {New-VHD -Path E:\demo\disk$_.VHDX -Dynamic –SizeBytes 400GB}
13..48 | % {New-VHD -Path E:\demo\disk$_.VHDX -Dynamic –SizeBytes 2TB}

$VHDs = Get-ChildItem E:\Demo
foreach ($VHD in $VHDs)
{
    Mount-VHD -Path $VHD.FullName
}

Get-PhysicalDisk -CanPool $true
Get-StorageSubSystem -FriendlyName *Spaces*

$StorageSubSystem = Get-StorageSubSystem -FriendlyName *Spaces*
$PhysicalDisk = Get-PhysicalDisk -CanPool $true
$PoolName = "stpool01"

New-StoragePool -FriendlyName $PoolName -StorageSubSystemFriendlyName $StorageSubSystem.FriendlyName -PhysicalDisks $PhysicalDisk

Get-StoragePool -FriendlyName $PoolName | Get-PhysicalDisk | Where-Object -Property Size -EQ -Value 428691423232 | Set-PhysicalDisk -MediaType SSD #For Demo Only 
Get-StoragePool -FriendlyName $PoolName | Get-PhysicalDisk | Where-Object -Property Size -NE -Value 428691423232 | Set-PhysicalDisk -MediaType HDD #For Demo Only 

Get-StoragePool -FriendlyName $PoolName | Get-PhysicalDisk | Where-Object -Property MediaType -EQ -Value SSD
Get-StoragePool -FriendlyName $PoolName | Get-PhysicalDisk | Where-Object -Property MediaType -EQ -Value HDD

$SSDTierName = "SSDTier"
$HDDTierName = "HDDTier"

$SSDTier = Get-StoragePool -FriendlyName $PoolName | New-StorageTier -MediaType SSD -FriendlyName $SSDTierName
$HDDTier = Get-StoragePool -FriendlyName $PoolName | New-StorageTier -MediaType HDD -FriendlyName $HDDTierName

Set-StoragePool -FriendlyName $PoolName -RetireMissingPhysicalDisks Always -RepairPolicy Parallel
#Preserve 1 HDD plus 8 GB and 1 SSD plus 8 GB per enclosure for the automatic repair proccess to work correctly
#Use at least one fewer columns then maximum!

Get-StoragePool -FriendlyName $PoolName | Select-Object RetireMissingPhysicalDisks,RepairPolicy

# 2 Tier 2 way Mirror with 6 columns
$vDisk01Name = "vDisk01"
$vDisk01 = New-VirtualDisk  `
-FriendlyName $vDisk01Name  `
-ResiliencySettingName Mirror  `
-NumberOfDataCopies 2  `
-NumberOfColumns 5  `
-StoragePoolFriendlyName $PoolName  `
-StorageTiers $SSDTier, $HDDTier  `
-StorageTierSizes 8gb, 32gb

Get-VirtualDisk -FriendlyName $vDisk01Name | Format-List FriendlyName,OperationalStatus,HealthStatus,ProvisioningType,ParityLayout,WriteCacheSize,AllocatedSize,Interleave,IsEnclosureAware,NumberOfAvailableCopies,NumberOfColumns,PhysicalDiskRedundancy,Size

# 2 Tier 3 way Mirror with 4 columns
$vDisk02Name = "vDisk02"
$vDisk02 = New-VirtualDisk  `
-FriendlyName $vDisk02Name  `
-ResiliencySettingName Mirror  `
-NumberOfDataCopies 3  `
-NumberOfColumns 3  `
-StoragePoolFriendlyName $PoolName  `
-StorageTiers $SSDTier, $HDDTier  `
-StorageTierSizes 8gb, 32gb

Get-VirtualDisk -FriendlyName $vDisk02Name | Format-List FriendlyName,OperationalStatus,HealthStatus,ProvisioningType,ParityLayout,WriteCacheSize,AllocatedSize,Interleave,IsEnclosureAware,NumberOfAvailableCopies,NumberOfColumns,PhysicalDiskRedundancy,Size

# Parity with 17 col
$vDisk03Name = "vDisk03"
$vDisk03 = New-VirtualDisk  `
-FriendlyName $vDisk03Name  `
-ResiliencySettingName Parity  `
-StoragePoolFriendlyName $PoolName  `
-Size 100GB  `
-PhysicalDiskRedundancy 2

Get-VirtualDisk -FriendlyName $vDisk03Name | Format-List FriendlyName,OperationalStatus,HealthStatus,ProvisioningType,ParityLayout,WriteCacheSize,AllocatedSize,Interleave,IsEnclosureAware,NumberOfAvailableCopies,NumberOfColumns,PhysicalDiskRedundancy,Size



You can also look at the original post about the MVA session itself here:

https://deploymentbunny.com/2015/05/08/microsoft-virtual-academy-mva-storage-spaces-deep-dive/

Posted in MVA, Session, Storage Spaces | Tagged: , , | Leave a Comment »

Microsoft Virtual Academy (MVA) – Storage Spaces Deep Dive

Posted by Mikael Nystrom on May 8, 2015

I have been working with Windows Server Storage Spaces since it was invented. It is great technology and I love it! Recently I was asked to be a part a MVA session on Storage Spaces and I just could not resist. My idea was to do something that is based on our real experience building storage spaces solutions.

So, together with Markus Lassfolk and Ola Skoog we did a Microsoft Virtual Academy class with four parts,

  • Storage Spaces: Architecture

  • Storage Spaces: Design

  • Storage Spaces: Performance

  • Storage Spaces: Lessons From The Field

If you are into Storage Spaces and you would like to know from experienced MVP’s building Storage Spaces, this is for you, Enjoy!

http://www.microsoftvirtualacademy.com/training-courses/storage-spaces-deep-dive

image

Posted in MVA, Storage Spaces, Training, Windows Server 2012 R2 | Tagged: , , , | 4 Comments »