- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding alt PV links to VG
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
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
тАО04-03-2007 07:43 AM
тАО04-03-2007 07:43 AM
Adding alt PV links to VG
# vgcreate vgTEST /dev/dsk/c17t4d5
# vgdisplay -v vgTEST | grep "PV Name"
shows only /dev/dsk/c17t4d5. It does not automatically add the alt link. It has to be added manually. Is it designed this way? If so, is there any way to have LVM automatically discover the alt link and add to the VG.
The reason I am asking is, I have several VGs which have only one path showing is vgdisplay.
I need to add alt links to all these VGs. Rather than going thru scripting or manul procedures, is there any option in LVM to do it.
Thank you all for your replies.
Rajos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 07:48 AM
тАО04-03-2007 07:48 AM
Re: Adding alt PV links to VG
There is no way I know of to do it automatically. You have to manually, or via a script, vgextend to add the alternate paths to each VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 08:39 AM
тАО04-03-2007 08:39 AM
Re: Adding alt PV links to VG
No, LVM doesn't do it for you automatically. Unfortunately, you will have to manually add all the paths to the VG.
But if you have any of the MPIO softwares installed (like powerpath or securepath), it doesnt matter how many paths you added to the volume group, the MPIO sw will take care of load balancing.
One more thing to keep in mind while adding the alternate links manually is load balancing. You want to alternate between the cluster ports (CL1 and CL2 incase of XP) so that the IO is load balanced.
Do remember, with LVM, the IO is only through the primary link. Rest of the links are only standby (i.e active-standby configuration).
Hope this helps
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2007 10:33 AM
тАО04-03-2007 10:33 AM
Re: Adding alt PV links to VG
This option will store the VGID into the map file when exporting a VG, and when importing, it will go through all disks visible to the system looking for that VGID. The first matching device becomes the primary path, and all others with the same PVID (=other paths to the same PV) automatically become alternate paths. If the VG contains many PVs, this is automatically repeated for each PV in the VG.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 02:25 AM
тАО04-04-2007 02:25 AM
Re: Adding alt PV links to VG
# vgdisplay -v | grep "PV Name" >> pvf
Use awk, cut so that the contents of pvf look
like below :
# cat pvf
/dev/dsk/c6t5d5
/dev/dsk/c11t6d0 Alternate Link
/dev/dsk/c6t5d6
/dev/dsk/c11t6d1 Alternate Link
/dev/dsk/c17t2d7
/dev/dsk/c18t2d7 Alternate Link
/dev/dsk/c7t6d2
/dev/dsk/c6t9d6
/dev/dsk/c11t9d6 Alternate Link
/dev/dsk/c6t14d2
/dev/dsk/c11t14d2 Alternate Link
/dev/dsk/c7t5d6
/dev/dsk/c6t14d3
/dev/dsk/c11t14d3 Alternate Link
# cat pvf.awk # little awk script
NF ~ /1/ { if ( FLAG == 1 ) print SAVE; FLAG=1; SAVE=$1 }
NF ~ /3/ { FLAG=0 }
# awk -f pvf.awk pvf # run and device which dont have alt links are displayed.
/dev/dsk/c7t6d2
/dev/dsk/c7t5d6
Rajos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 04:47 AM
тАО04-04-2007 04:47 AM
Re: Adding alt PV links to VG
"There is a new feature introduced in the Mass Storage Subsystem on this version of HP-UX that also supports multiple paths to a device and allows access to the multiple paths simultaneously. The Mass Storage Subsystem will balance the I/O load across the valid paths. This new multi-path behavior is enabled and disabled through the use of the scsimgr command. See scsimgr(1M) for details.
It is no longer required or recommended to configure LVM with alternate links"
see
http://docs.hp.com/en/B2355-60130/vgextend.1M.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 04:51 AM
тАО04-04-2007 04:51 AM
Re: Adding alt PV links to VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2007 04:52 AM
тАО04-04-2007 04:52 AM