jparadis1

updated

17 years ago

J

jparadis1

13 Posts

0

1574

December 15th, 2009 08:00

How do find the number of LUNs on each SP

How can you find out the number of LUNs on a SP in Navisphere? I'm trying to balance the SPs on a CX4-960 running flare 29.

thanks,

~jim

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    617

    0

    Posted December 15th, 2009 10:00

    install grep from here http://gnuwin32.sourceforge.net/packages/grep.htm

    and then run

    naviseccli -h IP_address_SPA getlun -owner | grep -c "SP A"

  • AranH1

    2163 Posts

    616

    0

    Posted December 15th, 2009 08:00

    In Navisphere browse to the LUN Folders container and you will see sub containers for SPA and SPB. This will list the LUNs hosted on each SP.
  • jparadis1

    13 Posts

    617

    0

    Posted December 15th, 2009 09:00

    Thanks guys for your help. When I run naviseccli -h IP_address_SPA getlun -owner > spa_lun.txt the file shows both SPa and SPb luns (see exable below). Does that mean the luns have tresspassed or is it showing me both SPa and SPb luns?

    OGICAL UNIT NUMBER 75
    Current owner:              SP B

    LOGICAL UNIT NUMBER 37
    Current owner:              SP A

    LOGICAL UNIT NUMBER 146
    Current owner:              SP A

    LOGICAL UNIT NUMBER 148
    Current owner:              SP A

    LOGICAL UNIT NUMBER 73
    Current owner:              SP B

    ~jim

  • jparadis1

    13 Posts

    616

    0

    Posted December 15th, 2009 09:00

    AranH,

    I understand that you can view the LUNs on each SP. I'm lazy and don't want to count up the all the LUNs on each SP. Is there a way to find out the number of LUNs on each SP?

    thanks,

    ~jim

  • jparadis1

    13 Posts

    617

    0

    Posted December 15th, 2009 09:00

    When I load the xml file in Word 2003 it shows the xml code not lun info.

    ~jim

  • kelleg

    6 Operator

    •

    4537 Posts

    617

    1

    Posted December 15th, 2009 09:00

    Command Line is useful - recommend the Navisphere CLI User Manual from PowerLink

    naviseccli -h IP_address_SPA getlun -owner > spa_lun.txt

    naviseccli -h IP_address_SPB getlun -owner > spb_lun.txt

    then

    grep -c "SP A" spa_lun.txt

    grep -c "SP B" spb_lun.txt

    glen

  • alias23122

    139 Posts

    616

    1

    Posted December 15th, 2009 09:00

    Run a LUN report. LUN report will be in XML format. Save that file, open it in Word and run find. If you just replace SP A with SP A it will tell you how many instances it found and replaced.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    176

    1

    Posted December 15th, 2009 10:00

    i don't have access to naviseccli at the moment but based on the output you posted either SP will provided LUN ownership information for the array.
  • AranH1

    2163 Posts

    617

    0

    Posted December 15th, 2009 10:00

    alias23122 wrote:

    Run a LUN report. LUN report will be in XML format. Save that file, open it in Word and run find. If you just replace SP A with SP A it will tell you how many instances it found and replaced.

    Jim,

    Alias listed the easiest way to get the data, but I would put it in excel. The CLARiiON reports will appear in your browser window and they consist of rows and columns. Just select all and past into excel, the data will line up with rows and columns in excel perfectly. Then just delete the top information rows until you have your header row, and you can filter and sort based on the column headers. I do this with the physical disk report as well, very useful.

    Aran

  • jparadis1

    13 Posts

    176

    0

    Posted December 15th, 2009 10:00

    Thanks everyone for your help. I found the naviseccli command worked the quickest for me. I also found that I only need to go to one sp ipaddress to get the count for both SPA and SPB.

    ~jim