- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Break Root Mirror and Re-Create It
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-15-2002 05:35 AM
10-15-2002 05:35 AM
I created mirror on root volumn disk with the 2nd disk. Before the server is on production, I would like to know if I can break the mirror, boot from the 2nd disk, then re-mirror the 1st root disk to the 2nd one.
Is it possible and how to impletement it? It seems to be a fire drill, but somebody on top want to see it work.
Should help comes in, very appreciated.
Steven
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 05:59 AM
10-15-2002 05:59 AM
Re: Break Root Mirror and Re-Create It
By the way, I suggest that you add the -lq to the mkboot -a string of both the primary and alternate boot disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:01 AM
10-15-2002 06:01 AM
Re: Break Root Mirror and Re-Create It
Now the steps...
o c1t2d0 is primary mirrored disk & c2t2d0 is the 2ndary mirrored disk.
o Assuming (lvol1=/stand;lvol2=primary swap;lvol3=/;lvol4->lvol8 representing the rest of root's FS)
To break the mirror..
# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t2d0
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t2d0
# lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c2t2d0
==> Repeat for the rest of the lvols.
# vgreduce vg00 /dev/dsk/c2t2d0
# lvlnboot -v
==> Just checking. c2t2d0 should be out.
Change boot path ..
# setboot
=> Display boot path.
# setboot -p 0/0/2/0.2.0
=> Change primary boot path to c2t2d0
# setboot
=> Check again.
Now shutdown -r the server.
After it comes up .. re-do the mirroring process ..
# pvcreate -f -B /dev/rdsk/c1t2d0
# mkboot -l /dev/rdsk/c1t2d0
=> Create boot track (place boot utilities in boot area), -l means treat device as LVM disk.
# mkboot -a "hpux -lq" /dev/rdsk/c1t2d0
=> Add AUTO file in boot LIF area, "lq" option is to bypass quorum check.
=> Repeat for primary disk (c2t2d0) as well.
# lifcp /dev/rdsk/c1t2d0:AUTO -
=> Check content of AUTO file. Repeat for primary disk (c1t2d0).
# vgextend /dev/vg00 /dev/dsk/c1t2d0
=> Adding disk to root VG.
# pvdisplay -v /dev/dsk/c1t2d0
=> Note of the order of LVs (assuming it's lvol1,lvol2,lvol3,lvol4->lvol8)
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0
=> Repeat for lvol2->lvol8
# lvlnboot -r /dev/vg00/lvol4 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
=> Update BDRA (root, boot, swap and dump)
# lvlnboot -v
=> Check to make sure both disks are listed for root, boot and swap definition.
# setboot
=> Display boot path an set the boot path to the desired path with "setboot -a|-p"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:12 AM
10-15-2002 06:12 AM
Re: Break Root Mirror and Re-Create It
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:18 AM
10-15-2002 06:18 AM
Re: Break Root Mirror and Re-Create It
# pvcreate -f -B /dev/rdsk/
# mkboot -l /dev/rdsk/
# mkboot -a "hpux -lq" /dev/rdsk/
# vgcfgrestore -n vg00 /dev/rdsk/
=> recovers LVM info to disk
# vgchange -a y vg00
=> enables new root disk
# vgsync vg00
=> configure LVs and copies data from primary disk, this will take awhile
Both disks are now in sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:27 AM
10-15-2002 06:27 AM
Re: Break Root Mirror and Re-Create It
1) remove one drive and put it back on;
2) break the mirror and re-mirror the root drive
The question is: would recreating the first drive really damage it? Is it worth the test?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:42 AM
10-15-2002 06:42 AM
Re: Break Root Mirror and Re-Create It
You still have to test by booting from each disk so simply trying to boot from both disks (and doing a vgsync) after replacing the drive accomplishes everything and leaves you in a known good state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2002 06:43 AM
10-15-2002 06:43 AM
Re: Break Root Mirror and Re-Create It
- Drive A (primary); Drive B (secondary)
- Primary boot path = A ; 2ndary boot path = B
a) Test both A & B boot up by interrupt the boot process and select the disk to boot up.
b) Unplug or disconnect (one disk at a time) and make sure system continues to run. In my case it's easy for me to test this because the root drives are accessible from my front cage panel. Test is done on A then on B.
c) Unplug or disconnect (one disk at a time) and if the system continues to run fine (ie if test b above passes), reboot the system. With escape quorum set, the server should be able to boot up fine even with one disk disconnected. When system is online plug the disk back (need to "vgchange -a y vg00" to include it back).
If a,b and c all passes I think you're in good shape. And now you can test the actual replacement of a failed root disk with the process that I mentioned earlier.