2008 R2 Failover Clustering - scripting?

Answered 2008 R2 Failover Clustering - scripting?

  • 2012년 5월 25일 금요일 오후 2:02
     
     
    I have a Windows 2008 R2 active/active failover cluster with 2 resources on node A (lets call them A1 and A2) and 1 resource on node B (lets call it B1). The resources contain services. If node A fails and its 2 resources fail over to node B then resource A2 and B1 will need to be restarted once A1 is running. Is there any way to script this? Basically whenever resouces A1 fails over the other 2 resource need to be restarted.

    Thanks in advance.

모든 응답

  • 2012년 5월 26일 토요일 오전 2:41
    중재자
     
     답변됨

    Hi,

    What you want to do is Failback. Please check the following guides.

    Configure Failover and Failback Settings for a Clustered Service or Application
    http://technet.microsoft.com/en-us/library/dd197473(WS.10).aspx

    Server 2008 Failover Cluster Failback Policies
    http://thelazyadmin.com/blogs/thelazyadmin/archive/2008/10/22/server-2008-failover-cluster-failback-policies.aspx

     

  • 2012년 5월 29일 화요일 오후 4:38
     
     
    This will help when one of the cluster nodes fails as to how the resources are started on the second node, which is what the problem is?  After looking through this the tech note and the failover utility, I don't see any options for how the resources are started and in which order.
    • 편집됨 WharfRat73 2012년 5월 30일 수요일 오후 8:22
    •  
  • 2012년 6월 1일 금요일 오전 12:17
     
     

    It's not very elegant, but you could set up all three services to MANUAL start.  Then, instead of clustering the services, create scripts and cluster them as Generic Scripts.  In the scripts you can do whatever you want in regards to how things start upon failover.


    timcerl