Subscribe
Accepted Solution

How can I find How many LUNs are there in a volume ?

Hi all ,

 

How can I find how many LUNs are there in a volume ?

 

I couldn't find any powershell command . is there any way to find it ?

 

 

example;

 

 

 

volume :vol1

 

luns : /vol/vol1/testlun1 , /vol/vol1/testlun2 , /vol/vol1/testlun3

 

lun count is : 3

 

 

 

Re: How can I find How many LUNs are there in a volume ?

Hello @tsener,

 

The simplest way is with the "Get-NcLun" or "Get-NaLun" cmdlets.

 

# clustered Data ONTAP
(Get-NcLun -Volume $volumeName).count

# 7-mode
(Get-NaLun | ?{ $_.Path -match $volumeName }).count

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: How can I find How many LUNs are there in a volume ?

Thank you very much