Step 1 Find out which volume is the CSV

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

  1. Open up a Windows PowerShell session.
  2. Run "List Volume" | diskpart.
  3. Note down the CSVFS Volume path. In the example below, the path is "C:\ClusterStorage\Volume1\".

    Example

    
    PS C:\> "List Volume" | diskpart
    Microsoft DiskPart version 6.3.9600
    Copyright (C) 1999-2013 Microsoft Corporation.
    On computer: HYPERV-NODE1
    DISKPART> 
     Volume     ### Ltr Label       Fs    Type       Size    Status    Info
     ---------- --- --- ----------- ----- ---------- ------- --------- --------
     Volume      0   E                    CD-ROM         0 B No Media 
     Volume      1      System Rese NTFS  Partition   350 MB Healthy   System 
     Volume      2   C              NTFS  Partition   238 GB Healthy   Boot 
     Volume      3      SQL2014 Sys NTFS  Partition   199 GB Healthy 
       C:\Pure Storage\SQL2014-Sys\
     Volume      4      SQL2014 Tem NTFS  Partition  2047 GB Healthy 
       C:\Pure Storage\SQL2014-Tempdb\
     Volume      5   F  CommVault L NTFS  Partition  1023 GB Healthy 
     Volume      6      CSV         CSVFS Partition    15 TB Healthy 
       C:\ClusterStorage\Volume1\
     Volume      7   D                    Removable      0 B No Media 
     Volume      8      SQL2014 Dat NTFS  Partition  5119 GB Healthy 
       C:\Pure Storage\SQL2014-Data\
    
    DISKPART> 
    PS C:\> 
    
    Note:
    If you have multiple Clustered Shared Volumes across a large number of Windows Server Failover Clusters, the following PowerShell can be used to determine the CSVs on each of the individual clusters from one centralized PowerShell script.
    
    Import-Module FailoverClusters
    $Volumes = @()
    $ClusterName = "<CLUSTER_NAME>"
    
    $CSV = Get-ClusterSharedVolume -Cluster $ClusterName
    ForEach ($CSV in $CSVS) {
      $CSVInfo = $CSV | Select -Property Name -ExpandProperty SharedVolumeInfo
      ForEach ( $CSVInfo in $CSVInfos ) {
        $Volumes = New-Object PSObject -Property @{
           Path = $CSVInfo.FriendlyVolumeName
        }
        $Volumes.Path
      }
    }