UNSOLVED

Neesha1

updated

9 years ago

N

Neesha1

31 Posts

0

1230

June 14th, 2017 06:00

Getting Pool level Orphan/Unused LUNs

Hi Experts,

I know in VNX Block, we can get Raid Group level Orphan/Unused LUNs using the following command,

C:\Program Files (x86)\EMC\Navisphere CLI>NaviSECCli.exe -h ********* getunusedluns

Please share me the command by which we can get Storage Pool level Orphan/Unused LUNs for VNX Block devices.. It would be really helpful for me.. Looking for a quick positive response from you guys.


Regards

Neesha

  • kelleg

    6 Operator

    •

    4537 Posts

    778

    0

    Posted June 15th, 2017 10:00

    In your question, you ask for a command to find the information about orphan/Unused LUNs and provide an example for VNX Block. Then you ask to provide the same command for VNX Block. Not sure which array you want to command for.

    glen

  • Neesha1

    31 Posts

    778

    0

    Posted June 16th, 2017 01:00

    Hi Glen,

    My command gives the orphan LUNs from Raid Group, Not from Storage Pool (which I clearly mentioned).

    Please provide me the command which provide the orphan lun from storage pools in VNX.

    Regards

    Neesha

  • maniemc

    169 Posts

    778

    0

    Posted June 16th, 2017 02:00

    There is no such command for pool, however, you can use some quick scripts

    Example on a Linux/nas CS with naviseccli :

    ( naviseccli -h spa lun -list  | awk '/LOGICAL UNIT NUMBER/ {print $NF} ' ; /nas/sbin/naviseccli -h spa storagegroup -list | awk '/^\W+[0-9]/ {print $NF}' ) | sort -n  | uniq -c  | awk '$1 < 2 {print "Unused Lun : "$NF}'

    Above lists all pool luns, not in any storage group (just an idea that can be improvised)

    $ ( naviseccli -h spa lun -list  | awk '/LOGICAL UNIT NUMBER/ {print $NF} ' ; /nas/sbin/naviseccli -h spa storagegroup -list | awk '/^\W+[0-9]/ {print $NF}' ) | sort -n  | uniq -c  | awk '$1 < 2 {print "Unused Lun : "$NF}'

    Unused Lun : 1

    Unused Lun : 3

    Unused Lun : 4

    Unused Lun : 5

    Unused Lun : 7

    Unused Lun : 8

    Unused Lun : 9

    Unused Lun : 10