Subscribe
Accepted Solution

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

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

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

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

 

 

 

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

Thanks Drew that helps

 

Regards

adai

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

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".

 

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

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

 

Regards

adai