The Deployment Bunny

OS Deployment, Virtualization, Microsoft based Infrastructure…

  • Archives

  • Meta

Archive for the ‘Storage Spaces’ 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 »

Nice to Know – MPIO “may” need to be configured correctly to increase performance when using Storage Spaces in Windows Server 2012 R2

Posted by Mikael Nystrom on May 19, 2014

This happens currently once a week, someone calls me and say “I’m using Storage Spaces with or without Scale Out file server and the performance is #”"!&%%&##”

There is many reasons but a very common is that MPIO be default is set to Round Robin and that is worse then bad.

Change the setting for all disks and for new disks as well by running the following command from en elevated PowerShell prompt:

Set-MSDSMGlobalDefaultLoadBalancePolicy LB

Read more here: http://support.microsoft.com/kb/2744261

Also read the blog from Jose:

http://blogs.technet.com/b/josebda/archive/2013/04/17/file-server-tip-how-to-rebalance-a-scale-out-file-server-using-a-little-powershell.aspx

http://blogs.technet.com/b/josebda/archive/2014/04/01/step-by-step-for-mirrored-storage-spaces-resiliency-using-powershell.aspx

http://blogs.technet.com/b/josebda/archive/2013/10/30/automatic-smb-scale-out-rebalancing-in-windows-server-2012-r2.aspx

Posted in Storage Spaces, Windows Server 2012 R2 | Tagged: | Leave a Comment »

Nice to Know–Upgrading Storage Spaces 2012 to 2012 R2 is easy (and works)

Posted by Mikael Nystrom on December 26, 2013

Yes, it is doable and easy. I’m the process of moving some old, legacy 2012 systems over to new 2012 R2 systems and one of the items was my SAS based Storage Space.

Basically the “only” thing I did was install the new Servers, turned the old server off, moved the SAS cables and opened the Server Manager, ad there it is (in read only mode of course). After setting in read-write mode, you can then easily “upgrade” (Note:You cannot downgrade…)

image

/mike

Posted in Storage Spaces, Windows Server 2012 R2 | Tagged: | 1 Comment »