Command to filter out cluster drive from local disk drive

Welcome Forums General PowerShell Q&A Command to filter out cluster drive from local disk drive

This topic contains 7 replies, has 3 voices, and was last updated by

 
Participant
3 months, 1 week ago.

  • Author
    Posts
  • #103501

    Participant
    Points: 0
    Rank: Member

    Hi,

    Please help me to find a command which will filter out cluster command from local disk drive.
    I have environment like which have cluster installed, I need one command by which I can find out only local drive i.e. C,D, etc.

  • #103504

    Participant
    Points: 0
    Rank: Member

    That's going to depend on how you've configured your storage. For instance if you're using storage spaces direct and clustered shared volumes it will look different to if you're using iSCSI etc etc

  • #103507

    Participant
    Points: 0
    Rank: Member

    I am not getting what you are asking.

  • #103510

    Participant
    Points: 0
    Rank: Member

    This is the output of the win32_logicaldisk class for your reference in which G,H and I are clustered drive.

    Status :
    Availability :
    DeviceID : A:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="A:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="A:"
    Access :
    BlockSize :
    Caption : A:
    Compressed :
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : 3 1/2 Inch Floppy Drive
    DriveType : 2
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem :
    FreeSpace :
    InstallDate :
    LastErrorCode :
    MaximumComponentLength :
    MediaType : 5
    Name : A:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled :
    QuotasIncomplete :
    QuotasRebuilding :
    Size :
    SupportsDiskQuotas :
    SupportsFileBasedCompression :
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty :
    VolumeName :
    VolumeSerialNumber :
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="A:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : C:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="C:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="C:"
    Access : 0
    BlockSize :
    Caption : C:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 32012230656
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : C:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : False
    QuotasRebuilding : False
    Size : 85897244672
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : SYSTEM
    VolumeSerialNumber : 2201F024
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="C:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : D:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="D:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="D:"
    Access : 0
    BlockSize :
    Caption : D:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 14730461184
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : D:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : False
    QuotasRebuilding : False
    Size : 21338517504
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : Data
    VolumeSerialNumber : 8E392C8C
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="D:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : G:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="G:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="G:"
    Access : 0
    BlockSize :
    Caption : G:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 131536916480
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : G:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : True
    QuotasRebuilding : False
    Size : 257694887936
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : Cluster1-Disk1-DBs
    VolumeSerialNumber : 06015E25
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="G:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : H:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="H:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="H:"
    Access : 0
    BlockSize :
    Caption : H:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 31808557056
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : H:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : False
    QuotasRebuilding : False
    Size : 64421359616
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : Cluster1-Disk2-Logs
    VolumeSerialNumber : 7ACC9780
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="H:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : I:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="I:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="I:"
    Access : 0
    BlockSize :
    Caption : I:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 102170996736
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : I:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : False
    QuotasRebuilding : False
    Size : 139583287296
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : Cluster1-Disk3-Backups
    VolumeSerialNumber : 5224BF70
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="I:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : N:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="N:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="N:"
    Access :
    BlockSize :
    Caption : N:
    Compressed :
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : CD-ROM Disc
    DriveType : 5
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem :
    FreeSpace :
    InstallDate :
    LastErrorCode :
    MaximumComponentLength :
    MediaType : 11
    Name : N:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled :
    QuotasIncomplete :
    QuotasRebuilding :
    Size :
    SupportsDiskQuotas :
    SupportsFileBasedCompression :
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty :
    VolumeName :
    VolumeSerialNumber :
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="N:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

    Status :
    Availability :
    DeviceID : P:
    StatusInfo :
    __GENUS : 2
    __CLASS : Win32_LogicalDisk
    __SUPERCLASS : CIM_LogicalDisk
    __DYNASTY : CIM_ManagedSystemElement
    __RELPATH : Win32_LogicalDisk.DeviceID="P:"
    __PROPERTY_COUNT : 40
    __DERIVATION : {CIM_LogicalDisk, CIM_StorageExtent, CIM_LogicalDevice, CIM_LogicalElement...}
    __SERVER : LRDSQLT25
    __NAMESPACE : root\cimv2
    __PATH : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="P:"
    Access : 0
    BlockSize :
    Caption : P:
    Compressed : False
    ConfigManagerErrorCode :
    ConfigManagerUserConfig :
    CreationClassName : Win32_LogicalDisk
    Description : Local Fixed Disk
    DriveType : 3
    ErrorCleared :
    ErrorDescription :
    ErrorMethodology :
    FileSystem : NTFS
    FreeSpace : 16938500096
    InstallDate :
    LastErrorCode :
    MaximumComponentLength : 255
    MediaType : 12
    Name : P:
    NumberOfBlocks :
    PNPDeviceID :
    PowerManagementCapabilities :
    PowerManagementSupported :
    ProviderName :
    Purpose :
    QuotasDisabled : True
    QuotasIncomplete : False
    QuotasRebuilding : False
    Size : 32209104896
    SupportsDiskQuotas : True
    SupportsFileBasedCompression : True
    SystemCreationClassName : Win32_ComputerSystem
    SystemName : LRDSQLT25
    VolumeDirty : False
    VolumeName : Page File
    VolumeSerialNumber : 004F468F
    Scope : System.Management.ManagementScope
    Path : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk.DeviceID="P:"
    Options : System.Management.ObjectGetOptions
    ClassPath : \\LRDSQLT25\root\cimv2:Win32_LogicalDisk
    Properties : {Access, Availability, BlockSize, Caption...}
    SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
    Qualifiers : {dynamic, Locale, provider, UUID}
    Site :
    Container :

  • #103517

    Participant
    Points: 0
    Rank: Member

    The problem with using CIM is from within Windows the disk is treated as just another disk – whether its a local disk, a cluster disk or attached from a SAN etc etc.

    Windows just see's disks it doesn't really care where they come from.

    You may be able to discover something using the failovercluster PowerShell cmdlets but I'm not hopeful

  • #103777

    Participant
    Points: 0
    Rank: Member

    Please tell how to solve this using failovercluster, because i tried but didnt get anything useful

  • #104558

    Participant
    Points: 0
    Rank: Member

    Hi,

    I' have a similar problème, but i see you have success to have the information i'm looking for !
    – The name of the disk cluster
    – The Total size of the disk

    I need this two information.

    Could you say how plz ?

  • #104561

    Participant
    Points: 0
    Rank: Member

    I've found but no , i'm wrong there isn't all the information i'm looking for.
    Thx anyway 😉

The topic ‘Command to filter out cluster drive from local disk drive’ is closed to new replies.