- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing Alterante Paths.
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
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
12-14-2005 08:31 PM
12-14-2005 08:31 PM
Changing Alterante Paths.
I have the following PV configuration.
pvdisplay -v /dev/dsk/c4t4d1 | pg
Device file path "/dev/dsk/c4t4d1" is an alternate path
to the Physical Volume. Using Primary Link "/dev/dsk/c6t4d1".
--- Physical volumes ---
PV Name /dev/dsk/c6t4d1
PV Name /dev/dsk/c4t4d1 Alternate Link
PV Name /dev/dsk/c15t4d1 Alternate Link
PV Name /dev/dsk/c16t4d1 Alternate Link
The correct one should be
PV Name 33 B /dev/dsk/c4t4d1
PV Name /dev/dsk/c15t4d1 Alternate Link
Can anybody help me out how to change this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:43 PM
12-14-2005 08:43 PM
Re: Changing Alterante Paths.
you need to:
vgreduce /dev/your_vg_name /dev/dsk/c6t4d1
vgextend /dev/your_vg_name /dev/dsk/c6t4d1
then you will have such order:
/dev/dsk/c4t4d1
/dev/dsk/c15t4d1
/dev/dsk/c16t4d1
/dev/dsk/c6t4d1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:46 PM
12-14-2005 08:46 PM
Re: Changing Alterante Paths.
The best way to do this is to set it while creating VG.
If you remove the VG from the three alternate links than obviously the forth one will remina as primary. At this stage you can extend it back to the same PVs.
#vgreduce /dev/vgname /dev/dsk/c6t4d1
#vgreduce /dev/vgname /dev/dsk/c15t4d1
#vgreduce /dev/vgname /dev/dsk/c16t4d1
If after first command itself it does prompt for the correct device to be primary then you need not to reduce it from other two. Can simply reextend it to the same disk.
#vgextend /dev/vgname /dev/dsk/c6t4d1
Repeat for others if required.
Good Luck.
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:55 PM
12-14-2005 08:55 PM
Re: Changing Alterante Paths.
pvchange -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:59 PM
12-14-2005 08:59 PM
Re: Changing Alterante Paths.
#pvchange -s /dev/dsk/c4t4d1
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:41 PM
12-14-2005 09:41 PM
Re: Changing Alterante Paths.
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:44 PM
12-14-2005 09:44 PM
Re: Changing Alterante Paths.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:04 AM
12-15-2005 12:04 AM
Re: Changing Alterante Paths.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:15 AM
12-15-2005 12:15 AM
Re: Changing Alterante Paths.
You are correct, using 'pvchange' will not retain you new pvlink order following a reboot.
The "correct" way is to 'vgreduce' and 'vgextend' so that you achieve the order of alternate paths you want.
You probably also want to make sure that allow a switch back to the assigned primary path in the event of a failure of the primary:
# pvchange -S y /dev/dsk/cXtYdZ
See the man pages for 'pvchange' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:16 AM
12-15-2005 12:16 AM
Re: Changing Alterante Paths.
To change it permanently (across VG deacivation/reactivation) you have to change the order in /etc/lvmtab by using vgreduce and vgextend commands - look at my previous reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:23 AM
12-15-2005 12:23 AM
Re: Changing Alterante Paths.
The alternative has allready been provided.
Try this and should exist even after reboot.
HTH,
Devender