Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 13, 2009 12:00 AM

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

Windows IT Pro
InstantDoc ID #102950
Rating: (3)

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 name>
$cluster.EnableSharedVolume="Enabled"

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

$cluster = Get-Cluster <cluster name>
$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.

Related Content:

ARTICLE TOOLS

Comments
  • John Bruijntjes
    2 years ago
    Apr 12, 2010

    To check it yourself

    help get-cluster -full
    See the part Example 1 there you can see the property's

    -------------------------- EXAMPLE 1 --------------------------

    C:\\PS>Get-Cluster | fl *

    Domain : contoso.com
    Name : cluster1
    FixQuorum : 0
    SharedVolumesRoot : C:\\ClusterStorage
    DefaultNetworkRole : 2
    Description :
    QuorumArbitrationTimeMax : 20
    ClusSvcHangTimeout : 60
    ClusSvcRegroupStageTimeout : 7
    ClusSvcRegroupOpeningTimeout : 5
    ClusSvcRegroupPruningTimeout : 5
    ClusSvcRegroupTickInMilliseconds : 300
    HangRecoveryAction : 3
    SameSubnetDelay : 1000
    CrossSubnetDelay : 1000
    SameSubnetThreshold : 5
    PlumbAllCrossSubnetRoutes : 0
    CrossSubnetThreshold : 5
    BackupInProgress : 0
    RequestReplyTimeout : 60
    WitnessRestartInterval : 15
    SecurityLevel : 1
    ClusterLogLevel : 3
    ClusterLogSize : 100
    WitnessDatabaseWriteTimeout : 300
    AddEvictDelay : 60
    EnableSharedVolumes : Enabled
    Id : 655d3640-2845-4077-a396-9f317f2df60e

  • John Bruijntjes
    2 years ago
    Apr 12, 2010

    Little update,
    You missed the S after volume.
    The complete command is

    $cluster.EnableSharedVolumes="Enabled"

    And you should use

    $cluster.EnableSharedVolumes="Enabled/NoticeRead"
    To declare that you read the warning otherwise it won't work.

    Kind regards,

    John Bruijntjes

  • John Bruijntjes
    2 years ago
    Apr 12, 2010

    Little update,
    You missed the S after volume.
    The complete command is

    $cluster.EnableSharedVolumes="Enabled"

    And you should use

    $cluster.EnableSharedVolumes="Enabled/NoticeRead"
    To declare that you read the warning otherwise it won't work.

    Kind regards,

    John Bruijntjes

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.