- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hardware paths to the same disk
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
Forums
Discussions
Discussions
Discussions
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
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
12-20-2004 10:52 PM
12-20-2004 10:52 PM
What's the easiest way to find out all of the h/w paths and associated device names to a given disk (saying which is primary and alternatives) without using SAM ?
I know that ioscan (# ioscan -knfC disk) gives all paths to a disk but it doesn't appear to indicate where 2 different h/w paths are physically connected to the same disk.
Many thanks for any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2004 11:00 PM
12-20-2004 11:00 PM
Re: Hardware paths to the same disk
Use lvdisplay. For exemple, to see witch disks are in my lvol9, I do:
#lvdisplay -v /dev/vg00/lvol9|more
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2004 11:01 PM
12-20-2004 11:01 PM
Re: Hardware paths to the same disk
If the disks belong to a volumegroup:
# vgdisplay -v vg
Displays multiple links.
The xpinfo command ( for XP's) displays device files associated with a lun.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 01:41 AM
12-21-2004 01:41 AM
Re: Hardware paths to the same disk
inq
syminq
symdev list
sympd list
Show the disks by Disk Serial Number, so you can sort it and see the "duplicate paths".
In general, internal disks, which are usually HP, IBM or Seagates, don't have internal serial numbers that I remember. Or not unique ones..
You might try "diskinfo". He might have options that show "disk serial numbers".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 01:32 PM
12-22-2004 01:32 PM
Re: Hardware paths to the same disk
Run this over a fair set of pvs and make sure that you also think it's reliable. I've found that with this, I can quickly see which pvs are pointing to the same disk.
#
# @(#) get_pv_id - get the unique id of a physical volume
# John Joubert
#
if [ $# -lt 1 ]; then
echo "ERROR- no physical volume given"
echo "ex. get_pv_id c10t2d4"
echo ""
exit 1
fi
if [ -x /dev/dsk/$1 ]
then
od -N 20000 /dev/dsk/$1 | head -3 | tail -1 | cut -f 10 -d " "
else
echo "ERROR- invalid physical volume given"
echo "ex. get_pv_id c10t2d4"
echo ""
exit 2
fi
You should be able to cobble up a script which calls this one, and makes a list, and sorts by the disk id, and gives the pvname next to it...
sample...
02304 /dev/dsk/c34t3d1
02304 /dev/dsk/c21t3d1
...
If you need this written for you I can generate that pretty quickly, just let me know if you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2004 11:23 PM
12-23-2004 11:23 PM