Users Guide

13–Windows Server 2016
Storage Spaces Direct 구성
241 AH0054602-03 F
4 단계 . Storage Spaces Direct 사용되는 디스크 정리
Storage Spaces Direct 사용하려는 디스크는 비어 있고 파티션이나 다른 데이터
없어야 합니다 . 디스크에 파티션이나 다른 데이터가 있을 경우 Storage Spaces
Direct 시스템에는 이런 파티션이 데이터가 포함되지 않습니다 .
다음 Windows PowerShell 명령을 Windows PowerShell 스크립트 (
.PS1) 파일에
넣고 관리자 권한으로 Windows PowerShell( 또는 Windows PowerShell ISE)
솔의 관리 시스템에서 명령을 실행할 있습니다 .
icm (Get-Cluster -Name HCNanoUSClu3 | Get-ClusterNode) {
Update-StorageProviderCache
Get-StoragePool |? IsPrimordial -eq $false | Set-StoragePool
-IsReadOnly:$false -ErrorAction SilentlyContinue
Get-StoragePool |? IsPrimordial -eq $false | Get-VirtualDisk |
Remove-VirtualDisk -Confirm:$false -ErrorAction SilentlyContinue
Get-StoragePool |? IsPrimordial -eq $false | Remove-StoragePool
-Confirm:$false -ErrorAction SilentlyContinue
Get-PhysicalDisk | Reset-PhysicalDisk -ErrorAction
SilentlyContinue
Get-Disk |? Number -ne $null |? IsBoot -ne $true |? IsSystem -ne
$true |? PartitionStyle -ne RAW |% {
$_ | Set-Disk -isoffline:$false
$_ | Set-Disk -isreadonly:$false
$_ | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false
$_ | Set-Disk -isreadonly:$true
$_ | Set-Disk -isoffline:$true
}
Get-Disk |? Number -ne $null |? IsBoot -ne $true |? IsSystem -ne
$true |? PartitionStyle -eq RAW | Group -NoElement -Property
FriendlyName
} | Sort -Property PsComputerName,Count
다음 스크립트를 실행하면 Storage Spaces Direct 용으로 사용 있는
스크를 각각의 노드에서 식별하는 도움이 되고 이런 디스크에서 모든 데이
터와 파티션이 제거됩니다 .