- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Primary and Alternate Links
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
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
тАО01-14-2002 10:28 AM
тАО01-14-2002 10:28 AM
Primary and Alternate Links
I am looking for a way to determin primary and alternate links for disks that have not been added to a VG yet.
Dave
P.S. Without using SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:31 AM
тАО01-14-2002 10:31 AM
Re: Primary and Alternate Links
ioscan -fnC disk
Hope this helps.
...jcd..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:32 AM
тАО01-14-2002 10:32 AM
Re: Primary and Alternate Links
You have to learn how to read SCSI paths, and have PHYSICAL access to the system to determine what is wired to what.
First thing is to draw up a physical diagram.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:33 AM
тАО01-14-2002 10:33 AM
Re: Primary and Alternate Links
do
COUNT=`strings /etc/lvmtab | grep $DISK | wc -l`
if [ $COUNT -eq 0 ]
then
echo "$DISK is free"
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:34 AM
тАО01-14-2002 10:34 AM
Re: Primary and Alternate Links
Create a vg with only one set of disks. For ex., all C5* disks. Export the vg and import it with -s option. This is going to import all the secondary links too.
#mkdir /dev/vgtest
#mknod /dev/vgtest/group c 64 0x0?0000
#vgcreate vgtest /dev/dsk/c#t#d#
#vgextend vgtest (all the free devices but on the same path)
#vgexport -v -s -m /tmp/vgtest.map vgtest
mkdir,mknod process
#vgimport -v -s -m /tmp/vgtest.map vgtest
#vgdisplay -v vgtest
This should list out all the links. Once you noted down the details, you can do a vgexport to get rid of the volume group.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:35 AM
тАО01-14-2002 10:35 AM
Re: Primary and Alternate Links
Check this out:
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=396aa67d1dc484b9d3/screen=ckiDisplayDocument?docId=200000024614126
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 10:39 AM
тАО01-14-2002 10:39 AM
Re: Primary and Alternate Links
# ioscan -fnC disk.
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 2 0/0/1/0.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 0 0/0/2/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 3 0/12/0/0.0.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 5 0/12/0/0.0.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c3t0d1 /dev/rdsk/c3t0d1
disk 7 0/12/0/0.0.2 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
disk 4 1/4/0/0.1.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 6 1/4/0/0.1.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d1 /dev/rdsk/c4t1d1
disk 8 1/4/0/0.1.2 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d2 /dev/rdsk/c4t1d2
As you can see, the output shows a 0/12 path and a 1/4 path for LUNS and the corresponding device files. The paths 0/12/0/0.0.0 corresponds to /dev/dsk/c3t0d0 and 1/4/0/0.1.0 corresponds to /dev/dsk/c4t1d0, which in turn are the primary and alternate paths for LUN0 for a pvcreate(you only need pvcreate one of them). When ready to add them to the volume group, add both paths. You can add them in any order, as there are no rules as to which one needs to be pri or alt.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-14-2002 11:06 AM
тАО01-14-2002 11:06 AM
Re: Primary and Alternate Links
"Primary" and "Alternate" links only have meaning when a physical disk as been assigned to a volume group.
LVM does *not* load-balsnce I/O between controllers to a disk, Rather, the *first*, path defined (during vgcreate) becomes the primary. A second, or alternate link, can be added with 'vgextend' if it was not also specified during the 'vgcreate'.
It is not unusual to swap the primary and alternate links. This is done by 'vgreduce'ing the "primary", thereby causing the "alternate" or secondary to become the primary link; and following this procedure with 'vgextend' to add the original primary link as the (new) secondary or alternate one.
The /etc/lvmtab file will keep the primary link as the first; the secondary following.
This said, assuming that a 'pvcreate' has been done on a disk, you can determine what devices are candiates for primary or alternate links by examining the PVID (LVM's physical volume ID). These PVID's will be identical:
# echo 0x2008?2X|adb /dev/dsk/cXtYdZ|awk '{print tolower($2 $3)}'
Regards!
...JRF...