Gopi Desaboyina Solaris Blogs

Just another WordPress.com weblog

Enabling device Multipathing using Solaris native mpxio

Recently I’ve to enable dual path for all SAN LUNS. we were moving away from VERITAS SF because of licensing cost. I know VERITAS takes care of dual path by using rdmp. This is what I did to enable to Dual path/Multipath using Solaris native mpxio drivers. Obviously you need to have 2 or more HBA Cards which are connected to SAN with redundant path.

edit /kernel/drv/fp.conf and make sure mpxio-disable is set to mpxio disable = no like below

bash-3.2$ grep mpxio-disable /kernel/drv/fp.conf
# mpxio-disable property. Setting mpxio-disable="no" will activate
# I/O multipathing; setting mpxio-disable="yes" disables the feature.
# Global mpxio-disable property:
# mpxio-disable="no";
# mpxio-disable="yes";
# Per port mpxio-disable property:
# name="fp" parent="/pci@8,600000/SUNW,qlc@4" port=0 mpxio-disable="yes";
mpxio-disable="no";

Edit /kernel/drv/scsi_vhci.conf and make sure you add the third party Storages.
Since I’m using EMC SYMMETRIX.
I use following syntax. Syntax to add Third Party Storage is mentioned in scsi_vhci.conf

Note : Note Vendor ID ( EMC in my case) should be 8 Chars if it’s not 8 char’s you need to pad with spaces.
BTW you can get Vendor ID ( EMC ) and Product ID (SYMMETRIX) from format inquiry on disk.

#

device-type-scsi-options-list =
"EMC     SYMMETRIX", "symmetric-option";
symmetric-option = 0x1000000;
device-type-mpxio-options-list=
"device-type=EMC     SYMMETRIX", "load-balance-options=logical-block-options";
logical-block-options="load-balance=logical-block", "region-size=18";

#

After that enable the mpxio for fiber channel using below command. It would ask you to reboot the box and also updates the vfstab automatically for you.
#stmsboot -D fp -e

during system boot you might see following messages about multipathing.All are good.

Sep 21 14:37:30 genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060480000187880491445256433130 (ssd50) multipath status: optimal, path /ssm@0,0/pci@19,600000/lpfc@2/fp@0,0 (fp1) to target address: w50060482ccb50aed,23 is online Load balancing: round-robin
Sep 21 14:37:30 genunix: [ID 834635 kern.info] /scsi_vhci/ssd@g60060480000187880491445256413430 (ssd51) multipath status: optimal, path /ssm@0,0/pci@19,600000/lpfc@2/fp@0,0 (fp1) to target address: w50060482ccb50aed,22 is online Load balancing: round-robin

Once system is back. you can see the common device created by combining both paths. stmsboot -L for displaying that info.

# stmsboot -L
non-STMS device name STMS device name
——————————————————————
/dev/rdsk/c2t50060482CCB50AC2d85 /dev/rdsk/c5t60060480000187880491445256374436d0
/dev/rdsk/c2t50060482CCB50AC2d38 /dev/rdsk/c5t60060480000187880491445256374435d0
/dev/rdsk/c2t50060482CCB50AC2d37 /dev/rdsk/c5t60060480000187880491445256453231d0
/dev/rdsk/c2t50060482CCB50AC2d36 /dev/rdsk/c5t60060480000187880491445256453143d0

format also changes the device name to common name.

2. c5t6006048000018788050856434D303032d0
/scsi_vhci/ssd@g6006048000018788050856434d303032
3. c5t6006048000018788049156434D303032d0
/scsi_vhci/ssd@g6006048000018788049156434d303032

for above changes reconfigure reboot is required. once system is backup you may want to check if you can see dual path by using below command
#luxadm display raw_device_path;

 

Reference Links :

http://docs.sun.com/app/docs/doc/820-3070/gfpva?l=en&q=mpxio&a=view

http://sunsolve.sun.com/search/document.do?assetkey=1-61-230351-1

http://sunsolve.sun.com/search/document.do?assetkey=1-61-202693-1

Advertisements

April 1, 2009 - Posted by | Solaris |

1 Comment »

  1. […] Enabling device Multipathing using Solaris native mpxio April 2009 […]

    Pingback by My Blog gdesaboyina.wordpress.com 2010 in review « Gopi Desaboyina Solaris Blogs | January 2, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

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

%d bloggers like this: