Q. How do I enable or disable Cluster Shared Volumes (CSVs) from PowerShell in Windows Server 2008 R2?

A. You should usually use the Failover Cluster Management Microsoft Management Console snap-in to enable or disable CSVs, but you can also do it with PowerShell. To enable, run the following commands:

$cluster = Get-Cluster 
$cluster.EnableSharedVolume="Enabled"

To disable CSVs, first make sure no disks are enabled for CSV, then run the following commands:

$cluster = Get-Cluster 
$cluster.EnableSharedVolume="Disabled"

If you get an error when you're enabling CSVs and are prompted for a complete syntax, use the following command instead:

$cluster.EnableSharedVolume="Enabled/NoticeRead"
Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish