Operating System - HP-UX
1837157 Members
2949 Online
110112 Solutions
New Discussion

Find the alternate path in hp-ux-11iv1

 
SOLVED
Go to solution
Anoop Sivan
Frequent Advisor

Find the alternate path in hp-ux-11iv1

Hi All

Recently storage team has allocated new luns to our hp-ux box. How to find these newly added luns and also need to find each alternate path to these luns.

Thanks
Anoop
15 REPLIES 15
James R. Ferguson
Acclaimed Contributor

Re: Find the alternate path in hp-ux-11iv1

Hi Anoop:

Use one of the utilities available with the SAN in use. For example, EMC has the 'inq' utility.

Regards!

...JRF...
SUBRATAhp-unix
Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi Anoop,

Please tell which storage u r using?

Alzhy
Honored Contributor

Re: Find the alternate path in hp-ux-11iv1

Anoop,

Tell us what SAN Array do these LUNS are provisioned from and we'll tell ya specific and useful tools you MUST have on thine system.

If you have EMC on your SAN, then you can legally use SCSI inquire command - which you can find practically loose everythwere.

But for Storageworks Arrays I suggest you install the following tools:

For EVAs: evainfo
For Hitachi Based XP Storage: xpinfo

Both should come in your COmmandView Kit set.

But if you want to deep dive, usually the following tools should be sufficient for you to write your own LUN Summation tool:

- diskinfo
- ioscan
- scsimgr

Cheers.

Hakuna Matata.
Alzhy
Honored Contributor

Re: Find the alternate path in hp-ux-11iv1

Oops -- scratch scsimgr since you are using 11.11 (aka 11i v1).
Hakuna Matata.
Pete Randall
Outstanding Contributor

Re: Find the alternate path in hp-ux-11iv1

If the luns in question have been "allocated to our hp-ux box", the should be visible with ioscan, shouldn't they?


Pete

Pete
Anoop Sivan
Frequent Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi All,
Thanks for your quick reply.

I have attached the ioscan and diskinfo output. I need to know how to find the alternate path and the primary path to a disk from o/s side.


Alzhy
Honored Contributor

Re: Find the alternate path in hp-ux-11iv1

Do you use EMC PowerPath?
Hakuna Matata.
Anoop Sivan
Frequent Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi Azly,

Yes, we are using
Alzhy
Honored Contributor

Re: Find the alternate path in hp-ux-11iv1

My notes from 10 years ago show:

root# powermt display dev=all



Hakuna Matata.
Steven E. Protter
Exalted Contributor

Re: Find the alternate path in hp-ux-11iv1

Shalom,

EMC storage means you should use the inq utility to get more detailed storage information.

Depending on LUN presentation, you may need to install EMC powerpath to see alternate paths.

EMC powerpath was optional in my last EMC environment, and we still had alternate paths to 11.11 and 11.23 and 11.31 systems.

If ioscan shows no alternate paths, you need to check with your storage team and may need to issue vgextend commands and perhaps to include alternate paths.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
singh sanjeev
Trusted Contributor

Re: Find the alternate path in hp-ux-11iv1

one way is alternate path of a particaular disk

controller number will be different but target and disk number will be same.
c?t?d?

or you can use:
syminq -pdevfile |grep -i lunid

or from below u can find lunid :

syminq -pdevfile |grep -i c26t0d1
Sanjeev Singh
Anoop Sivan
Frequent Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi All,

Powermt display dev=all is working. If emc power path is not installed then how to find?
2.Any o/s command is there?
eg: in 11iv3 we can find native multipathing by #ioscan -m dsf.

