- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to identify disk hardware path from device...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 11:02 AM
тАО06-12-2009 11:02 AM
This is rx4640 running 11.23
from the disk device file such as /dev/dsk/c3t0d0, I need to get the hardware path programmatically. Is there an ioscan option that will combine the two?
#: ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-B
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3
disk 1 0/1/1/1.0.0 sdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s1 /dev/rdsk/c3t0d0s3
disk 3 0/2/1/0.4.124.0.0.4.0 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c4t4d0 /dev/rdsk/c4t4d0
disk 4 0/3/1/0.3.124.0.0.4.0 sdisk CLAIMED DEVICE HITACHI OPEN-V
/dev/dsk/c6t4d0 /dev/rdsk/c6t4d0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 11:32 AM
тАО06-12-2009 11:32 AM
Solutionioscan -fnCdisk
/dev/dsk/c4t4d0 -- c4 refers to teh Controller Instance number 4, t$-- SCSI target ID 4 and d0 - LUN ID 0.
and 0/2/1/0.4.124.0.0.4.0 is the hardware path of the disk.
The second column in ioscan -fnCdisk is the HW_path for the disk.
ioscan -fnC ext_bus
shows you the Interface Instances in which at Instcnace 4 you shall find the Controller to which the disk /dev/dsk/c3t0d0 is attached.
0/2/1/0 is the hardware path of the controller to which the Disk is connected, can be SCSI or FC interface.
The second column in the ioscan -fnCext_bus is the HW_Path of the Interface.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 11:32 AM
тАО06-12-2009 11:32 AM
Re: How to identify disk hardware path from device file
Disk layout
LVM disk Device file HW Addr size vol. grp
IBM DMVS09D /dev/dsk/c1t0d0 0/0/1/1.0.0 8683 /dev/vg01
IBM DMVS09D /dev/dsk/c2t0d0 0/0/2/0.0.0 8683 /dev/vg01
SEAGATE ST318404LC /dev/dsk/c1t2d0 0/0/1/1.2.0 17366 /dev/vg00
IBM DMVS18D /dev/dsk/c2t2d0 0/0/2/0.2.0 17366 /dev/vg00
SEAGATE ST39102LC /dev/dsk/c4t0d0 0/4/0/0.0.0 8683 /dev/vg02
SEAGATE ST39204LC /dev/dsk/c5t0d0 0/7/0/0.0.0 8683 /dev/vg02
IBM DMVS09D /dev/dsk/c4t1d0 0/4/0/0.1.0 8683 /dev/vg04
IBM DMVS09D /dev/dsk/c5t3d0 0/7/0/0.3.0 8683 /dev/vg04
SEAGATE ST39204LC /dev/dsk/c4t3d0 0/4/0/0.3.0 8683 /dev/vg03
SEAGATE ST39204LC /dev/dsk/c5t2d0 0/7/0/0.2.0 8683 /dev/vg03
HP 73.4GATLAS10K3_73_SCA /dev/dsk/c4t13d0 0/4/0/0.13.0 70007 /dev/vg05
HP 73.4GATLAS10K3_73_SCA /dev/dsk/c5t1d0 0/7/0/0.1.0 70007 /dev/vg05
non-LVM disk Device file HW Addr size swap
HP DVD-ROM 304 /dev/dsk/c3t2d0 0/0/2/1.2.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 11:52 AM
тАО06-12-2009 11:52 AM
Re: How to identify disk hardware path from device file
# ioscan -funC disk | tr -s '[:space:]'| cut -f 3 -d " "
H/W
======================================================================
0/0/1/1.0.0
/dev/rdsk/c1t0d0
0/0/1/1.2.0
/dev/rdsk/c1t2d0
0/0/2/0.0.0
/dev/rdsk/c2t0d0
0/0/2/0.2.0
/dev/rdsk/c2t2d0
0/0/2/1.2.0
/dev/rdsk/c3t2d0
0/4/0/0.0.0
/dev/rdsk/c4t0d0
0/4/0/0.1.0
/dev/rdsk/c4t1d0
0/4/0/0.3.0
/dev/rdsk/c4t3d0
0/4/0/0.13.0
/dev/rdsk/c4t13d0
0/7/0/0.0.0
/dev/rdsk/c5t0d0
0/7/0/0.1.0
/dev/rdsk/c5t1d0
0/7/0/0.2.0
/dev/rdsk/c5t2d0
0/7/0/0.3.0
/dev/rdsk/c5t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 12:43 PM
тАО06-12-2009 12:43 PM
Re: How to identify disk hardware path from device file
The only user input is the PRIMARY_DISK and MIRROR_DISK. Such as c3t0d0 and c1t0d0. The rest I want the script to figure out.
The script needs to set booth path, via setboot -p
I need the script to find out the Hardware path, such as 0/1/1/0.1.0 from the /dev/dsk/c3t0d0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2009 02:08 AM
тАО06-13-2009 02:08 AM
Re: How to identify disk hardware path from device file
Take a look at the script I wrote when
I was teaching HP-UX SNA I last year:
http://www.circlingcycle.com.au/Unix-sources/HP-UX-11x-LVM-mirroring.sh.txt
You can use it or modify if you wish.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2009 01:45 AM
тАО06-14-2009 01:45 AM
Re: How to identify disk hardware path from device file
the "lssf" commadn will of course show you the HW path for a device so simnply do:
lssf /dev/dsk/c2t1d0
And to just get the HW path?
lssf /dev/dsk/c2t1d0 | awk '{ print $15 }'
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 07:38 AM
тАО06-15-2009 07:38 AM
Re: How to identify disk hardware path from device file
That was what I wanted, thank you.
lssf /dev/dsk/c2t1d0 | awk '{ print $15 }'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 07:39 AM
тАО06-15-2009 07:39 AM
Re: How to identify disk hardware path from device file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 07:56 AM
тАО06-15-2009 07:56 AM
Re: How to identify disk hardware path from device file
lvlnboot -v
But it does not guarantee that it will have the mirror disk in there.
lssf is the best way to go.