- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Howto identify alternately pathed disks prior to v...
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
07-02-2004 12:14 AM
07-02-2004 12:14 AM
today I have been provided with alternate paths of disks subsystem disks by our SAN admin.
Now I hesitate to really execute the
vgextend vg?? /dev/of/alternate/path
although I'm pretty confident to guess the correct devices.
Is there a way to make sure to have picked the right device file, or will vgextend moan anyway if it wasn't so?
In the manpage of vgextend it only says that a new attribute like "alternate" will appear for the added PV.
Well, I would like to avoid picking a wrong device that although it doesn't already belong to another VG (in that case I guess vgextend would complain) just happened to have been unassigned yet.
Ok, it wouldn't be much fuss to do a vgreduce if "alternate" didn't show up, but I'm not fond of the trial and error method.
I thought a consecutive verbose diskinfo on both device files for the deemed identical disks would reveal something like a unique ID,
but that's not the case.
Rgds.
Ralph
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:21 AM
07-02-2004 12:21 AM
Re: Howto identify alternately pathed disks prior to vgextend?
c0t4d0 and c1t4d0 are one and the same
and
c5t13d3 and c4t13d3 are the same
the controller number only varies....the rest all remains the same.
that is what my logic says
regds
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:24 AM
07-02-2004 12:24 AM
Re: Howto identify alternately pathed disks prior to vgextend?
you may compare the PV's unique ID which is part of the LVMREC. This is what actually vgextend does to detect alternate paths.
# echo "0d8200?UY" | adb /dev/dsk/xxxxxx
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:28 AM
07-02-2004 12:28 AM
Re: Howto identify alternately pathed disks prior to vgextend?
There is no direct way to know about alternative link. If you are using SAN like EMC then EMC command inq will give you this information.
In general we should trust storage admin for these information.
here are few old threads for same.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=340046
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:31 AM
07-02-2004 12:31 AM
Re: Howto identify alternately pathed disks prior to vgextend?
/dev/rdsk/c31t4d5 M(4) EMC SYMMETRIX 5670 651E7000 35354880
is the same disk as:
/dev/rdsk/c33t4d5 M(4) EMC SYMMETRIX 5670 651E7000 35354880
as both are EMC disk 1E7
If not on EMC, then I'm sure there must be some command you can run that comes with your SAN - talk to your SAN Admin.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:37 AM
07-02-2004 12:37 AM
Re: Howto identify alternately pathed disks prior to vgextend?
cute hack, but it only seems to distinguish the type of disk?
See the first two are the root/boot disks, the last two assumed alternately linked same disk:
# for c in 1 2 7 10;do echo 0d8200\?UY|adb /dev/dsk/c${c}t6d0;done
2008: 698319322 2001 Apr 22 05:52:45
2008: 698319322 2001 Apr 22 08:43:34
2008: 690319332 2003 May 28 16:02:45
2008: 690319332 2003 May 28 16:02:45
Not much difference in the first two, that indeed are laternate boot path but referring to different disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:46 AM
07-02-2004 12:46 AM
Re: Howto identify alternately pathed disks prior to vgextend?
I'm afraid, I think we relinquished our EMC.
So the disks attached come from a HITACHI box, e.g. according to adb example above
# for i in 160 250;do ioscan -knfCdisk -I $i;done
Class I H/W Path Driver S/W State H/W Type Description
===================================================================================
disk 160 1/0/0/0.98.13.19.0.2.2 sdisk CLAIMED DEVICE HITACHI OPEN-9
/dev/dsk/c7t2d2 /dev/rdsk/c7t2d2
Class I H/W Path Driver S/W State H/W Type Description
====================================================================================
disk 250 1/2/0/0.119.34.19.0.6.0 sdisk CLAIMED DEVICE HITACHI OPEN-9
/dev/dsk/c10t6d0 /dev/rdsk/c10t6d0
I will talk to our SAN admin for an extra lesson, but in general I think I can trust them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:56 AM
07-02-2004 12:56 AM
Re: Howto identify alternately pathed disks prior to vgextend?
I had the guts to issue the vgextend, and LVM correctly detected the alternate links.
# vgdisplay -v vgdat5|sed -n '/--- Ph/,$p'
--- Physical volumes ---
PV Name /dev/dsk/c7t5d4
PV Name /dev/dsk/c10t5d4 Alternate Link
PV Status available
Total PE 880
Free PE 0
Autoswitch On
PV Name /dev/dsk/c7t5d5
PV Name /dev/dsk/c10t5d5 Alternate Link
PV Status available
Total PE 880
Free PE 0
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 12:57 AM
07-02-2004 12:57 AM
Solutionthe PVID consists of 8 bytes. The 1st 4 bytes contain the machine id (uname -i) of the system where pvcreate has been run. The latter 4 bytes are the timestamp.
So, in your example there is indeed a difference between the 1st two disks... they have a different timestamp. :-) The id _and_ the timestamp need to be identical for alternate paths.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 01:07 AM
07-02-2004 01:07 AM
Re: Howto identify alternately pathed disks prior to vgextend?
# vgextend vgdat3 $(vgdisplay -v vgdat3|awk '/PV Name/{print$NF}'|sed 's/c7/c10/g')
Volume group "vgdat3" has been successfully extended.
Volume Group configuration for /dev/vgdat3 has been saved in /etc/lvmconf/vgdat3.conf
# vgdisplay -v vgdat3|grep PV\ Name
PV Name /dev/dsk/c7t2d6
PV Name /dev/dsk/c10t2d6 Alternate Link
PV Name /dev/dsk/c7t2d7
PV Name /dev/dsk/c10t2d7 Alternate Link
PV Name /dev/dsk/c7t3d0
PV Name /dev/dsk/c10t3d0 Alternate Link
PV Name /dev/dsk/c7t3d1
PV Name /dev/dsk/c10t3d1 Alternate Link
PV Name /dev/dsk/c7t3d2
PV Name /dev/dsk/c10t3d2 Alternate Link
PV Name /dev/dsk/c7t3d3
PV Name /dev/dsk/c10t3d3 Alternate Link
PV Name /dev/dsk/c7t3d4
PV Name /dev/dsk/c10t3d4 Alternate Link
PV Name /dev/dsk/c7t3d5
PV Name /dev/dsk/c10t3d5 Alternate Link
PV Name /dev/dsk/c7t3d6
PV Name /dev/dsk/c10t3d6 Alternate Link
PV Name /dev/dsk/c7t3d7
PV Name /dev/dsk/c10t3d7 Alternate Link
PV Name /dev/dsk/c7t4d0
PV Name /dev/dsk/c10t4d0 Alternate Link
Dietmar, your right the time stamps of the boot disks do differ indeed.
Is the knowledge of the Bytes' meaning public folklore, or is it avidly kept secret by a few HP gurus (i.e. some official docs available?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 01:12 AM
07-02-2004 01:12 AM
Re: Howto identify alternately pathed disks prior to vgextend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 01:13 AM
07-02-2004 01:13 AM
Re: Howto identify alternately pathed disks prior to vgextend?
So far our SAN admin only provided alternate paths to two of three cluster nodes (depending on premises of servers).
So I can only do a vgexport and vgimport of new LVM meta data (about new paths) on only one of the other nodes.
Will this impair cluster functinality (more than it has been uptil now)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2004 01:19 AM
07-02-2004 01:19 AM
Re: Howto identify alternately pathed disks prior to vgextend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 05:38 AM
07-08-2004 05:38 AM
Re: Howto identify alternately pathed disks prior to vgextend?
Be sure to understand that this should give you an idea if you have the same PV, NOT whether or not you are using the same disk...
(just making sure we're all on the same page).
#
# @(#) get_pv_id - get the unique id of a physical volume
#
#
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