powermt out put
==============
# powermt display dev=all
Pseudo name=emcpower107a
Symmetrix ID=000190101011
Logical device ID=008E
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3072 pci@8,700000/SUNW,emlxs@2/fp@0,0 c2t50060482D52D84F6d123s0 FA 7bB active alive 0 0
3072 pci@8,700000/SUNW,emlxs@2/fp@0,0 c2t5006048AD52D84E7d123s0 FA 8cB active alive 0 0
3073 pci@8,700000/SUNW,emlxs@2,1/fp@0,0 c3t50060482D52D84F9d123s0 FA 10bB active alive 0 0
3073 pci@8,700000/SUNW,emlxs@2,1/fp@0,0 c3t5006048AD52D84E8d123s0 FA 9cB active alive 0 0
3074 pci@8,700000/SUNW,emlxs@3/fp@0,0 c4t50060482D52D84F6d123s0 FA 7bB active alive 0 0
3074 pci@8,700000/SUNW,emlxs@3/fp@0,0 c4t5006048AD52D84E7d123s0 FA 8cB active alive 0 0
3075 pci@8,700000/SUNW,emlxs@3,1/fp@0,0 c5t50060482D52D84F9d123s0 FA 10bB active alive 0 0
3075 pci@8,700000/SUNW,emlxs@3,1/fp@0,0 c5t5006048AD52D84E8d123s0 FA 9cB active alive 0 0
SUBRATAhp-unix
Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi Anoop,

You give below comand

powermt display dev=c2t500604

You will get the alternate path for the above CTD.

Alzhy
Honored Contributor
Solution

Re: Find the alternate path in hp-ux-11iv1

Anoop,

Your EMC output seems to be on a Solaris machine.. no?

In the distant past, I thought I was able to reckon a LUN's properties on HP-UX using lowelevel diskinfo. I can't recall ever trying it on EMC Symmetritix LUNS.. but you can try sir.

For example:

root@sepexpert # diskinfo -v /dev/rdsk/c117t15d6
SCSI describe of /dev/rdsk/c117t15d6:
vendor: HITACHI
product id: DF600F
type: direct access
size: 419842560 Kbytes
bytes per sector: 512
rev level: 0000
blocks per disk: 839685120
ISO version: 0
ECMA version: 0
ANSI version: 4
removable media: no
response format: 2
(Additional inquiry bytes: (32)30 (33)30 (34)30 (35)30 (36)44 (37)36 (38)30 (39)48 (40)31 (41)41 (42)32 (43)43 (44)30 (45)32 (46)42 (47)44 (48)0 (49)31 (50)41 (51)0 (52)1 (53)1 (54)0 (55)0 (56)0 (57)0 (58)0 (59)0 (60)0 (61)0 (62)0 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92)0 (93)0 (94)0 (95)0 (96)1c (97)0 (98)5 (99)0 (100)0 (101)2 (102)ff (103)0 (104)50 (105)1 (106)43 (107)80 (108)1 (109)34 (110)40 (111)7c (112)50 (113)1 (114)43 (115)80 (116)1 (117)34 (118)40 (119)7d (120)0 (121)0 (122)0 (123)1 (124)0 (125)0 (126)0 (127)0 (128)0 (129)2c (130)6c (131)1 (132)0 (133)0 (134)0 (135)0 (136)60 (137)0 (138)0 (139)0 (140)c0 (141)41 (142)f8 (143)c0 (144)0 (145)0 (146)0 (147)0 (148)0 (149)0 (150)0 (151)0 (152)0 (153)0 (154)0 (155)0 (156)0 (157)0 (158)0 (159)0 (160)40 (161)0 (162)0 (163)3 (164)0 (165)0 (166)94 (167)8f (168)21 (169)a0 (170)0 (171)1 (172)0 (173)2 (174)0 (175)3 (176)bc (177)75 (178)f6 )

I can figure out the LUNs WWID, cu:ldev, etc... and usually the lower "c" number in cXtYdZ will be your primary path in LVMspeak.

Cryptic but it works.

But the recommendation really is to use native tools for your Storage. syminq (aka inq or inquire) of EMC seem to be able to enumerate all so far -- even those of other non EMC vendors.

Hakuna Matata.
Anoop Sivan
Frequent Advisor

Re: Find the alternate path in hp-ux-11iv1

Hi All,
Thanks to every one.
i am close this thread.

Anoop.