본문 바로가기

Windows/FailoverCluster

2012 Cluster Log 수집

2012부터는 기본적으로 Cluster.exe를 설치하지 않습니다. 추가 Feature를 통해서 설치는 가능합니다.

이에 대부분의 Operation을 Powershell을 통해서 진행해야 하고 Troubleshooting에 필요한 클러스터 로그 또한 Powershell 명령어로 수집해야 합니다.

일단, 문제를 재현하기 전에 아래와 같이 클러스터 속성을 확인하여 로그 사이즈 및 로그 레벨을 조정합니다.

Powershell은 항상 Run as administrator로 실행합니다.

 1. 클러스터 속성 확인

Get-Cluster | fl *

 

Machine generated alternative text: PS C:Vi> Get뾅luster : f1 *
Domain contoso .com
Name t 2012뾅luster
AddEvictDelay t 60
Backup I nProgress
Clus?cHangTimeout t 60
ClusSvdllegroupOpeningTimeout g 5
ClusSvdllegroupPruningTimeout t S
ClusSvdllegroupStageTimeout : 5
Clus?dflegroupTicklnMilliseconds : 300
ClusterGroupWaitDelay : 120
MinimumNeverPreemptPriority t 3000
MinimumPreemptorPriority t 1
ClusterEnforcedAntiAffinity t 0
ClusterLogLevel g 3
ClusterLogSize t 300
Cross?bnetDelay t 1000

 

2. ClusterLogLevel ClusterLogSize 조정

(Get-Cluster -Name 2012-Cluster).ClusterLogSize=500

(Get-Cluster -Name 2012-Clu-ster).ClusterLogLevel=5

 

Machine generated alternative text: PS C:Vi> <Get뾅luster 뾐ame 2012뾅luster).ClusterLogLevel5
PS C:Vi> <Get뾅luster 뾐ame 2012뾅luster).ClusterLogSize500
PS C:W> Get뾅luster : f1 *
Domain : contoso.com
Name 2012뾅luster
AddEvictDelay : 60
DackuplnProgress : 0
Clus?cHangTimeout : 60
Clus?dflegroupOpeningTimeout 5
ClusSvcflegroupPruningTimeout : 5
Clus?cflegroupStageTimeout : 5
ClusSucflegroupTickinMilliseconds : 300
ClusterGrouptIaitDelay : 120
MinimumNeverPreemptPriority : 3000
MinimumPreemptorPriority I
ClusterEnforcedAntiAffinity : 0
ClusterLogLevel : 5
ClusterLogSize : 500

 

3. 클러스터 로그 수집

Get-ClusterLog -Cluster 2012-Cluster -Destination C:\Temp -TimeSpan 30

 

Machine generated alternative text: PS C:%t> Cet뾅lusterLog 뾆estination C:ViTemp
lode LastWriteTime Length Name
뾞뿓? 2W.2?1?? 2 5:j. 1412982 212뾐ode1.contoso.com_c1uster.1og
뾞뿓? 2?2?1??  5:j. 652296 2012뾐ode2.contoso.com_cluster.log