Gestion MPxIO

mercredi 29 avril 2009
par  Jerome ROBERT
popularité : 7%

Pour activer le mpxio sous Solaris :

Iil suffit de modifier la ligne suivante dans /kernel/drv/fp.conf :

mpxio-disable=”yes” ;
en
mpxio-disable=”no” ;

 

Exemple de fichier fp.conf

#cd /kernel/drv/
#cat fp.conf

#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Sun Fibre Channel Port driver configuration
#
#ident "@(#)fp.conf 1.4 06/06/22 SMI"
#
 
name="fp" class="fibre-channel" port=0 ;
name="fp" class="fibre-channel" port=1 ;
 
#
# Automatic configuration of the fabric is turned on by default
# and thus allows all devices discovered in the SAN zone to be
# enumerated in the Solaris devinfo tree automatically.
#
# The manual_configuration_only property may be used to
# disable the default behavior and force the manual configuration of
# the devices in the SAN. Setting manual_configuration_only=1
# will disable the automatic configuration of devices.
# NOTE : Use of this property is not recommended. If used, the
# fabric devices accessed at boot time need to get manually configured
# before the next reboot. Otherwise, fabric devices that are needed at
# boot time may not get configured and may cause boot problems.
# To manually configure fabric devices, refer to cfgadm_fp(1M).
# manual_configuration_only=1 ;
#
 
#
# To generate the binding-set specific ’compatible’ forms used to address
# legacy issues the ’scsi-binding-set’ property must be defined. (do not remove)
#
scsi-binding-set="fcp" ;
 
#
# List of ULP modules for loading during port driver attach time
#
load-ulp-list="1","fcp" ;
 
#
# Force attach driver to support hotplug activity (do not remove the property)
#
ddi-forceattach=1 ;
 
#
# I/O multipathing feature (MPxIO) can be enabled or disabled using
# mpxio-disable property. Setting mpxio-disable="no" will activate
# I/O multipathing ; setting mpxio-disable="yes" disables the feature.
#
# Global mpxio-disable property :
#
# To globally enable MPxIO on all fp ports set :
# mpxio-disable="no" ;
#
# To globally disable MPxIO on all fp ports set :
# mpxio-disable="yes" ;
#
# Per port mpxio-disable property :
#
# You can also enable or disable MPxIO on a per port basis.
# Per port settings override the global setting for the specified ports.
# To disable MPxIO on port 0 whose parent is /pci@8,600000/SUNW,qlc@4 set :
# name="fp" parent="/pci@8,600000/SUNW,qlc@4" port=0 mpxio-disable="yes" ;
#
# NOTE : If you just want to enable or disable MPxIO on all fp ports, it is
# better to use stmsboot(1M) as it also updates /etc/vfstab.
#
#
# You can describe a list of target port WWNs and LUN numbers which will
# not be configured. LUN numbers will be interpreted as decimal. White
# spaces and ’,’ can be used in the list of LUN numbers.
#
# pwwn-lun-blacklist=
# "target-port-wwn,lun-list"
#
# To prevent LUNs 1 and 2 from being configured for target
# port 510000f010fd92a1 and target port 510000e012079df1, set :
#
# pwwn-lun-blacklist=
# "510000f010fd92a1,1,2",
# "510000e012079df1,1,2" ;
mpxio-disable="no" ;
 
# Disable MPXIO for FC ports with tapes
name="fp" parent="/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1" port=0 mpxio-disable="yes" ;
name="fp" parent="/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1,1" port=0 mpxio-disable="yes" ;

##################### fin fichier ################"

Exclure la fibre de la configuration MPxIO

Pour trouver le chemin a inscrire au paramètre "parent" pour exclure la fibre de la configuration MPxIO

ls -l /dev/rmt/3
lrwxrwxrwx 1 root root 85 Feb 11 2008 /dev/rmt/3 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1,1/fp@0,0/st@w500104f000962ca6,0 :

Vérification du statut de MPxIO :

 

#!/bin/sh
# Test path access to multipathed devices
devs=mpathadm list lu | grep /dev/rdsk/
for dev in $devs
do
   echo "=== $dev ==="
   mpathadm show lu $dev | grep 'Access State'
done

 ou (suivant version)

#!/bin/sh
# Test path access to multipathed devices
devs=mpathadm list lu | grep /dev/rdsk/
for dev in $devs
do
   echo "=== $dev ==="
   mpathadm show lu $dev | grep 'Path State'
done

 


Statistiques

Dernière mise à jour

mercredi 4 octobre 2023

Publication

273 Articles
Aucun album photo
Aucune brève
6 Sites Web
2 Auteurs

Visites

65 aujourd’hui
105 hier
827555 depuis le début
2 visiteurs actuellement connectés