- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pvchange -s
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
06-15-2006 05:23 AM
06-15-2006 05:23 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:33 AM
06-15-2006 05:33 AM
Re: pvchange -s
The "permanent" way to swap a primary and alternate pvlink is to 'vgreduce' the primary pvlink, thereby promoting the secondary (alternate) pvlink to a primary. Then, 'vgextned' the original path just 'vgreduce'd. This adds the old primary link back as an "alternate".
If you do a 'strings '/etc/lvmtab' before and afterwards, you will see that the primary link is simply the *first* path listed. Of course, you can have up to seven (7) alternate links for each primary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:35 AM
06-15-2006 05:35 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:43 AM
06-15-2006 05:43 AM
Re: pvchange -s
The 'pvchange -s pv_path' does work --- it causes LVM to start using the pv_path specified. It is not "permanent" in the sense that it the '/etc/lvmtab' is modified changing the order of pv_links specified therein. Hence, upon reboot, your change is lost.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:50 AM
06-15-2006 05:50 AM
Re: pvchange -s
lvdisplay:
/dev/dsk/c4t3d0
/dev/dsk/c6t11d0
#pvchange -s /dev/dsk/c6t11d0
lvdisplay:
/dev/dsk/c4t3d0
/dev/dsk/c6t11d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:54 AM
06-15-2006 05:54 AM
Re: pvchange -s
It doesnt look like alternate paths to me, but more like 2 PVs in a same group, and your lv spans on both...
Just thoughts
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:58 AM
06-15-2006 05:58 AM
Re: pvchange -s
Use 'vgdisplay -v vgNN' to see what LVM considers a primary versus an alternate link.
This will match the order (primary first) as seen in '/etc/lvmtab'.
'pv_links' belong to the *volume group* layer.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 05:59 AM
06-15-2006 05:59 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:00 AM
06-15-2006 06:00 AM
Re: pvchange -s
Use 'vgdisplay -v vgNN' to see what LVM considers a primary versus an alternate link.
This will match the order (primary first) as seen in '/etc/lvmtab' or governed by the last 'pvchange -s'.
'pv_links' belong to the *volume group* layer.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:07 AM
06-15-2006 06:07 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:16 AM
06-15-2006 06:16 AM
Re: pvchange -s
From the 'pvchange(1M)' manpages, for the '-S' option [note the CAPITAL letter]: "LVM is directed to automatically switch from the path it is using whenever a better path to the physical volume is available. LVM will switch paths when a better path recovers (after it had failed earlier), or if the current path fails and another path is available. This is the default."
Thus, reread my last posts and compare the information shown from 'strings /etc/lvmtab' and 'vgdisplay -v vgNN' using (1) 'pvchange -s' versus 'vgreduce'/'vgextend'.
LVM does *not* use alternate links to dynamically load-balance I/O traffic. On EMC SANs you can purchase PowerPath to provide this feature.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:28 AM
06-15-2006 06:28 AM
Re: pvchange -s
If you have 2 disks and the LVOLs on them are mirrored, you really do not gain anything by trying to make one the "primary" over the other. When HP-UX does a read, it will read the data from the disk that responds the fastest. When doing writes, it has to write to both disks to keep the mirror sync'ed so trying to switch the primary will not give a performance gain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:30 AM
06-15-2006 06:30 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:31 AM
06-15-2006 06:31 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:33 AM
06-15-2006 06:33 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2006 06:36 AM
06-15-2006 06:36 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 10:20 AM
06-19-2006 10:20 AM
Re: pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 01:40 AM
06-25-2006 01:40 AM
Solution1. One is Mirroring: In this scenario there is nothing like primary and secondary and it works like patrik explained above ( while reading it reads from the disk which has fast access and while writing it writes to both), so there is no funda of primary and secondary.
2. Second thing is alternate paths: In this scenario both paths are pointing to the same disk ( no mirror), So if we have 10 VGs with alternate paths. Suppose one starts with c4 and other with c11, in that case it is advisable to use load sharing. Mean set primary path c4 for 5 vgs and c11 for rest, so both the interface cards will carry the data in shared mode. ( Not to overload one interface while other is carrying no data at all).
I hope it clears the doubt, please feel free to post if you still have doubts...
Cheers..