Using navicli to Create Raid Groups and LUNs on EMC Clariion Arrays

I recently was involved in a SAN project implementing two EMC Clariion CX4 arrays. In the past I have used Navispere to create the Raid Groups and LUNs but this time I decided to use the command line tool navicli.exe.

Creating the RGs and LUNs via Navispere is very painful because of Java and all of the mouse clicking required.

I downloaded the “Navisphere CLI (Windows) 6.2″ from EMC Powerlink and installed it on my laptop. I also used the “EMC Navispere Command Line Interface Reference” PDF to figure out the syntax.

By using navicli I as able to create the RGs and LUNs in half the time it would have taken me using the Java interface.

To create a Raid Group use this command syntax.

navicli h ip-of-array-sp createrg Raid-Group-ID-Number disks bus_enclosure_disk”

Example: “navicli – h 10.10.10.10 createrg 1 disks 0_0_6 0_0_7 0_0_8 0_0_9 0_0_10”

To bind a LUN using navicli use this syntax.

navicli h ip-of-array-sp bind raid-type LUN-# rg raid-group-number –sq size qualifier(mb,gb) cap capacity sp SP-A, SP-B

Example: “navicli -h 10.10.10.10 bind r5 105 -rg 1 -sq mb -cap 512000 -sp B”

Syntax for renaming a LUN.

navicli h ip-of-array-sp chglun l LUN-# name New-Name

Example: “navicli -h 10.10.10.10 chglun -l 105 -name VMWARE_VMFS01”

Additional references

http://www.datadisk.co.uk/html_docs/emc/emc_navisphere_cs.html

http://clariionblogs.blogspot.com/2009/01/general-commands-for-navisphere-cli.html

One thought on “Using navicli to Create Raid Groups and LUNs on EMC Clariion Arrays

  1. Life Saver! and I had to break the script up in two rows since I could not get the chglun when first creating a LUN, but it works like a charm!

    Batch.bat
    navicli -h 10.25.10.6 bind r1_0 144 -rg 6 -cap 20 -sp A (First Line)
    navicli – 10.25.10.6 chglun -l 144 -name SQLP144 (Second Line)

    Helped to save ton of hours and only have to modify a few spreadsheets with some cutting and pasting.

    Thanks!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s