- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alt Links: lvmtab vs 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
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
тАО05-06-2003 12:19 PM
тАО05-06-2003 12:19 PM
If one controller precedes the other then the given controller is Primary.
We can change the primary path via vgreduce and this is reflected in lvmtab (i.e. the order of the devices).
If we use pvchange -s, the disk device can become primary but it's not reflected in lvmtab, but is in vgdisplay.
In this case does lvmtab preside over vgdisplay?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:24 PM
тАО05-06-2003 12:24 PM
Re: Alt Links: lvmtab vs pvchange -s
In reality, the *first* path defined for a disk in '/etc/lvmtab' constitutes the primary link. The behavior you see is as expected. To permanently change a primary to a secondary link, promoting the secondary to primary, use 'vgreduce
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:27 PM
тАО05-06-2003 12:27 PM
Re: Alt Links: lvmtab vs pvchange -s
Since vgscan search each disks on the system in the order of where
they have configured. When vgscan reconstruct /etc/lvmtab file, the
order of disks in the file could be different than it was before. The
following will happen:
The designated primary and alternate link might not be the same
as it was configured before.
Alternate links will be added to the /etc/lvmtab file even if
they might not be configured in the volume group initially.
The boot information might be incorrect due to different order of
disks in the new /etc/lvmtab file.
In order to correct the above problems, do the following:
Use vgchange with -a option to activate all volume groups.
Use lvlnboot with -R option to correct boot information on disk.
Use vgreduce to reduce any alternate links that were added to the
/etc/lvmtab file by vgscan, but they were not needed.
If the original primary path of a disks become an alternate path
after /etc/lvmtab file is reconstructed, the order can be easily
reverted by using vgreduce to remove the primary path and use
vgextend to add the path back again.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:29 PM
тАО05-06-2003 12:29 PM
Re: Alt Links: lvmtab vs pvchange -s
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:35 PM
тАО05-06-2003 12:35 PM
Solution# pvchange -s
.. it got switched in the vgdisplay output but not in lvmtab file (this is expected). Next I rescan/recreate lvmtab file to see if it would put them in order as it appear in vgdisplay. It does not. It seems using pvchange does not change the outcome of how the disks are arranged in lvmtab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:44 PM
тАО05-06-2003 12:44 PM
Re: Alt Links: lvmtab vs pvchange -s
ok
thanks for that!
thanks to all...