Operating System - HP-UX
1834456 Members
2442 Online
110067 Solutions
New Discussion

Re: disk list (w/o alternate)

 
SOLVED
Go to solution
mobidyc
Trusted Contributor

disk list (w/o alternate)

Hello,

is there a simple way to have the list of disks on the system and to know if it's an alternate disk or not?

of course with the vgdisplay we can have this information but it seems too easy, i've some systems without lvm but veritas instead ;)

ioscan is not my friend on this problem

PS: it's for hpux 11.00 and 11.11.

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
5 REPLIES 5
Jash_1
Frequent Advisor

Re: disk list (w/o alternate)

lvlnboot -v may help.
If I can, I will!
Robert-Jan Goossens
Honored Contributor
Solution

Re: disk list (w/o alternate)

Hi Cedrick,

Dynamic Multi Pathing?

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t3d0 simple dg0001 dg01 online
will show all disk without the alternate path.

# vxdmpadm getsubpaths dmpnodename=c1t3d0
NAME STATE PATH-TYPE CTLR-NAME ENCLR-TYPE ENCLR-NAME
==================================================================
c1t3d0 ENABLED - c1 EMC emc0
c7t3d0 ENABLED - c7 EMC emc0

above example shows c7t3d0 as the alternate path for c1t3d0.

Regards,
Robert-Jan
mobidyc
Trusted Contributor

Re: disk list (w/o alternate)

thanks for these commands.

i searched for a scriptable command, vxdmpadm seems to be ok for me.

i'm just surprised that i need to use an lvm or vxvm command for having these informations, thought that diskinfo or ioscan could get it.
but anyway, i've my answer ;)

--
Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard
Geoff Wild
Honored Contributor

Re: disk list (w/o alternate)

Well - that depends - where are the "disks" coming from?

If they are EMC LUNS, then there is a free utility called inq which will allow you to script this (and it doesn't matter if the disks are in lvm, vxvm, raw, or not even assigned).

# inq
Inquiry utility, Version V7.3-771 (Rev 0.0) (SIL Version V6.3.0.0 (Edit Level 771)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

.......................................................

------------------------------------------------------------------------------
DEVICE :VEND :PROD :REV :SER NUM :CAP(kb)
------------------------------------------------------------------------------
/dev/rdsk/c0t0d0 :TEAC :DV-28E-N :C.6C : : -----
/dev/rdsk/c3t0d0 :EMC :SYMMETRIX :5771 :5200022000 : 5760
/dev/rdsk/c3t3d7 :EMC :SYMMETRIX :5771 :52000e3000 : 77760000
/dev/rdsk/c3t4d0 :EMC :SYMMETRIX :5771 :52000e7000 : 77760000
/dev/rdsk/c3t4d1 :EMC :SYMMETRIX :5771 :52000eb000 : 77760000
/dev/rdsk/c3t4d2 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c3t4d2s1 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c3t4d2s2 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c3t4d2s3 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c3t12d0 :EMC :SYMMETRIX :5771 :52004f9000 : 77760000
/dev/rdsk/c3t12d1 :EMC :SYMMETRIX :5771 :52002d5000 : 77760000
/dev/rdsk/c3t12d2 :EMC :SYMMETRIX :5771 :52002d9000 : 77760000
/dev/rdsk/c3t13d4 :EMC :SYMMETRIX :5771 :5200357000 : 77760000
/dev/rdsk/c3t13d5 :EMC :SYMMETRIX :5771 :520035b000 : 77760000
/dev/rdsk/c3t13d6 :EMC :SYMMETRIX :5771 :520035f000 : 77760000
/dev/rdsk/c3t13d7 :EMC :SYMMETRIX :5771 :52005d1000 : 77760000
/dev/rdsk/c3t14d0 :EMC :SYMMETRIX :5771 :52005d5000 : 77760000
/dev/rdsk/c3t14d1 :EMC :SYMMETRIX :5771 :52005d9000 : 77760000
/dev/rdsk/c3t14d4 :EMC :SYMMETRIX :5771 :5200607000 : 77760000
/dev/rdsk/c3t14d5 :EMC :SYMMETRIX :5771 :520060b000 : 77760000
/dev/rdsk/c3t14d6 :EMC :SYMMETRIX :5771 :520060f000 : 77760000
/dev/rdsk/c3t14d7 :EMC :SYMMETRIX :5771 :5200613000 : 77760000
/dev/rdsk/c3t15d0 :EMC :SYMMETRIX :5771 :5200617000 : 77760000
/dev/rdsk/c3t15d1 :EMC :SYMMETRIX :5771 :520061b000 : 77760000
/dev/rdsk/c9t0d0 :EMC :SYMMETRIX :5771 :5200022000 : 5760
/dev/rdsk/c9t3d7 :EMC :SYMMETRIX :5771 :52000e3000 : 77760000
/dev/rdsk/c9t4d0 :EMC :SYMMETRIX :5771 :52000e7000 : 77760000
/dev/rdsk/c9t4d1 :EMC :SYMMETRIX :5771 :52000eb000 : 77760000
/dev/rdsk/c9t4d2 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c9t4d2s1 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c9t4d2s2 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c9t4d2s3 :EMC :SYMMETRIX :5771 :52000ef000 : 77760000
/dev/rdsk/c9t12d0 :EMC :SYMMETRIX :5771 :52004f9000 : 77760000
/dev/rdsk/c9t12d1 :EMC :SYMMETRIX :5771 :52002d5000 : 77760000
/dev/rdsk/c9t12d2 :EMC :SYMMETRIX :5771 :52002d9000 : 77760000
/dev/rdsk/c9t13d4 :EMC :SYMMETRIX :5771 :5200357000 : 77760000
/dev/rdsk/c9t13d5 :EMC :SYMMETRIX :5771 :520035b000 : 77760000
/dev/rdsk/c9t13d6 :EMC :SYMMETRIX :5771 :520035f000 : 77760000
/dev/rdsk/c9t13d7 :EMC :SYMMETRIX :5771 :52005d1000 : 77760000
/dev/rdsk/c9t14d0 :EMC :SYMMETRIX :5771 :52005d5000 : 77760000
/dev/rdsk/c9t14d1 :EMC :SYMMETRIX :5771 :52005d9000 : 77760000
/dev/rdsk/c9t14d4 :EMC :SYMMETRIX :5771 :5200607000 : 77760000
/dev/rdsk/c9t14d5 :EMC :SYMMETRIX :5771 :520060b000 : 77760000
/dev/rdsk/c9t14d6 :EMC :SYMMETRIX :5771 :520060f000 : 77760000
/dev/rdsk/c9t14d7 :EMC :SYMMETRIX :5771 :5200613000 : 77760000
/dev/rdsk/c9t15d0 :EMC :SYMMETRIX :5771 :5200617000 : 77760000
/dev/rdsk/c9t15d1 :EMC :SYMMETRIX :5771 :520061b000 : 77760000
/dev/rdsk/c13t0d0 :HP :IR Volume :HP01 :LSI Inte : 71288832
/dev/rdsk/c13t0d0s1 :HP :IR Volume :HP01 :LSI Inte : 71288832
/dev/rdsk/c13t0d0s2 :HP :IR Volume :HP01 :LSI Inte : 71288832
/dev/rdsk/c13t0d0s3 :HP :IR Volume :HP01 :LSI Inte : 71288832
/dev/rdsk/c13t1d0 :HP :DG072A9BB7 :HPD0 :B365P730 : 71687369
/dev/rdsk/c13t2d0 :HP :DG072A9BB7 :HPD0 :B365P730 : 71687369


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tim Nelson
Honored Contributor

Re: disk list (w/o alternate)

I use a script that I wrote to find all disk info, size, primary/alt path, vginfo, lvinfo and mount point. It uses an input file with the controller info that I specify primaries and alternate paths.

0/10/0/0 eva1pri
1/10/0/0 eva1alt

or ( for multiple arrays and paths)

0/0/10/1/0.20.10 eva1pri
0/10/0/0.20.20 eva1alt
1/10/0/0.20.20 eva1alt
1/0/10/1/0.20.10 eva1pri
0/0/10/1/0.20.2 eva2pri
1/0/10/1/0.20.15 eva2alt
.....

The script will read in the above and depending on pri or alt relate the information differently depending on what type of path it is.

I am sure there are a number of more eloquent ways to determine, i.e. symm utils or eva utils but this was a simple solution.