Storage, SAN: EMC Clariion LUN Trespass
So we are in the process of working with EMC to have 10gb ISCSI interfaces installed in our CX4. I knew that we had a lot of trespassed LUNs and that those had to be corrected before the install could take place. This post will go through the process of using the CLI (Command Line Interface) to find out what is trespassed and to move them back.
I will be using “naviseccli” for this, but the same syntax should work with “navicli”. Both are available through EMC Powerlink site.
Below will query the Clariion and return a list of all LUNs that are trespassed. The -h specifies which host (SP) to connect to. You only need to run this on one SP. The other would report back the exact same results.
C:\>naviseccli -h 127.0.0.12 getlun -trespass LOGICAL UNIT NUMBER 7 Default Owner: SP B Current owner: SP A LOGICAL UNIT NUMBER 15 Default Owner: SP B Current owner: SP A LOGICAL UNIT NUMBER 118 Default Owner: SP B Current owner: SP A LOGICAL UNIT NUMBER 17 Default Owner: SP B Current owner: SP A LOGICAL UNIT NUMBER 204 Default Owner: SP B Current owner: SP A LOGICAL UNIT NUMBER 619 Default Owner: SP B Current owner: SP A ....
I have some Linux style utilities installed on my Windows machine. Below shows that we have a total of 55 LUNs that are currently trespassed. Yeah, don’t ask.
C:\>naviseccli -h 127.0.0.13 getlun -trespass | grep LOGICAL | wc -l
55
I thought that a list of all LUN IDs would be needed and then have to make a script to run through them. Luckily that is not the case. The syntax is as follows:C:\>naviseccli -h trespass mine
The above command has to be run on both SPs (Service Processors).
C:\>naviseccli -h 127.0.0.12 trespass mine
C:\>naviseccli -h 127.0.0.13 trespass mine
Use the “getlun -trespass” command once again to make sure that there are no more trespassed LUNs. A few things to keep in mind are that trespassed snapshots will stay trespassed. CLI or even the Navisphere GUI will not let you move them. Also, I had a few LUNs that would not move via the CLI, but when done manually in Navisphere they moved fine.
Below is the output of help for naviseccli.
C:\>naviseccli -help
@(#)Navisphere naviseccli Revision 6.29.5.0.66 on Wed Jan 20 22:47:06 2010
Copyright (C) 1997-2009, EMC Corporation
Usage:
[-User ] [-Password]
[-Scope <0 - global; 1 - local; 2 - LDAP>]
[-Address | -h ]
[-Port] [-Timeout | -t ]
[-AddUserSecurity | -RemoveUserSecurity | -DeleteSecurityEntry]
[-Parse | -p] [-NoPoll | -np] [-cmdtime]
[-Xml] [-f ] [-Help] CMD
If you were using “navicli” the following commands should work for you:
navicli -h 127.0.0.12 getlun -trespass navicli -h 127.0.0.12 trespass mine navicli -h 127.0.0.13 trespass mine
Notes: Feel free to comment / email (kevin <at> colovirt.com) / twitter me with any questions!

[...] This post was mentioned on Twitter by Kevin Goodman, Test feed. Test feed said: Storage, SAN: EMC Clariion LUN Trespass « Colocation to Virtualization: Colocation to Virtualization. and linux be… http://bit.ly/8ZEWVJ [...]
Tweets that mention Storage, SAN: EMC Clariion LUN Trespass « Colocation to Virtualization -- Topsy.com said this on June 14, 2010 at 9:18 am