Microsoft Virtualization Discussions

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

tsener
3,020 Views

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

 

 

 

1 ACCEPTED SOLUTION

asulliva
2,990 Views

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.

View solution in original post

2 REPLIES 2

asulliva
2,991 Views

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.

tsener
2,977 Views

Thank you very much

Public