Sei sulla pagina 1di 3

almamatermine

All about Storage

Trespass LUNs navicli


November 17, 2011
To trespass LUNs back via CLI on Clariion frames
What is trespassing?
The Clariion frames have two storage processors SPA and SPB. Clariion is an active-active
configuration each LUN is owned by either of the storage processors at a given time. i.e., A
Lun might have default owner as SPA or SPB. When any of the SP fails the active SP will
take over the LUNs owned by the failed SP. This is called trespassing.
However, In most of the cases after the failed SP is active the LUNs will not be moved back
to default owners resulting in performance issue as all the LUNs will be owned by a single
SP. In this case you might need to trespass the LUNs manually back to their default owner.
Below is the process to do this through navicli
1. To find the list of LUNs trespassed with the LUN names
Navicli h <SPA/SPB IP> getlun name -trespass
(Or)
Naviseccli -h <SPA/SPB IP> -User <username> -Password <password> -Scope 2 getlun name trespass
Scope
0 Global
1 Local
2 LDAP
The above command will display an output like below, if there are any LUNs which are
trespassed.

LOGICAL UNIT NUMBER 57


Name LUN 57 525GB
Default Owner: SP A
Current owner: SP B
LOGICAL UNIT NUMBER 326
Name LUN 326 300GB
Default Owner: SP B
Current owner: SP A
2. When there are too many LUNs and you want to get the total count of LUNs which are
trespassed
Navicli -h 54.51.48.98 getlun -trespass|grep LOGICAL |wcl

3. Trespass mine will trespass all the LUNs to default owners.


This command should run on each SP.
Navicli h <SPA IP> trespass mine
Navicli h <SPB IP> trespass mine

4. To trespass any one Lun by its LUN number


Navicli -h <SP IP> trespass lun <lun number>
(Or)
Naviseccli -h <SP IP> -User <username> -Password <password> -Scope 2 trespass lun
<lun number>
NOTE:
However, we have concept called ALUA (Asymmetric logical unit access), where the LUNs
will not trespassed immediately as soon as the Default owner fails.
With ALUA feature, when SP fails the LUNs owned by that SP will have the I/Os processed
through active SP still having the failed SP as owner. The LUN remains with owner as
failed SP until it has 64000 I/Os. IF the failed SP is not active before 64000 I/Os then the
LUN will be trespassed and the active SP owns the LUN.
More on ALUA in my upcoming posts
Posted in: Storage

About these ads


(http://wordpress.com/aboutthese-ads/)

these-ads/)

CREATE A FREE WEBSITE OR BLOG AT WORDPRESS.COM. | THE SELA THEME.

Potrebbero piacerti anche