- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to identify alternate path
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
05-22-2001 06:48 AM
05-22-2001 06:48 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 06:52 AM
05-22-2001 06:52 AM
Re: How to identify alternate path
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 06:55 AM
05-22-2001 06:55 AM
Re: How to identify alternate path
Do a pvdisplay /dev/dsk/cxtydz and it will show you the alternate pathh too , however in case you can also do a ls -lt on the /dev/dsk for that disk device and check for the similar device created with the same time stamp ( crude way but it works ).
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 07:00 AM
05-22-2001 07:00 AM
Re: How to identify alternate path
Yes. Compare the PVID and VGID values of the devices in question. If the values are the same, then one device is an alternate link of the other:
# DEV=/dev/dsk/cXtYdZ
# PVID=`echo 0x2008?2X|adb $DEV|expand|tr -d " " |sed "s/2008:/PVID /"`
# VGID=`echo 0x2010?2X|adb $DEV|expand|tr -d " " |sed "s/2010:/VGID /"`
echo $PVID $VGID
...and repeat for the second device file...
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 07:13 AM
05-22-2001 07:13 AM
Re: How to identify alternate path
Is there a way to find alternate paths without knowing the hardware mappings and BEFORE any VG's are created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 07:23 AM
05-22-2001 07:23 AM
Re: How to identify alternate path
I know what I answered was after the vg's are created sorry . Try this.
Suppose you know atleast one path ( this you can find out doing a ioscan -fnC disk ) , check for the time stamp in /dev/dsk for that file , then grep for that time stamp you will get all the deivce files created witht that time stamp , so now you have narrowed down to few devices , an good analysis on the id will give you the answer , also try vgcrete using what you think is alternate path , it will not clreate unless both the paths point to the same disk.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 07:37 AM
05-22-2001 07:37 AM
Re: How to identify alternate path
Run this script - I stole it from a HP engineer.
It should give you all the info you require.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 04:29 PM
05-22-2001 04:29 PM
SolutionWhat I did was did on a system was diskinfo -v /dev/rdsk/cXtYdZ |grep Addit |awk '{print $4,$5,$6,$7,$8,$9,$10}'. This will give you a list such as this;
(32)37 (33)30 (34)32 (35)46 (36)30 (37)30 (38)30
Just replace each word with its ASCII code, so this disks serial number would be ?702f000 the ? is because I do not get the first number. So on a disk with two paths you would just have to match up the serial numbers such as from these two disks;
primary path /dev/dsk/c7t1d1
(32)37 (33)30 (34)32 (35)46 (36)30 (37)30 (38)30 so the serial number is ?702f000
And its Alternate Link /dev/dsk/c11t9d1
(32)37 (33)30 (34)32 (35)46 (36)30 (37)30 (38)30 this one is ?702f000
Now just a little scripting and you should be able to peak at your drives and find both paths to them. Give it a try and let me know if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2001 11:24 PM
05-22-2001 11:24 PM
Re: How to identify alternate path
10 points to Terry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2001 12:40 PM
05-28-2001 12:40 PM
Re: How to identify alternate path
One other methods that springs to mind is this:
dd if=/dev/rdsk/cXtYdZ of=/tmp/pri.out bs=64k count=100
dd if=/dev/dsk/cUtVdW of=/tmp/alt.out bs=64k count=100
You could do a strings on both files and compare them.
I like Terry's method though, I will try it when I am back in the office.
Cheers,
Joseph.