- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM Load Balancing
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
02-04-2003 03:59 PM
02-04-2003 03:59 PM
LVM Load Balancing
an alternate?
The reason I had to ask this "silly" question was I saw disk I/O coming down two different hardware paths that correspond to the same logical EMC drive while using Perfview. Both had the same time stamp but different values in their fields. One path was my primary and the other was the alternate and I made sure no LVM failures had occurred and I confirmed the drive relationship using a vgscan, ioscan and an EMC syminq. Could this be a quirk in Measureware/ Perfview looking at an EMC? BTW. I just checked sar and it shows I/O on the alternate link as well. If there has been no failover to the alternate path, and we definitely don't have EMC's Power Path, how can this be?
Thanks.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 04:04 PM
02-04-2003 04:04 PM
Re: LVM Load Balancing
See this thread on PV-Links. It might provide your answer.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc51431ec5e34d711abdc0090277a778c,00.html
Click deep, the answers are there sir.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 04:08 PM
02-04-2003 04:08 PM
Re: LVM Load Balancing
What you heard is correct if and only if you set your system to default configuration where one path will be always active and other servers as passive.
However, you can change this behaviour and make use of both the links by changing their order in /etc/lvmtab by selective vgreduce and vgextend commands. Since this is manual, you will need to understand how the disk subsystem is laid out on the back else your will be counterfeiting the loadbalance on the other side.
For the other question look at the order of PVs in your /etc/lvmtab. For ex., if part of your /etc/lvmtab looks like
vg01
/dev/dsk/c0t0d0
/dev/dsk/c0t0d1
/dev/dsk/c1t0d2
/dev/dsk/c1t0d0
/dev/dsk/c1t0d1
/dev/dsk/c0t0d2
..
where c0 and c1 represent controllers of two hbas, then the activity to t0d2 device will always be through the controller c1.
You can also find it out by "vgdisplay" and note down the primary and alternate paths.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 04:13 PM
02-04-2003 04:13 PM
Re: LVM Load Balancing
Steve has pointed on such out for you. In regards to EMC, this would only happen if you have POWERPATH. My guess is that you have some alternate paths set up as primaries or you have a dud controller. Check the outputs of your 'vgdisplay -v' to check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 04:59 PM
02-04-2003 04:59 PM
Re: LVM Load Balancing
The idea of alternating links when creating logical volumes works quite well too. lvols 1,2,3 should all be on the same link for sanity (should work OK but these are the most important lvols to get started). But alternating lvols 4+ is an easy way to load balance.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 05:16 PM
02-04-2003 05:16 PM
Re: LVM Load Balancing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 06:03 PM
02-04-2003 06:03 PM
Re: LVM Load Balancing
As Bill pointed out, LVM does access mirror disk for reads. And if the mirror disk is on the other path, that explains it.
However, I doubt that you setup such thing on your system as you are accessing EMC. Apart from perfview, did you try a sar -d 2 200 and confirm if you are seeing the disk being accessed through both links?. I have systems with more than 200 disks and I have never seen this kind of behaviour.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 08:21 PM
02-04-2003 08:21 PM
Re: LVM Load Balancing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 09:05 PM
02-04-2003 09:05 PM
Re: LVM Load Balancing
Since we were in hurry, we recreated lvmtab with vgscan option. Originally we did use alternate controllers disk paths ( per Sri) while creating VGs but with new lvmtab due to sequential scanning of the buses, we lost the "alternate path" usage.
We are currently seeing all disks are hitting on one controller. How to fix this online with minimum impact and survive next reboot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 09:12 PM
02-04-2003 09:12 PM
Re: LVM Load Balancing
If you looked at one of the same posts, the way to do it online is given. For ex., if your lvmtab says
vg01
/dev/dsk/c0t0d0
/dev/dsk/c0t0d1
/dev/dsk/c1t0d0
/dev/dsk/c1t0d1
In the above case both c0's are primary. To make c1t0d1 as the primary disk, do
vgreduce vg01 /dev/dsk/c0t0d1
vgextend vg01 /dev/dsk/c0t0d1
This will make lvmtab to look like
vg01
/dev/dsk/c0t0d0
/dev/dsk/c1t0d0
/dev/dsk/c1t0d1
/dev/dsk/c0t0d1
Since c1t0d1 is appearing before c0t0d1, it will be treated as primary link.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 09:22 PM
02-04-2003 09:22 PM
Re: LVM Load Balancing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 10:44 PM
02-04-2003 10:44 PM
Re: LVM Load Balancing
Thanks for the heads up. We are running the June 2002 Diag bundle.
Tom