- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To identify the Alternate linked 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-30-2003 11:38 PM
12-30-2003 11:38 PM
Hi all,
I have been working on disk stations with alternate path to the same physical disk.
I usually identify the alternate disks by looking at card instance number of ioscan o/p. But still i don't feel this is a
proper/wise way to find out alternate link when server numbers are more (more than 400 .. ). I would like to know if any proper way is there
to identify the multi path disk, so that i can put it in shell script.
â diskinfo â v â command does not give any serial number so that I can use this string( serial number ) to match with anther disk device file to identify the alternate linked disk.
Waiting for the reply ...
Thanks in
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 11:41 PM
12-30-2003 11:41 PM
Re: To identify the Alternate linked Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2003 11:57 PM
12-30-2003 11:57 PM
Re: To identify the Alternate linked Disk
pvdisplay -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 12:19 AM
12-31-2003 12:19 AM
Re: To identify the Alternate linked Disk
Your way is absolutely right before disk is configured in LVM. Once it's part of LVM you can find it out using
vgdisplay and pvdisplay
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 12:59 AM
12-31-2003 12:59 AM
Re: To identify the Alternate linked Disk
Once it's in a VG however you can identify the VGID and disk number within the VG by extracting information from the VG header.
The following code works in HP-UX 11:00 where the variable DISK contains the disk name e.g. c6t0d0:-
VGID=$(dd if=/dev/rdsk/${DISK} bs=512 count=1 skip=16 2>/dev/null | xd -j16 -N8 -tx | awk '{print $2 $3}')
DISKID=$(dd if=/dev/rdsk/${DISK} bs=512 count=1 skip=16 2>/dev/null | xd -j28 -N4 -tu | head -1 | awk '{print $2}')
There may be better ways to run xd and interpret the results but the above work.
VGID will contain the Volume Group Identifier as reported by vgexport.
DISKID will report the disk number within the VG. This will be 0 for the first disk added, 1 for the second etc.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 01:26 AM
12-31-2003 01:26 AM
Re: To identify the Alternate linked Disk
Except that some disks don't have unique serial numbers.
I suspect that you can get the utility from the emc web site (?).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2003 02:54 AM
12-31-2003 02:54 AM
SolutionAlso, for disks that are multipathed, they share the SAME EMC Hypervolume number (serial number).
There is no way that I know of to identify an alternate disk before it is assigned to a VG. Because before then the are merely 2 paths to the same disk, neither one is primary nor secondary.
After it all paths have been added to a VG, then you can use vgdisplay to see which one has been "assigned" as alt and pri.
Typically, which ever one is listed first, in the vgcreate or vgextend command, is considered the primary. You can remove one to make the other one primary if you prefer them in a certain order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2004 08:22 AM
01-01-2004 08:22 AM
Re: To identify the Alternate linked Disk
My recollection is that EMC's inq command works for all types of disks. I've successfully used it to find information about built-in SCSI disks as well as those on the EMC array.
HTH,
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2004 02:26 AM
01-02-2004 02:26 AM
Re: To identify the Alternate linked Disk
I meant by calling it "proprietary" that it costs to use it. It must be purchased, not that it only works on storage in an EMC frame.