Microsoft Virtualization Discussions
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
Solved! See The Solution
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
View solution in original post
Thank you very much