I had a drive go out last night and I have been unable to repair the virtual disk on a windows 2012 standard server
Here is the output from the storage pool
ObjectId : {4c6fc85e-ff27-11e2-9400-0023aea46cae}
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : {4c6fc85e-ff27-11e2-9400-0023aea46cae}
AllocatedSize : 6829266436096
ClearOnDeallocate : False
EnclosureAwareDefault : False
FriendlyName : secondstoragepool
HealthStatus : Warning
IsClustered : False
IsPowerProtected : False
IsPrimordial : False
IsReadOnly : False
LogicalSectorSize : 512
Name :
OperationalStatus : Degraded
OtherOperationalStatusDescription :
OtherUsageDescription :
PhysicalSectorSize : 4096
ProvisioningTypeDefault : Fixed
ReadOnlyReason : None
ResiliencySettingNameDefault : Mirror
RetireMissingPhysicalDisks : Always
Size : 14998831104000
SupportedProvisioningTypes : {Thin, Fixed}
SupportsDeduplication : False
ThinProvisioningAlertThresholds : {70}
Usage : Other
PSComputerName :
Here is the output from the physical disks
FriendlyName CanPool OperationalStatus HealthStatus Usage Size
------------ ------- ----------------- ------------ ----- ----
PhysicalDisk5 False OK Healthy Auto-Select 1.36 TB
PhysicalDisk0 False OK Healthy Auto-Select 2.73 TB
PhysicalDisk2 False OK Healthy Auto-Select 1.36 TB
PhysicalDisk1 False OK Healthy Auto-Select 74.51 GB
PhysicalDisk6 False OK Healthy Auto-Select 2.73 TB
False Lost Communication Warning Retired 2.73 TB
PhysicalDisk8 False OK Healthy Auto-Select 2.73 TB
PhysicalDisk9 False OK Healthy Auto-Select 2.73 TB
PhysicalDisk3 False OK Healthy Auto-Select 1.36 TB
PhysicalDisk4 False OK Healthy Auto-Select 1.36 TB
Here is the output from the Virtual disks
ObjectId : {4c6fc87a-ff27-11e2-9400-0023aea46cae}
PassThroughClass :
PassThroughIds :
PassThroughNamespace :
PassThroughServer :
UniqueId : 7AC86F4C27FFE21194000023AEA46CAE
Access : Read/Write
AllocatedSize : 5120137887744
DetachedReason : Majority Disks Unhealthy
FootprintOnPool : 6826850516992
FriendlyName : SecondShare
HealthStatus : Unknown
Interleave : 262144
IsDeduplicationEnabled : False
IsEnclosureAware : False
IsManualAttach : True
IsSnapshot : False
LogicalSectorSize : 512
Name :
NameFormat :
NumberOfAvailableCopies : 0
NumberOfColumns : 4
NumberOfDataCopies : 1
OperationalStatus : Detached
OtherOperationalStatusDescription :
OtherUsageDescription :
ParityLayout : Rotated Parity
PhysicalDiskRedundancy : 1
PhysicalSectorSize : 4096
ProvisioningType : Thin
RequestNoSinglePointOfFailure : True
ResiliencySettingName : Parity
Size : 11985374674944
UniqueIdFormat : Vendor Specific
UniqueIdFormatDescription :
Usage : Other
PSComputerName :
Some more info
FriendlyName OperationalStatus ResiliencySettingName NumberOfColumns Size
------------ ----------------- --------------------- --------------- ----
SecondShare Detached Parity 4 11985374674944
FriendlyName Size AllocatedSize Usage OperationalStatus
------------ ---- ------------- ----- -----------------
PhysicalDisk0 2999766220800 1594506608640 Auto-Select OK
PhysicalDisk8 2999766220800 1707249500160 Auto-Select OK
PhysicalDisk9 2999766220800 1707249500160 Auto-Select OK
PhysicalDisk6 2999766220800 1707249500160 Auto-Select OK
2999766220800 113011326976 Retired Lost Communication
PhysicalDisk0 was intended to be the replacement for the retired drive.
Repair-Virtualdisk completes instantly.
When I try and run
Remove-PhysicalDisk -PhysicalDisks $removehdd -StoragePoolFriendlyName secondstoragepool
I get the following output
PS C:\Windows\system32> Remove-PhysicalDisk -PhysicalDisks $removehdd -StoragePoolFriendlyName secondstoragepool
Confirm
Are you sure you want to perform this action?
Removing a Physical Disk will cause problems with the fault tolerence capabilities of StoragePool "secondstoragepool".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Remove-PhysicalDisk : One of the physical disks specified could not be removed because it is still in use.
At line:1 char:1+ Remove-PhysicalDisk -PhysicalDisks $removehdd -StoragePoolFriendlyName secondsto ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/..._StorageCmdlets) [Remove-PhysicalDisk], CimE
xception+ FullyQualifiedErrorId : StorageWMI 51004,Remove-PhysicalDisk
Any ideas?