Thursday, October 18, 2012

Identify ALUA on Solaris

When you connect an external Storage Array sometime you might be interested to know whether ALUA is enabled for that Lun which is presented to your Solaris host.

Here are the simple steps to follow :
Luns should be already mapped to Solaris host.
Go to format expert mode using "format -e"
Select the Lun which you want to verify for ALUA
Now select "scsi"
format> scsi

Select "Inquiry"
scsi> inquiry

Inquiry:
    00 00 05 12 45 10 00 02 53 55 4e 20 20 20 20 20     ....E...SUN
    5a 46 53 20 53 74 6f 72 61 67 65 20 37 33 32 30     ZFS Storage 7320
    31 2e 30 20 00 00 00 00 00 00 00 00 00 00 00 00     1.0 ............
    00 00 00 00 00 00 00 00 00 00 00 60 09 60 03 00     ...........`.`..
    03 20 00 00 00 00 00 00 00 00                       . ........

From the above output we get a big chunk of matrix of data.
Looks for byte 6. Inside byte 6 contains scsi Inquiry data.
And ALUA/TPGS information is in bit 4-5
So expanding 0x10 --> 0001 0000 which means ALUA is supported on ZFS 7000 storage.

If Lun reports the bit as 10 or 11  then it supports explicit asymmetric access.
If Lun reports the bit as 00 then no support for ALUA

In shor Support for ALUA ( if the outcome of inquiry bits is as below ):
00 no support

01 Implicit

10 Explicit

11 Implicit and Explicit

No comments:

Post a Comment