NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

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

Adai
6,093 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
6,074 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
6,075 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
6,056 Views

Thanks Drew that helps

 

Regards

adai

syedb
6,032 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
5,992 Views

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

 

Regards

adai

Public