Microsoft Virtualization Discussions

Using Get-NaVol not returning all volumes

jjd003166
5,317 Views

When I run the following script in Powershell:

Connect-NaController DESNETAPP01b -RPC -Credential root

Get-NaVol

After supplying the password I get a list of the volumes as an output.

vfiler10_DBME_data online 400.0 GB 0% 400.0 GB True 99 16M aggr1tb7k01

vfiler10root online 9.5 GB 0% 9.5 GB False 161 311k aggr1tb7k01

vfiler11_DERS_data online 2.6 TB 47% 1.3 TB True 2M 32M aggr1tb7k01

vfiler11root online 9.5 GB 0% 9.5 GB False 161 311k aggr1tb7k01

vfiler12_DCYF_data online 3.6 TB 12% 3.2 TB True 1M 32M aggr1tb7k01

vfiler12root online 9.5 GB 0% 9.5 GB False 160 311k aggr1tb7k01

vfiler13_EA_data online 4.0 TB 69% 1.3 TB True 1M 32M aggr1tb7k02

vfiler13root online 9.5 GB 0% 9.5 GB False 161 311k aggr1tb7k02

vfiler14_ISA_data online 4.3 TB 94% 261.0 GB True 12k 32M aggr1tb7k02

Vfiler14_ISAFILE01_data online 3.6 TB 31% 2.5 TB True 4M 32M aggr1tb7k02

vfiler14_LOGS_data online 5.1 TB 12% 4.5 TB True 3k 32M aggr1tb7k02

vfiler14root online 9.5 GB 0% 9.5 GB False 160 311k aggr1tb7k02

vfiler3_DTS_data online 4.0 TB 44% 2.2 TB True 2M 32M aggr1tb7k01

vfiler3root online 9.5 GB 0% 9.5 GB False 166 311k aggr1tb7k01

vfiler4_DCSE_data online 2.4 TB 60% 975.1 GB True 2M 32M aggr1tb7k01

vfiler4root online 9.5 GB 0% 9.5 GB False 162 311k aggr1tb7k01

vfiler5_DBF_data online 400.0 GB 0% 400.0 GB True 99 16M aggr1tb7k01

vfiler5root online 9.5 GB 0% 9.5 GB False 162 311k aggr1tb7k01

vfiler6_DDD_data online 1.2 TB 49% 628.7 GB True 1M 32M aggr1tb7k01

vfiler6root online 9.5 GB 0% 9.5 GB False 161 311k aggr1tb7k01

vfiler7_DESS_data online 400.0 GB 9% 365.1 GB True 2M 16M aggr1tb7k01

vfiler7root online 9.5 GB 0% 9.5 GB False 160 311k aggr1tb7k01

vfiler8_AZEIP_data online 400.0 GB 0% 400.0 GB True 99 16M aggr1tb7k01

vfiler8root online 9.5 GB 0% 9.5 GB False 160 311k aggr1tb7k01

vfiler9_DAAS_data online 1.7 TB 21% 1.3 TB True 2M 32M aggr1tb7k01

vfiler9root online 9.5 GB 0% 9.5 GB False 160 311k aggr1tb7k01

There are 4 volumes missing from this output.

vfiler1root online 9.5 GB 1% 9.4 GB False 166 9M aggr1tb7k01

vfiler1data online 10.5 TB 82% 1.9 TB  True 25M 32M aggr1tb7k01

vfiler2root online 9.5 GB 0% 9.5 GB False 163 2M aggr1tb7k01

vfiler3_DBA_data online 819.2 GB 31% 564.1 GB True 3k 32M aggr1tb7k01

Since I know that there are Volumes missing from this list I have run the Get-NaVol command using one of the missing volume names:

Get-NaVol vfiler1root

vfiler1root online 9.5 GB 1% 9.4 GB False 166 9M aggr1tb7k01

So why is it not showing up in the Get NaVol, but it does when I specify it by name? Also If I try to use a wildcard I get no results at all.

Get-NaVol vfiler1r*

1 ACCEPTED SOLUTION

beam
5,317 Views

Toolkit 2.4 should fix your problem.  I would also recommend using the -Terse switch on Get-NaVol.

-Steven

View solution in original post

6 REPLIES 6

vinith
5,317 Views

Try if this gives you the required output

Get-NaVol | Format-Table *

jjd003166
5,317 Views

I get some weird results with that one.

After going through the List (I found the name field) there are still missing volumes.

beam
5,317 Views

What version of the PowerShell Toolkit are you running?  Does one of those missing volumes have a lot of clone children?

-Steven

jjd003166
5,317 Views

I have the 2.0 toolkit running, though I just downloaded the 2.4 version.

There is only 1 Clone Child of 1 volume and it is not 1of the missing volumes.

beam
5,318 Views

Toolkit 2.4 should fix your problem.  I would also recommend using the -Terse switch on Get-NaVol.

-Steven

jjd003166
5,317 Views

using the -terse switch fixed the issue without going to the 2.4 version. I will move up to the newer version, but I have what I needed.

Thanks all. I really appreciate the help.

Public