Subscribe to Windows IT Pro
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

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