Deliberations

Thoughts on the problems and solutions I work with every day, along with musings on random topics

NAVIGATION - SEARCH

Win2012 - Storage Spaces: Rebuild == Gone?

No, don't fret - it just LOOKS like they're not there any more. By default Windows Server sets any storage space drives to manual attachment mode rather than auto-attach mode. To fix it we need PowerShell.

First, get the list of Virtual Disks:

PS C:\Windows\system32> Get-VirtualDisk

FriendlyName        ResiliencySettingNa OperationalStatus   HealthStatus        IsManualAttach                     Size
                    me
------------        ------------------- -----------------   ------------        --------------                     ----
ReFS RAID 10        Mirror              OK                  Healthy             True                               4 TB
RAID 5 ReFS         Parity              OK                  Healthy             True                               5 TB

Now, you know the names of the virtual disks to modify. Get the properties of the virtual disk and you'll see the source of the problem (the screenshot should make it more obvious where to look):

PS C:\Windows\system32> Get-VirtualDisk "ReFS RAID 10" | fl

ObjectId                          : {73c0ad00-f4d5-11e1-93ee-001b21b01e8b}
PassThroughClass                  :
PassThroughIds                    :
PassThroughNamespace              :
PassThroughServer                 :
UniqueId                          : 00ADC073D5F4E11193EE001B21B01E8B
Access                            : Read/Write
AllocatedSize                     : 71672266752
DetachedReason                    : None
FootprintOnPool                   : 143344533504
FriendlyName                      : ReFS RAID 10
HealthStatus                      : Healthy
Interleave                        : 262144
IsDeduplicationEnabled            : False
IsEnclosureAware                  : False
IsManualAttach                    : True
IsSnapshot                        : False
LogicalSectorSize                 : 512
Name                              :
NameFormat                        :
NumberOfAvailableCopies           : 0
NumberOfColumns                   : 3
NumberOfDataCopies                : 2
OperationalStatus                 : OK
OtherOperationalStatusDescription :
OtherUsageDescription             :
ParityLayout                      :
PhysicalDiskRedundancy            : 1
PhysicalSectorSize                : 4096
ProvisioningType                  : Thin
RequestNoSinglePointOfFailure     : True
ResiliencySettingName             : Mirror
Size                              : 4398583382016
UniqueIdFormat                    : Vendor Specific
UniqueIdFormatDescription         :
Usage                             : Other
PSComputerName                    :

 

Since you already know a little PowerShell you have probably worked out that you next need to use the Set-VirtualDisk cmdlet:

PS C:\Windows\system32> Set-VirtualDisk "ReFS RAID 10" -IsManualAttach $False

Check your results with the Get-VirtualDisk command:

PS C:\Windows\system32> Get-VirtualDisk "ReFS RAID 10" | fl

ObjectId                          : {73c0ad00-f4d5-11e1-93ee-001b21b01e8b}
PassThroughClass                  :
PassThroughIds                    :
PassThroughNamespace              :
PassThroughServer                 :
UniqueId                          : 00ADC073D5F4E11193EE001B21B01E8B
Access                            : Read/Write
AllocatedSize                     : 71672266752
DetachedReason                    : None
FootprintOnPool                   : 143344533504
FriendlyName                      : ReFS RAID 10
HealthStatus                      : Healthy
Interleave                        : 262144
IsDeduplicationEnabled            : False
IsEnclosureAware                  : False
IsManualAttach                    : False
IsSnapshot                        : False
LogicalSectorSize                 : 512
Name                              :
NameFormat                        :
NumberOfAvailableCopies           : 0
NumberOfColumns                   : 3
NumberOfDataCopies                : 2
OperationalStatus                 : OK
OtherOperationalStatusDescription :
OtherUsageDescription             :
ParityLayout                      :
PhysicalDiskRedundancy            : 1
PhysicalSectorSize                : 4096
ProvisioningType                  : Thin
RequestNoSinglePointOfFailure     : True
ResiliencySettingName             : Mirror
Size                              : 4398583382016
UniqueIdFormat                    : Vendor Specific
UniqueIdFormatDescription         :
Usage                             : Other
PSComputerName                    :

All done!

Comments are closed