HomePage » StorageSAN » Storage3Par


3par

Identify WWNN and WWPN

EL5
echo WWNN: `cat /sys/class/fc_host/host*/node_name`
echo WWPN: `cat /sys/class/fc_host/host*/port_name`
# or
systool -c fc_host -v


EL4
cat /proc/scsi/qla2xxx/*  | grep adapter-port


Rescan LUN

echo "1" > /sys/class/fc_host/host0/issue_lip
echo "1" > /sys/class/fc_host/host1/issue_lip


Check physical link state

cat /sys/class/scsi_host/host?/state


Using 3par on linux multipath

Create a /etc/multpath.conf. in this example, there are 2 3par vv (lun) presented to this host. This is an HP server so we need to blacklist /dev/cciss/*. wwid can be obtained with the command /sbin/scsi_id -g -u -s /block/sd?

defaults {
	udev_dir /dev
	polling_interval 10
	selector "round-robin 0"
	path_grouping_policy multibus
	getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
	prio_callout /bin/true
	rr_min_io 100
	rr_weight priorities
	failback immediate
	user_friendly_name yes
}
blacklist {
	devnode "^(cciss!c[0-9]*d[0-9]*p[0-9]*|cciss!c[0-9]d[0-9]*)"
	devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
}

devices {
	device {
		vendor "3PARdata"
		product "VV"
		path_grouping_policy multibus
		path_checker tur
		no_path_retry 60
	}
}


multipaths {
		multipath {
				wwid                    350002ac0908003f0
				alias                   mpd1
		}
		multipath {
				wwid                    350002ac0907f03f0
				alias                   mpd2
		}
}


Then try do a multipath -ll and the following should be shown. If not, remove the dm_multipath and qla2xxx kernel modules, and reload them. Then restart multipathd.

# multipath -ll
mpd2 (350002ac01f5c0a4c) dm-6 3PARdata,VV
[size=750G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
 \_ 6:0:0:2 sda 8:0   [active][ready]
 \_ 6:0:1:2 sdc 8:32  [active][ready]
 \_ 7:0:0:2 sde 8:64  [active][ready]
 \_ 7:0:1:2 sdg 8:96  [active][ready]
mpd1 (350002ac01f5f0a4c) dm-7 3PARdata,VV
[size=40G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
 \_ 6:0:0:3 sdb 8:16  [active][ready]
 \_ 6:0:1:3 sdd 8:48  [active][ready]
 \_ 7:0:0:3 sdf 8:80  [active][ready]
 \_ 7:0:1:3 sdh 8:112 [active][ready]



Not sure what this is anymore...
history
973  cat /proc/scsi/qla2xxx/0
  974  cat /proc/scsi/qla2xxx/1
  975  ls /dev/mapper/
  976  cat /var/lib/multipath/bindings
  977  cat /proc/scsi/qla2xxx/0
  978  cat /proc/scsi/qla2xxx/1
  979  fdisk -l
  980  multipath
  981  multipath -l
  982  w
  983  ls /proc/scsi/scsi
  984  echo "scsi-hot-add 0 0 0 50" > /proc/scsi/scsi
  985  dmesg
  986  cat /proc/scsi/qla2xxx/0
  987  echo "scsi-hot-add 0 0 0 61" > /proc/scsi/scsi
  988  dme
  989  dmesg
  990  echo "scsi add-single-device 0 0 0 50" > /proc/scsi/scsi
  991  dme
  992  dmesg
  993  echo "scsi add-single-device 0 0 0 61" > /proc/scsi/scsi
  994  echo "scsi add-single-device 0 0 0 65" > /proc/scsi/scsi
  995  echo "scsi add-single-device 1 0 0 50" > /proc/scsi/scsi
  996  echo "scsi add-single-device 1 0 0 61" > /proc/scsi/scsi
  997  echo "scsi add-single-device 1 0 0 65" > /proc/scsi/scsi

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki