Removendo a unidade com falha do Storage Pool no Server 2016

1

Seguindo as instruções encontradas aqui e aqui , eu Eu tenho tentado substituir uma unidade com falha em um pool de armazenamento do Windows. Aqui estão os passos que estou tomando após substituir fisicamente a unidade.

Ao executar Get-PhysicalDisk , vejo:

FriendlyName           SerialNumber    CanPool OperationalStatus  HealthStatus Usage            Size
------------           ------------    ------- -----------------  ------------ -----            ----
WDC WD1003FBYX-01Y7B1  WD-WCAW36848546 False   OK                 Healthy      Auto-Select 931.51 GB
WDC WD4000F9MZ-76NVPL0 WD-WCC131932768 False   OK                 Healthy      Auto-Select   3.64 TB
Generic Physical Disk                  False   Lost Communication Warning      Auto-Select   3.64 TB
WDC WD1003FBYX-01Y7B1  WD-WCAW36848210 False   OK                 Healthy      Auto-Select 931.51 GB
WDC WD4000F9MZ-76NVPL0 WD-WCC131962755 False   OK                 Healthy      Auto-Select   3.64 TB
WDC WD4000F9MZ-76NVPL0 WD-WCC131965649 False   OK                 Healthy      Auto-Select   3.64 TB
WDC WD4000F9YZ-09N20L0 WD-WCC130974882 False   OK                 Healthy      Auto-Select   3.64 TB

É claro qual é o disco ruim. Então, estou configurando o disco ruim para uma variável,% $badDisk = Get-PhysicalDisk | Where-Object { $_.OperationalStatus -eq 'Lost Communication' }

E depois aposte-o.

$badDisk | Set-PhysicalDisk -Usage Retired

De lá, eu tento remover o disco.

Remove-PhysicalDisk -PhysicalDisks $badDisk -StoragePoolName DataStore1

Remove-PhysicalDisk : The requested object could not be found.
At line:1 char:1
+ Remove-PhysicalDisk -PhysicalDisks $badDisk -StoragePoolName Data ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCmdlets) [Remove-PhysicalDi
sk], CimException
+ FullyQualifiedErrorId : MI RESULT 6,Remove-PhysicalDisk

Oh ... kay?

Adicione primeiro o disco de substituição, depois?

$replacementDisk = Get-PhysicalDisk –FriendlyName 'WDC WD4000F9YZ-09N20L0'

Add-PhysicalDisk –PhysicalDisks $replacementDisk –StoragePoolFriendlyName DataStore1

Add-PhysicalDisk : The requested object could not be found.
At line:1 char:1
+ Add-PhysicalDisk –PhysicalDisks $replacementDisk –StoragePoolFriendly ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCmdlets) [Add-PhysicalDisk]
, CimException
+ FullyQualifiedErrorId : MI RESULT 6,Add-PhysicalDisk

Que diabos estou fazendo errado? Eu sei que não conheço o Powershell tão bem quanto gostaria, mas ... Tudo aqui parece bastante simples.

    
por LeJoker 13.04.2018 / 17:53

1 resposta

0

Não tenho certeza se você resolveu, mas eu tive exatamente o mesmo problema e encontrei aqui a solução: link

Eu usei essas quatro linhas (apenas substitua os dois parâmetros que incluem 'YourXxxXxx'):

$Clustername = "YourClusterName"
Get-CimInstance -Namespace root\mscluster -ComputerName $ClusterName -ClassName MScluster_ClusterService | Invoke-CimMethod -Name EnableHealth
Remove-PhysicalDisk -PhysicalDisks (Get-PhysicalDisk | ? OperationalStatus -eq ‘Lost Communication’) -StoragePoolFriendlyName YourStoragePoolName
Get-CimInstance -Namespace root\mscluster -ComputerName $ClusterName -ClassName MScluster_ClusterService | Invoke-CimMethod -Name DisableHealth
    
por 27.08.2018 / 10:23