Friday, November 14, 2008

Configuring MPXIO

My Environment:
Server: Sun Blade T6320
Storage: EMC CX3-20

Steps taken:

  • Use format to inspect the luns that had been assigned to your system. In my test system, disk 4,5 and disk 6,7 are actually same lun with 2 paths.
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@0,0
1. c0t1d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@1,0
2. c0t2d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@2,0
3. c0t3d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@3,0
4. c1t5006016841E034F6d0
/pci@0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w5006016841e034f6,0
5. c1t5006016841E034F6d1
/pci@0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w5006016841e034f6,1
6. c2t5006016941E034F6d0
/pci@0/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w5006016941e034f6,0
7. c2t5006016941E034F6d1
/pci@0/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w5006016941e034f6,1
Specify disk (enter its number):
  • You need the information of vendor ID and product ID and these information can be obtained through format > inquiry.
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@0,0
1. c0t1d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@1,0
2. c0t2d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@2,0
3. c0t3d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@3,0
4. c1t5006016841E034F6d0
/pci@0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w5006016841e034f6,0
5. c1t5006016841E034F6d1
/pci@0/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w5006016841e034f6,1
6. c2t5006016941E034F6d0
/pci@0/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w5006016941e034f6,0
7. c2t5006016941E034F6d1
/pci@0/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w5006016941e034f6,1
Specify disk (enter its number):4

selecting c1t5006016841E034F6d0
[disk formatted]



FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> inquiry
Vendor: DGC
Product: DISK

Revision: 0324
format>

  • Modify /kernel/drv/scsi_vhci.conf and add the array type (product ID/vendor ID) to the device-type-scsi-options-list

#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "@(#)scsi_vhci.conf 1.9 04/08/26 SMI"
#
name="scsi_vhci" class="root";
#
# Load balancing global configuration: setting load-balance="none" will cause
# all I/O to a given device (which supports multipath I/O) to occur via one
# path. Setting load-balance="round-robin" will cause each path to the device
# to be used in turn.
#
load-balance="round-robin";
#
# Automatic failback configuration
# possible values are auto-failback="enable" or auto-failback="disable"
auto-failback="disable";
#
# For enabling MPxIO support for 3rd party symmetric device need an
# entry similar to following in this file. Just replace the "SUN SENA"
# part with the Vendor ID/Product ID for the device, exactly as reported by
# Inquiry cmd.
#
device-type-scsi-options-list =
"DGC DISK", "symmetric-option";

symmetric-option = 0x1000000;
  • If there are other adapters other than FC (in my case i got SAS adapter), use the following command to reboot.

# stmsboot -D fp -e
Checking mpxio status for driver fp
WARNING: This operation will require a reboot.
Do you want to continue ? [y/n] (default: y)y
The changes will come into effect after rebooting the system.
Reboot the system now ? [y/n] (default: y)
  • After reboot, this is what i get
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@0,0
1. c0t1d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@1,0
2. c0t2d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@2,0
3. c0t3d0
/pci@0/pci@0/pci@2/LSILogic,sas@0/sd@3,0
4. c3t600601607DA11A00E4E37EFA3C98DD11d0
/scsi_vhci/ssd@g600601607da11a00e4e37efa3c98dd11
5. c3t600601607DA11A001E14AA5F3398DD11d0
/scsi_vhci/ssd@g600601607da11a001e14aa5f3398dd11
Specify disk (enter its number):

No comments: