PowerShell for Failover Clustering: CSV Free Disk Space (and other info)

Hi Cluster PowerShell script writers, We regularly get asked about how to find the free disk space on Cluster Shared Volumes (CSV). In this blog, I will show you how to do this with PowerShell. Here are the CSV volumes in my cluster. Note that Cluster Disk 10 has two partitions.   To find the… Read more

PowerShell for Failover Clustering: Understanding Error Codes

Hi,   This blog is about how to handle error codes returned by PowerShell Failover Clustering CMDlets. For an introduction to this topic you can take a look at http://blogs.msdn.com/clustering/archive/2009/05/23/9636665.aspx.  Cluster CMDlets can fail for various different reasons, such as passing non-existent entities as parameters (try to delete a group using a name that is… Read more

PowerShell for Failover Clustering: Creating Highly Available Workloads

Hi Clustering PowerShell Scripters,   One of the things we’ve provided in Failover Clustering PowerShell is a set of CMDlets to easily create highly available workloads in a cluster.   PS C:\Windows\system32> Get-Command -Module FailoverClusters | ?{ $_.Name -like “Add-Cluster*Role” } CommandType     Name                                                Definition ———–     —-                                                ———- CMDlet          Add-ClusterFileServerRole                           Add-ClusterFileServerRole [[-Name] <String>] [-S… CMDlet          Add-ClusterGenericApplicationRole       … Read more

PowerShell for Failover Clustering: Finding the Drive Letter

Hi cluster scripting fans,   I often find myself looking for the drive letter(s) for a physical disk resource in a PowerShell console/script.  After a bit of investigation, here is a way to do that using Cluster WMI through PowerShell:   $DiskResourceName = “Cluster Disk 2″ $DiskResource = gwmi MSCluster_Resource -Namespace root/mscluster | ?{ $_.Name… Read more

Creating and Configuring a Generic Script Resource

Hi,   In recent posts I discussed how to create and configure Generic Applications and Generic Services.  In this post I will talk about creating the third of our generic containers, Generic Scripts.   What is Generic Script Resource Type? The Generic Script resource type allows us to achieve high availability for applications that can… Read more