Install-WindowsFeature -Name Hyper-V, Failover-Clustering, Data-Center-Bridging, BitLocker, FS-FileServer, RSAT-Clustering-PowerShell, FS-Data-Deduplication -IncludeAllSubFeature -IncludeManagementTools -verbose드라이버 버전 목록을 검색합니다.
Get-PnpDevice | Select-Object Name, @{l='DriverVersion';e={(Get-PnpDeviceProperty -InstanceId $_.InstanceId -KeyName 'DEVPKEY_Device_DriverVersion').Data}} -Unique | Where-Object {($_.Name -like "*HBA*") -or ($_.Name -like "*mellanox*") -or ($_.Name -like "*Qlogic*") -or ($_.Name -like "*X710*") -or ($_.Name -like "*intel*") -or ($_.Name -like "*Broadcom*") -or ($_.Name -like "*marvell*") }클러스터 노드 이름을 할당합니다.
Rename-Computer -NewName CN01 -Restart클러스터 테스트
Test-Cluster -Node CN01, CN02 –Include 'Storage Spaces Direct', 'Inventory', 'Network', 'System Configuration'스토리지 풀 디스크의 상태 찾기
Get-PhysicalDisk새 S2D 클러스터 생성
New-Cluster -Name S2DSystem -Node CN01, CN02 -StaticAddress 192.168.10.33 -NoStorage -IgnoreNetwork 172.16.103.0/24, 172.16.104.0/24 -VerboseStorage Spaces Direct 활성화:
Enable-ClusterS2D -Verbose이전 명령의 결과 캡처
Get-ClusterS2D Get-StoragePool Get-StorageSubSystem -FriendlyName *Cluster* | Get-StorageHealthReport라이브 마이그레이션을 위해 낮은 우선 순위에서 호스트 관리 네트워크를 구성합니다.
$clusterResourceType = Get-ClusterResourceType -Name 'Virtual Machine' $hostNetworkID = Get-ClusterNetwork | Where-Object { $_.Address -eq ‘192.168.10.0’ } | Select-Object -ExpandProperty ID $otherNetworkID = (Get-ClusterNetwork).Where({$_.ID -ne $hostnetworkID}).ID $newMigrationOrder = ($otherNetworkID + $hostNetworkID) -join ';' Set-ClusterParameter -InputObject $clusterResourceType -Name MigrationNetworkOrder -Value $newMigrationOrder Set-VmHost -VirtualMachine MigrationPerformanceOption SMB메모리 덤프를 캡처할 수 있도록 페이지 파일 설정:
$blockCacheMB = (Get-Cluster).BlockCacheSize $blockCacheMB = (Get-Cluster).BlockCacheSize $pageFilePath = "C:\pagefile.sys" $initialSize = [Math]::Round(51200 + $blockCacheMB) $maximumSize = [Math]::Round(51200 + $blockCacheMB) $system = Get-WmiObject -Class Win32_ComputerSystem -EnableAllPrivileges if ($system.AutomaticManagedPagefile) { $system.AutomaticManagedPagefile = $false $system.Put() } $currentPageFile = Get-WmiObject -Class Win32_PageFileSetting if ($currentPageFile.Name -eq $pageFilePath) { $currentPageFile.InitialSize = $InitialSize $currentPageFile.MaximumSize = $MaximumSize $currentPageFile.Put() }else{ $currentPageFile.Delete() Set-WmiInstance -Class Win32_PageFileSetting -Arguments @{Name=$pageFilePath; InitialSize = $initialSize; MaximumSize = $maximumSize} } #Configure cluster witness. Active Directory Cluster Name Object must be given write access on file #share before running this step: Set-ClusterQuorum -NodeAndFileShareMajority \\VDC01\ClusterQuorum
SMB(Server Message Block) 서명을 사용하지 않도록 설정합니다. 일반 Windows Server 설치에서는 기본적으로 비활성화되어 있습니다.
Set-SmbServerConfiguration -RequireSecuritySignature $FALSE -forceSpaces 포트 시간 초과 구성 변경:
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\spaceport \Parameters -Name HwTimeout -Value 0x00002710 -Verbose Restart-Computer -Force