Microsoft Virtualization Discussions

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

tsener

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

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

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

tsener

Thank you very much

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public