Thursday, January 22, 2009

General Commands for Navisphere CLI

Physical Container-Front End Ports Speeds
naviseccli –h 10.124.23.128 port –list -sfpstate
naviseccli –h 10.124.23.128 –set sp a –portid 0 2
naviseccli –h 10.124.23.128 backendbus –get –speeds 0

SP Reboot and Shutdown GUI
naviseccli –h 10.124.23.128 rebootsp
naviseccli –h 10.124.23.128 resetandhold

Disk Summary
naviseccli –h 10.124.23.128 getdisk
naviseccli –h 10.124.23.128 getdisk 0_0_9 (Bus_Enclosure_Disk - specific disk)

Storage System Properties- Cache Tab
naviseccli –h 10.124.23.128 getcache
naviseccli –h 10.124.23.128 setcache –wc 0 –rca 0 –rcb 0 (to disable Write and Read Cache)
naviseccli –h 10.124.23.128 setcache –p 4 –l 50 –h 70 (Set Page Size to 4 KB, Low WaterMark to 50%, and High WaterMark to 70%)
naviseccli –h 10.124.23.128 setcache –wc 1 –rca 1 –rcb 1 (to enable Write and Read Cache)


Storage System Properties- Memory Tab
naviseccli –h 10.124.23.128 setcache –wsz 2500 –rsza 100 –rszb 100
naviseccli –h 10.124.23.128 setcache –wsz 3072 –rsza 3656 –rszb 3656 (maximum amount of cache for CX3-80)

Creating a RAID Group
naviseccli –h 10.124.23.128 createrg 0 1_0_0 1_0_ 1 1_0_2 1_0_3 1_0_4 –rm no –pri med (same Enclosure)
-rm (remove/destroy Raid Group after the last LUN is unbound for the Raid Group) -pri (priority/rate of expansion/defragmentation of the Raid Group)
naviseccli –h 10.124.23.128 createrg 1 2_0_0 3_0_0 2_0_1 3_0_1 2_0_2 3_0_2 -raidtype r1_0 (for RAID 1_0 across enclosures)

RAID Group Properties - General
naviseccli –h 10.124.23.128 getrg 0

RAID Group Properties - Disks
naviseccli –h 10.124.23.128 getrg 0 –disks

Binding a LUN
naviseccli –h 10.124.23.128 bind r5 0 –rg 0 –rc 1 –wc 1 –sp a –sq gb –cap 10
bind raid type (r0, r1, r1_0, r3, r5, r6) -rg (raid group) -rc / -wc (read and write cache) -sp (storage processor) -sq (size qualifier - mb, gb, tb, bc (block count) -cap (size of the LUN)

LUN Properties
naviseccli –h 10.124.23.128 getlun 0
naviseccli –h 10.124.23.128 chglun –l 0 –name Exchange_Log_Lun_0

RAID Group Properties - Partitions
naviseccli –h 10.124.23.128 getrg 0 –lunlist

Destroying a RAID Group
naviseccli –h 10.124.23.128 removerg 0

Creating a Storage Group
navicli –h 10.127.24.128 storagegroup –create –gname ProductionHost

Storage Group Properties - LUNs with Host ID
navicli –h 10.127.24.128 storagegroup –addhlu –gname ProductionHost –alu 6 –hlu 6
navicli –h 10.127.24.128 storagegroup –addhlu –gname ProductionHost –alu 23 –hlu 23

Storage Group Properties - Hosts
navicli –h 10.127.24.128 storagegroup –connecthost –host ProductionHost –gname ProductionHost

Destroying Storage Groups
navicli –h 10.127.24.128 storagegroup –destroy –gname ProductionHost

10 comments:

Anonymous said...

nice blog... thanks for taking effort for others benefit. find more information of clariion on http://www.emcclariion.com

colchaos said...

These are great. I have a general question to ask you San Guy. I want to study for E20-522 and I am not sure what the best stuff would be to study. Any recommendations? Manuals, white papers, etc? Thanks!

Anonymous said...

THis one is realy useful
COuld you please tell me why sometimes auto registeration fails on VMWare ESX server to the CLariion

san guy said...

as far as i am aware, vmware is not able to auto-register the hba's to the clariion. there are only 2 ways in which i know it can be done...a navipshere host agent, and the windows navisphere server utility...

i am not sure if vmware has an agent do to the registration...it has been my understanding that they have to be manually registered...

ToddH said...

Nope, VMware ESX can auto-register the HBA's to the Clariion. All my ESX servers were registered this way.

1. Download Navisphere Host Agent / CLI from EMC Powerlink.

2. Extract and run ./linux/ESX_installer.sh to open required ports.

3. Install or upgrade the RPM (naviagentcli.noarch.rpm)

4. Start or restart the service service naviagent start

5. Go to Navisphere Control Center and update the host and make sure it reflect the same agent version. Might take a minute or two.

ToddH said...

San Guy, now I have a real basic question as I am still fairly new with the Clariion SAN's.

How are you connecting to the SAN to run these commands? Are you using EMC Remote, SSH Client, etc?

I also wanted to say that I've posted here before and the information you provide is invaluable. It's helped me grow professionally during a time when our SAN administrator left and I was asked to fill the gap -- Thank you!

ToddH said...

One last thing, Anonymous, if you've already done the ESX install you might need to check the naviagent run level and start up; #chkconfig --list.

To enable the service for runlevel 3 you need to run #chkconfig naviagent on. Then run #chkconfig --list naviagent and you should see: naviagent 0:off 1:off 2:on 3:on 4:off 5:off 6:off

Hope this helps.

Anonymous said...

29047126483369175 I play dofus Replica Watches for one year, I Replica Rolex Watches want to get some Replica Watch kamas to buy Replica Chanel Watches item for my character. So, I search "Replica Swiss Watches" on google and found many website. As Exact Replica Graham Watch the tips from the forum, I just review the Swiss Replica Watches websites and choose some Replica Montblanc Watches quality sites to Replica Cartier Watches compare the price, and go to their Replica Breguet Watches online support to make Replica Breitling Watches the test. And Last Chaos Gold I decide to use Replica BRM Watch at the end. And Tag Heuer Replica Watch that is the Replica IWC Watch beginning..

Karin said...

I extended a disk using a metalun through navisphere. The disk was never extended on the server that needed the disk space. I would like to reclaim that 200 GB that I allocated to that LUN. Since, it was never extended on the server that uses the lun, I should be able to unbind the metalun without affecting the original lun? Ture or False. I need help.
Thanks

san guy said...

Karin,

Sorry, but that disk space that was allocated to the MetaLUN is gone off the the MetaLUN world forever. There is no way to reclaim LUNs from a MetaLUN.