storage

All posts tagged storage

# /lib/udev/scsi_id -g -u -d /dev/sda

3600508b40010687200013000002e0000

# /lib/udev/scsi_id -g -u -d /dev/sdb

3600508b40010687200013000002e0000

# /lib/udev/scsi_id -g -u -d /dev/sdc

3600508b40010687200013000002e0000

 

3600508b40010687200013000002e0000 dm-0 HP,HSV210
size=500G features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw
|-+- policy=’round-robin 0′ prio=0 status=active
| |- 2:0:1:1 sdb 8:16 active undef running
| - 2:0:2:1 sdc 8:32 active undef running
-+- policy=’round-robin 0′ prio=0 status=enabled
`- 2:0:0:1 sda 8:0 active undef running

 

To see your local internal disks

# multipath -v2

Grab the names from here and update your multipath.conf file to blacklist the local disks

# multipath -v3 (debug)

# multpath -v5 (not sure exactly what v5 means, except gives me info about full paths to the SAN and other useful info about the SAN…serial #s etc)

 

This might be a more universal command and may work in other distro’s..I’m not sure. Please note: this is the WWN of the card only, for this particular box I ran the command on, the fiber wasn’t even ran yet and this is showing the card only.

After fiber is ran etc..and SAN has been presented, you can install multipath; multipathing tools. /etc/init.d/multipath start; multipath -ll or -l should show the WWN.

# systool -av -c fc_host

(Node_Name = WWN)

 

Class = “fc_host”

Class Device = “host0”
Class Device path = “/sys/devices/pci0000:00/0000:00:04.0/0000:13:00.0/host0/fc_host/host0”
active_fc4s         = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
fabric_name         = “0x0”
issue_lip           = <store method only>
max_npiv_vports     = “16”
maxframe_size       = “2048 bytes”
node_name           = “0x20000000c953b3bd”
npiv_vports_inuse   = “0”
port_id             = “0x000000”
port_name           = “0x10000000c953b3bd”
port_state          = “Linkdown”
port_type           = “Unknown”
speed               = “unknown”
supported_classes   = “Class 3”
supported_fc4s      = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
supported_speeds    = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name       = “Emulex A8002A FV2.82A4 DV8.3.5.8.2p”
tgtid_bind_type     = “wwpn (World Wide Port Name)”
uevent              =
vport_create        = <store method only>
vport_delete        = <store method only>

Device = “host0”
Device path = “/sys/devices/pci0000:00/0000:00:04.0/0000:13:00.0/host0”
uevent              = “DEVTYPE=scsi_host”

Class Device = “host1”
Class Device path = “/sys/devices/pci0000:00/0000:00:06.0/0000:17:00.0/host1/fc_host/host1”
active_fc4s         = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
fabric_name         = “0x0”
issue_lip           = <store method only>
max_npiv_vports     = “16”
maxframe_size       = “2048 bytes”
node_name           = “0x20000000c953b1ec”
npiv_vports_inuse   = “0”
port_id             = “0x000000”
port_name           = “0x10000000c953b1ec”
port_state          = “Linkdown”
port_type           = “Unknown”
speed               = “unknown”
supported_classes   = “Class 3”
supported_fc4s      = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
supported_speeds    = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name       = “Emulex A8002A FV2.82A4 DV8.3.5.8.2p”
tgtid_bind_type     = “wwpn (World Wide Port Name)”
uevent              =
vport_create        = <store method only>
vport_delete        = <store method only>

Device = “host1”
Device path = “/sys/devices/pci0000:00/0000:00:06.0/0000:17:00.0/host1”
uevent              = “DEVTYPE=scsi_host”