INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Safe to issue Stop-ClusterNode?

Safe to issue Stop-ClusterNode?

(OP)
I am looking for a set of pre patching commands to issue on Cluster Nodes.
I roughly have:

+ Import-Module FailOverClusters
+ Test-IsRequired (Get-ClusterNode -Name $ENV.ComputerName).State.ToString() Up
+ Suspend-ClusterNode $ENV:ComputerName
+ Stop-ClusterNode $ENV:ComputerName

i need to add some sort of check before doing the 'Stop-Cluster', otherwise i risk killing the cluster if the 'Quorum Configuration' is saying (GUI) "Node Majority – Warning: Failure of a node will cause the cluster to fail".

any idea of how i get this type of check included? somethign which resulted in a boolean would be good, such as Safe-To-Stop

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald

RE: Safe to issue Stop-ClusterNode?

(OP)
thanks 58niper,
not going to work for me. some clusters dont have a quorum. I must state that i am considering w2k8 servers.
but, continuing on your theme, if i check the ClusterResource's in a cluster which is showing 'Failure of a node will cause the cluster to fail', i am getting State of Online for all Resources, nothing is showing me or hinting to me that if i take the node offline i will bring the cluster down

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald

RE: Safe to issue Stop-ClusterNode?

(OP)
i could of course:
$intPossibleVotes = 0
$intPossibleVotes = $ClusterNodes.Count
$intPossibleVotes = $intPossibleVotes + $OtherWitnesses?.Count
$intVotes = 0
$intVotes = $ClusterNodes.Active.Count
$intVotes = $intVotes + $OtherWitnesses?.Active.Count
If ($intVotes - 1) -lt (($intPossibleVotes / 2) + 1 ){
  Write-Host "you shouldnt take down this node..."
}

#but i just want to check something nice, that MS can give me already, they are working it out as they couldnt display the message otherwise

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald

RE: Safe to issue Stop-ClusterNode?

(OP)
i agree about cluster.exe not using powershell in the background. perhaps i should refer to cluster.exe commands and see if that will give me anything better.
thanks for the replies 58sniper, have a good weekend

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald

RE: Safe to issue Stop-ClusterNode?

Yeah, I remember when I was first learning PowerShell I was doing some stuff with cluster.exe. Take a look at my blog post: Cluster administration from PowerShell and the infamous back tick.

I'm still moving the content over to that blog from another site, but the content for that post should be good.

Do you have your Tek-Tips.com swag? I've got mine! Pick some up at https://www.advantageemblem.com/PromoItems/ApparelStore.aspx?CategoryId=392.

Stop by the new Tek-Tips group at LinkedIn. http://www.linkedin.com/groups/Networking-TekTipscom-forums-members-3952395

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close