System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check storage devices redundant paths in HPUX

SOLVED
Go to solution
kumar_unix
Occasional Contributor

How to check storage devices redundant paths in HPUX

We are having MDS switch upgrade (Fabric A ), for that storage team wants to check whether all the servers have redundant paths or not and as part of the upgrade, the switch would have a new domain ID and new FCID, and we will need to rescan for those devices.

1) If we rescan the device does the HPUX hosts creates the new paths ? does the hosts ran out of max devices on their bus exts ?


Do we have any scripts/commands that shows the dual paths are active and check the current ext_bus count .

In this upgrade we have Linux hosts which are running multipath


Please let me know if you any scripts for Linux multipathing to check the redundant paths


Thank you
Kumar
7 REPLIES
Vivek_Pendse
Valued Contributor

Re: How to check storage devices redundant paths in HPUX

hi,

What's the os version.
If you have multhpathing sw installed, then u can chk the redundant path from it.

Thanks,
Vivek
kumar_unix
Occasional Contributor

Re: How to check storage devices redundant paths in HPUX

HPUX OS version

HP-UX B.11.11 U 9000/800 3193079555 unlimited-user license

Linux

Cel 5.4
Michael Steele_2
Honored Contributor

Re: How to check storage devices redundant paths in HPUX

insf -e will rescan and rebuild new device files.

ioscan -funC disk will display all primary and alternate disk paths.
Support Fatherhood - Stop Family Law
Emil Velez
Honored Contributor

Re: How to check storage devices redundant paths in HPUX

Need to use a disk array utility to find out the WWID of each device till 11.31
Michael Steele_2
Honored Contributor

Re: How to check storage devices redundant paths in HPUX

Don't forget to assign points to all of the responses
Support Fatherhood - Stop Family Law
Bob_Vance
Esteemed Contributor
Solution

Re: How to check storage devices redundant paths in HPUX


## ioscan -fnCdisk

will give you the hardware path and device names for each alternate path to a LUN.
You cannot necessarily and generally tell which LUN a device name belongs to by simply inspecting the name.
E.g.,

/dev/dsk/cXt5d6
.

You *can*, however, by inspecting the HW path in ioscan output.
See, thread

http://h30499.www3.hp.com/t5/System-Administration/LUN-details-with-mount-point/m-p/4780405#M390941

OTOH, if you KNOW that the LUN numbers presented are less than 128 (not total of 128 LUNs, but each and every LUN # < 128), then you *can* use the device name.
In

/dev/dsk/cXt5d6

the LUN would be 5*16+6 = 86.
Since no LUN# is > 128, then no other LUN can be of the form cYt5d6.

So you could

## ioscan -fnCdisk > /tmp/ioL
## grep t5d6 /tmp/iol

would give you all the cNt5d6 device names and they would all be alternate paths to the same LUN 86.

You could manually peruse the /tmp/ioL and figure things out.
Or with a little fancy scripting and 'awk' you could cobble up something better.


E.g, I have script that's tailored for my environment.
It works by inspecting and analyzing the ioscan -fnCdisk output.


Get LUN # for a device name:

## get_LUN_dev c33t10d3
HBA0dev=0/2/1/0
pineMSA0 116 0/2/1/0.3.0.239.0.10.3 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c33t10d3 /dev/rdsk/c33t10d3
LUNdev=0/2/1/0.3.0.239.0.10.3
LUN= $(( 128*0 + 8*10 + 3 )) = 83



The reverse, device name from LUN# and Array:

## get_LUN_dev 83 pineMSA

HBA0dev=0/2/1/0
pineMSAdev0 =0/2/1/0.3
HBA1dev=0/5/2/0
pineMSAdev1 =0/5/2/0.4
pineMSA0 116 0/2/1/0.3.0.239.0.10.3 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c33t10d3 /dev/rdsk/c33t10d3
pineMSA0 115 0/2/1/0.3.8.239.0.10.3 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c34t10d3 /dev/rdsk/c34t10d3
pineMSA1 111 0/5/2/0.4.0.239.0.10.3 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c31t10d3 /dev/rdsk/c31t10d3
pineMSA1 110 0/5/2/0.4.8.239.0.10.3 sdisk CLAIMED DEVICE HP MSA2312fc
/dev/dsk/c32t10d3 /dev/rdsk/c32t10d3


So, here there are 4 alternate paths to LUN 83.


bv

"The lyf so short, the craft so long to lerne." - Chaucer
Michael Steele_2
Honored Contributor

Re: How to check storage devices redundant paths in HPUX

Prove it with a syminq or equivalent
Support Fatherhood - Stop Family Law