Anda di halaman 1dari 10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

Server & Tools Blogs > Server & Management Blogs > Ask Premier Field Engineering PFE
Platforms
Sign in

Ask Premier Field Engineering PFE Platforms


Recovering from Failed Disks in Tiered Storage Spaces on
Windows 10 via PowerShell

December 21, 2015 by Charity Shelbourne // 1 Comments


0

IhaveaWindows10workstaonathomewhichhasaeredstoragespacewith2SSDand6HDD.Ihavea
mirroredvirtualdiskusingbothersandIusethisforregularstorage,lesharing,andrunningmyvirtual
machines.
Aeredstoragespaceisonethatmixesa"fast"setofSSDanda"slow"setofspinningdiskstocreatea
storagespacethatisbothbig_and_fast.IfyouareunfamiliarwithTieredStorageSpaces,herearea
coupleofgreatblogpostshereandhereonthetopic.
IhadoriginallycreatedthisstoragespacewhenIwasrunningWindows2012R2withtheGUI,buteven
thoughthereisnoGUI(anditsnotsupported)theeredstoragespaceworkslikeachamponWindows
10.WhileeredstoragespacesarenotsupportedonWindows10(seriously,eredspacesareintendedfor
serveronly)allthecommandsbelowarethesameacrosstheclientandserverOS.
Duetosomeconstraintsduringtheinialbuildprocessendedupwithamismatched(sizewise)SSDsinthe
faster.IfoundanotherofmysmallSSDsonsaleandIwantedtorecovermybigSSDforrepurposing.
Thetaskinfrontofmewassimple,swapthedisks.IwasoutofSATAportsonmysystemsoImadethe
foolhardymoveofsimplyunpluggingtheSSDtobeReplacedandplugginginthenewSSD.Naturallythis
causedmymirroredstoragespacetogointoadegradedstate.
Note: The MSFT documentation on storage spaces is _very_ clear. DONT DO THIS IF AT ALL POSSIBLE.
We really, really, really want to have the new disk in place before removing the old one.

AsIstarteddoingsomeresearchonhowtoxmymess,Ifoundsomegooddocumentsonhowtorepaira
eredstoragespaceusingtheGUI.OnlyproblemwasthatIhadnoGUItodothisasIamrunningaclient
OSnow.IcouldhaverebuiltmymachineasaserverOSandxedthespacethatway,butIthoughtIdsee
whatPowerShellcoulddo.
ItturnsoutthatWindows10PowerShellincludesallthestoragespacecommandsneededtocreate,
https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

1/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

modify,andmanageaeredstoragespace.Thiswasgoodnews,exceptthattherewasliletono
documentaonon_how_toactuallydotherepair.IniallyItriedaddingthedrivetothepoolasnormal
withtheaddphysicadiskcommand.

PS C:\WINDOWS\system32> getvirtualdisk

FriendlyName ResiliencySettingName OperationalStatus HealthStatus IsManualAttach



NTFS

Mirror

Degraded

Warning

Size

False

5.68 TB

PS C:\WINDOWS\system32> GetPhysicalDisk

FriendlyName

SerialNumber

ATA Samsung SSD 840

CanPool OperationalStatus HealthStatus Usage

S1DBNSAF925671Y True

OK

Healthy

AutoSelect 232.89 GB

Disk1

WDWMAZA3795023 False OK

Healthy

AutoSelect 1.82 TB

Disk2

WDWCAZA5713932 False OK

Healthy

AutoSelect 1.82 TB

SSD3

Size

False Lost Communication Warning

AutoSelect 446.5 GB

Disk3

WDWCAVY5436882 False OK

Healthy

AutoSelect 1.82 TB

Disk4

WDWCAZA5724921 False OK

Healthy

AutoSelect 1.82 TB

Disk5

WDWCAVY5805593 False OK

Healthy

AutoSelect 1.82 TB

Disk6

WDWMAZA3791851 False OK

Healthy

AutoSelect 1.82 TB

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

2/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

SSD2

S1DBNSCF810110W False OK

Healthy

Samsung SSD 840 EVO 250GB S1DBNSAF925533D False OK

AutoSelect 232.25 GB
Healthy

AutoSelect 232.89 GB

PS C:\WINDOWS\system32> $SSD3 = GetPhysicalDisk SerialNumber S1DBNSAF925671Y


PS C:\WINDOWS\system32> AddPhysicalDisk StoragePoolFriendlyName pool1 Usage HotSpare PhysicalDisks
$SSD3
PS C:\WINDOWS\system32> RepairVirtualDisk FriendlyName ntfs
PS C:\WINDOWS\system32> GetStorageJob

Name ElapsedTime JobState PercentComplete IsBackgroundTask



Repair 00:00:00

Completed 100

False

Ithoughtthatitwasoddthattherepairjobnishedsoquickly.Sureenoughthevirtualdiskwassllin
degradedstate.

PS C:\WINDOWS\system32> getvirtualdisk

FriendlyName ResiliencySettingName OperationalStatus HealthStatus IsManualAttach



NTFS

Mirror

Degraded

Warning

False

Size

5.68 TB

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

3/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

Itriedtothinkaboutwhatmighthavegonewrongwiththerepairandstartedlookingatthedetailsofthe
physicaldiskwhenInocedthatthemediatypeofmySSDwaslistedasunspecied
PS C:\WINDOWS\system32> GetPhysicalDisk SerialNumber S1DBNSAF925671Y|fl
ObjectId

{1}\\NOTJJSB\root/Microsoft/Windows/Storage/Providers_v2\SPACES_PhysicalDisk.ObjectI
d="{4f1a09535b0d11e495d2806e6f6e6963}:PD:{47abc017986011e5963d
00224d9ad22b}"
PassThroughClass

PassThroughIds

PassThroughNamespace

PassThroughServer

UniqueId

: 0050430000000003

Description

FriendlyName
HealthStatus
Manufacturer
Model

: ATA Samsung SSD 840


: Healthy
: ATA
: Samsung SSD 840

OperationalStatus

: OK

PhysicalLocation

SerialNumber

: S1DBNSAF925671Y

AllocatedSize
BusType
CannotPoolReason

: 268435456
: RAID
: In a Pool

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

4/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

CanPool

: False

DeviceId

:8

EnclosureNumber

FirmwareVersion

: EXT0

IsIndicationEnabled

IsPartial

: False

LogicalSectorSize
MediaType

: 512
: Unspecified

OtherCannotPoolReasonDescription :
PartNumber

PhysicalSectorSize
Size
SlotNumber

: 512
: 249376538624
:

SoftwareVersion

SpindleSpeed

: Unknown

SupportedUsages
UniqueIdFormat
Usage
PSComputerName
ClassName

: {AutoSelect, ManualSelect, Hot Spare, Retired}


: EUI64
: Hot Spare
:
: MSFT_PhysicalDisk

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

5/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

ThismeansthatthestoragepoolhadnoideathiswasanSSD(eventhoughitwasinthename)andsoit
didntknowtouseittoreplacethefaileddriveintheSSD_Tier.EasyPeasyIheardmyselfmuerandI
manuallysetthemediatypetoSSDandretriedtherepairjob.

PS C:\WINDOWS\system32> GetPhysicalDisk SerialNumber S1DBNSAF925671Y|SetPhysicalDisk MediaType


SSD
PS C:\WINDOWS\system32> RepairVirtualDisk FriendlyName ntfs
PS C:\WINDOWS\system32> GetStorageJob

Name ElapsedTime JobState PercentComplete IsBackgroundTask



Repair 00:00:00

Completed 100

False

PS C:\WINDOWS\system32> getvirtualdisk

FriendlyName ResiliencySettingName OperationalStatus HealthStatus IsManualAttach



NTFS

Mirror

Degraded

Warning

False

Size

5.68 TB

BLERG!!Sllnojoyontherepairjob.IwasscratchingmyheadandsearchingaroundwhenIcameacrossa
blogpostbyMVPCharbelNemnomabouthowtoreplaceafaultydiskinatwowayeredstoragespace.
http://charbelnemnom.com/2014/09/stepbystephowtoreplacefaultydiskintwoway
mirroredstoragetieredspacestoragespacesws2012r2/
https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

6/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

IlookedatthecommandsCharbelusedandnocedtheonlydierencebetweenwhathehaddoneandmy
failedaemptwasIspeciedhotspareasmyusagetype.Iippedtheusagetypetoautoselectandre
rantherepairjob.

PS C:\WINDOWS\system32> GetPhysicalDisk SerialNumber S1DBNSAF925671Y|SetPhysicalDisk Usage


AutoSelect
PS C:\WINDOWS\system32> RepairVirtualDisk FriendlyName ntfs AsJob

Id

Name

PSJobTypeName State

183

CimJob90

CimJob

HasMoreData

Location

True

NOTJJSB

Running

Command

RepairVirtualDisk Fr

Andsureenough,itwasWORKING!
PS C:\WINDOWS\system32> GetStorageJob

Name

Repair

ElapsedTime JobState PercentComplete IsBackgroundTask



00:10:48

Running 65

Regeneration 00:10:49

Running 66

False
True

Aerabout30minutesofrepair(boyareSSDs_fast_),IremovedthefailedSSDandhadahealthyvirtual
diskagain.J

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

7/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

PS C:\WINDOWS\system32> $BadSSD = GetPhysicalDisk FriendlyName SSD3


PS C:\WINDOWS\system32> RemovePhysicalDisk StoragePoolFriendlyName pool1 PhysicalDisks $BadSSD

Ilearnedseverallessonswiththisexercise.
1. Dont make the choice of just unplugging an existing drive and swapping in a new one if possible. The
MSFT documents are very clear on this point. Add the new drive first if possible
2. If I dont have an existing hotspare disk when a drive actually does go bad, I have to add that disk as
autoselect
3. Try to read the official MSFT documentation better the need to use autoselect is actually spelled out
here. J

Thanksforreadingandenjoyeredstoragespaces!
JJStreicherBremer

Search MSDN with Bing


Search this blog

Search all blogs

Share This Post


https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

8/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

Tags

Active Directory ADFS Announcements Azure Best Practices Career Charity


Shelbourne David Gregory deployment Disaster Recovery DNS Doug Gabbard Doug Symalla Failover Cluster
Greg Jaworski Group Policy Hyperv Joao Botto Lab Lakshman Hariharan Mailbag

Mark

Morowczynski martin lucas Michael HIldebrand Networking Performance


PowerShell SBSL Security Server 2003 Server 2008 Server 2008 R2 Server

2012 Server 2012 R2 Tom Moser troubleshooting Upgrade Windows


Windows 7 Windows 8 Windows 8.1 Windows 10 windows server 2012 r2 WPA Xperf
Recent Posts
Windows 7 SP1 and Server 2008 R2 SP1 convenience rollup now available at a download location near you!
KB3125574 May 20, 2016
Monitoring Service Accounts with System Center Operations Manager May 16, 2016
Preparing for DAC May 9, 2016
Installing Bash on Ubuntu on Windows 10 Insider Preview May 2, 2016

Live Now on Server & Tools Blogs


New: ASP.NET Session State Provider for SQL Server InMemory OLTP
Getting Started with Power Query Part I
Introducing Microsoft Azure StorSimple

Archives
May 2016 4
April 2016 4
March 2016 5
February 2016 5
January 2016 4
All of 2016 22
All of 2015 63
All of 2014 66
All of 2013 90
https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

9/10

5/27/2016

RecoveringfromFailedDisksinTieredStorageSpacesonWindows10viaPowerShell|AskPremierFieldEngineering(PFE)Platforms

All of 2012 64
All of 2011 4

Tags

JJ StreicherBremer

PowerShell

Join the conversation


Raphal Lienhard

storage pool

Storage Spaces

Windows 10

Add Comment
5 months ago

Hello,
Several months ago, I wondered if Tiered Storage was possible on a Windows 10 computer and came to the
conclusion it was not. Now I will give it a try!
Thanks for the post.
Cheers,
Raphael

2016 Microsoft Corporation.


Terms of Use Trademarks Privacy & Cookies

https://blogs.technet.microsoft.com/askpfeplat/2015/12/21/recoveringfromfaileddisksintieredstoragespacesonwindows10viapowershell/

10/10

Anda mungkin juga menyukai