- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how do I swap one of the mirrored root disks?
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
01-12-2005 03:19 AM
01-12-2005 03:19 AM
I've looked for documentation how I can swap a mirrored root disk. One of our root disks is broken and I want to swap it.
The system is a HP 9000 N-Class running hpux 11.00 and we are using lvm.
I have the understanding that i have to take all lvols out of the mirror with lvreduce, change the broken disk, run mkboot, lvlnboot and then lvextend to set up the mirror again.
But what is the meaning of one-way, two-way and three-way mirroring? How can I determine what is the primary boot disk? How do I control which way the mirroring is done (from A to B or from B to A)?
Can anybody help me please?
regards
Morten K
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 03:28 AM
01-12-2005 03:28 AM
Re: how do I swap one of the mirrored root disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 03:30 AM
01-12-2005 03:30 AM
Re: how do I swap one of the mirrored root disks?
you already know which is the working disk as you said one of the disks is broken.
Your understanding is correct:
unmirror
remove disk
rebuild
sync
If you use SAM it will pretty much allow you to do all of those things.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 03:33 AM
01-12-2005 03:33 AM
Re: how do I swap one of the mirrored root disks?
# setboot
will display your Primary and Alternate bootpath.
You do not have to use lvreduce just swap the broken disk for a new one
# vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtydz
# vgchange -a y /dev/vg00
# vgsync
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 03:34 AM
01-12-2005 03:34 AM
SolutionLet's assume the bad disk is c0t6d0.
RAW=/dev/rdsk/c0t6d0
COOKED=/dev/dsk/c0t6d0
1) Remove the failed disk and insert the replacement disk.
2) vgcfgrestore -n /dev/vg00 ${RAW}
vgchange -a y /dev/vg00
3) mkboot ${RAW}
mkboot -a "hpux -lq (;0)/stand/vmunix" ${RAW}
4) lvlnboot -R
5) vgsync /dev/vg00
At this point, you are fully recovered but it's always a good idea to make sure that you are able to boot from this disk.
The "way" of mirroring simply means the number of mirror copies maintained for a given LVOL. You really need to abandon the idea of the direction of mirroring with respect to LVM because it has no meaning. All of the "copies" (including the original) are simply mirrors and all are equally valid.
The exception to this is an lvsplit/lvmerge where you are intentionally splitting off LVOL's for backup purposes and will later merge them back into their normal roles. In this case, the lvmerge definitely has a direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2005 03:51 AM
01-12-2005 03:51 AM
Re: how do I swap one of the mirrored root disks?
There is no need to do lvreduce or anything. Just replaced the failed disk/do vgcfgrestore/ do vgchnage -a y /dev/vg00 to activate the disk and do vgsync.
Take a look at this doc from itrc. documented procedure in replacing a lvm disk.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000073905420
The itrc doc id is KBAN00000347.
Hope this helps.
Regds