Microsoft Virtualization Discussions

How to find if Aggr contains root volume or not in cDOT 8.2 ?

Adai
3,990 Views

Which cDOt Powershell cmdlet contains the attribute that says wheathr the aggr is hosting the node root volume or not ?

Is it the Get-NcAggr or Get-NcVol ? and whats the attribute name ?

 

Looked at the both get-NcAggr and Get-NcVol not able to find the same.

 

Regards

adai

1 ACCEPTED SOLUTION

DREW_RUSSELL
3,971 Views

Get-NcAggrOption <aggr_name> will provide you with the information you are looking for. Specifically, you are looking for the root field

 

(Get-NcAggrOption x_aggr0_01)

 

Get-NcAggrOption x_aggr0_01I'm not a PowerShell guy so there may be a better way to filter this but Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17  will get you directly to the root field

 

 

Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17

 

 

 

View solution in original post

4 REPLIES 4

DREW_RUSSELL
3,972 Views

Get-NcAggrOption <aggr_name> will provide you with the information you are looking for. Specifically, you are looking for the root field

 

(Get-NcAggrOption x_aggr0_01)

 

Get-NcAggrOption x_aggr0_01I'm not a PowerShell guy so there may be a better way to filter this but Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17  will get you directly to the root field

 

 

Get-NcAggrOption x_aggr0_01 | Select-Object -Property Name, Value | Select-Object -Index 17

 

 

 

Adai
3,953 Views

Thanks Drew that helps

 

Regards

adai

syedb
3,929 Views

Adai,

 

aggr-get-iter->aggr-raid-attributes->has-local-root

 

Use 'aggr-get-iter and look for 'has-local-root' attribute in ''aggr-raid-attributes".

 

Adai
3,889 Views

Thanks Syed. Wanted to get the attributes via PowerShell. This really helps.

 

Regards

adai

Public