- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Swaping a primary and alternate link to a devi...
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
10-10-2002 11:27 AM
10-10-2002 11:27 AM
Swaping a primary and alternate link to a device???
Unfortunatly, the links were created wrong. All 6 devices list the c5xxxx as the primary links and the c10xxxx as the alternate links. This was caught too late and the system is live and part of a cluster.
My question is this...Is there a way to swap the primary links and alternate links for just the three devices that are wrong? I don't want to lose all the data on the RAID already.
Any help would be apreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:32 AM
10-10-2002 11:32 AM
Re: Swaping a primary and alternate link to a device???
This is easy and quick to do. For every *primary* link that you want to make a *secondary* (alternate) one, do:
# vgreduce /dev/vgXX /dev/dsk/cXtYdZ # ...a primary...
# vgextend /dev/vgXX /dev/dsk/cXtYdZ #...the *same* link just 'vgreduced' !!!
This promotes the secondary (alternate) to a primary when the original primary is removed. Adding the original primary back to the volume group now makes it the secondary.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:32 AM
10-10-2002 11:32 AM
Re: Swaping a primary and alternate link to a device???
No. It is very easy. Do a vgreduce followed by a vgextend. For ex., if you want to make c10t0d0 as the primary, you would do the following,
#vgreduce vg?? /dev/dsk/c5t0d0
#vgextend vg?? /dev/dsk/c5t0d0
This will make c10t0d0 as the primary link as it's order will move up in /etc/lvmtab.
You will need to export and import the volume groups on the failover node. One way is to export and import it with -f option (Look at vgexport|vgimport man pages). Or wait until the package fails over to the other node and do the same excersize there too.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 11:42 AM
10-10-2002 11:42 AM
Re: Swaping a primary and alternate link to a device???
#pvchange -s /dev/dsk/cxtydz , online to to make that disk as a primary link .
If you want that to become permanent ,do
#pvchange -S n /dev/dsk/cxtydz .
Do a man on pvchange for more info .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2002 12:00 PM
10-10-2002 12:00 PM
Re: Swaping a primary and alternate link to a device???
If you see any of the VG missing an alternate link, type this command and will create the alternate link:
# vgchange -a y /dev/vg_name
Also refer this document (TKB #KBRC00001434):
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063236043