- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Break root mirror vg00 prior to large scale pa...
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
08-11-2008 05:15 PM
08-11-2008 05:15 PM
Break root mirror vg00 prior to large scale patching
I also have an Ignite backup available as well.
OS 11.11i
==> setboot -v ( check prim and alt boot paths)
==> lvreduce -m 0 /dev/vg00/lvolx /dev/dsk/cXtYdZ (alternative boot disk)
repeat for all lvols and leave / (lvol3) last
==> Carry out patching followed by a reboot.
Scenario 1
~~~~~~~~~~
All goes according to plan then remirror
==> vgcfgrestore -n vg00 /dev/rdsk/cXtYdZ (alternate boot disk)
==> vgchange -a y vg00 ??
==> vgsync vg00
Scenario 2
~~~~~~~~~~
System does not boot from primary disk
==> reset and interrupt boot sequence
==> boot from Alternate boot disk
==> vgcfgrestore -n vg00 /dev/rdsk/cXtYdZ (primary boot disk_
==> vgchange -a y vg00 ??
==> vgsync vg00
==> reboot - ensure system is booting from primary
And that's it. I this the route to go ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 05:21 PM
08-11-2008 05:21 PM
Re: Break root mirror vg00 prior to large scale patching
http://www.hp.com/go/drd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 05:22 PM
08-11-2008 05:22 PM
Re: Break root mirror vg00 prior to large scale patching
This will work.
I will say that a more realistic scenario involves pulling out one of the two mirror drives and booting.
This is more like how the system "feels" when it loses a drive.
But what you propose will get the job done.
Confirm all mirrors are good and not stale when you are done.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2008 09:18 PM
08-11-2008 09:18 PM
Re: Break root mirror vg00 prior to large scale patching
If you lvreduce the disk, all data on it will be marked as invalid, so you unlikely can boot from this disk again.
Better to use ignite or just shutdown the server and pull out one of the disks.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 04:18 AM
08-12-2008 04:18 AM
Re: Break root mirror vg00 prior to large scale patching
No, thats not the route to go.
As torsten said, you just lost all youre data on the mirrordisk, with the lvreduce.
The commands to use is lvsplit, to split the mirror and later use lvmerge to resync back.
something like this.
1. lvsplit
i="
atlas2> for j in $i
> do
> lvsplit -s backup /dev/vg00/lvol$j
> done
2. do all the things you want to do..
if everything goes good..
3. sync up the volumes of the mirrorbootdisk with the volumes of the original bootdisk again
atlas2>i="1 2 3 4 5 6 7 8"
atlas2>for j in $i
>do
>lvmerge /dev/vg00/lvol${j}backup /dev/vg00/lvol$j
>done
f.e.
atlas2>lvmerge /dev/vg00/lvolbackuporacle /dev/vg00/lvoloracle
if there is a problem. merge the other way..
Greetz,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 04:29 AM
08-12-2008 04:29 AM
Re: Break root mirror vg00 prior to large scale patching
Other options are to make an ignite tape (or two) or boot from the vmunix.prev if the patched kernel does not boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 05:32 AM
08-12-2008 05:32 AM
Re: Break root mirror vg00 prior to large scale patching
modify the boot string with -lq, shutdown server, pull out mirror disk, boot, apply patches. Check things out, everything ok? reinstert disk.
An ignite image is excellent as well. Very reliable.
Actually in all the years I have never had a major issue with any patch bundles.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 05:34 AM
08-12-2008 05:34 AM
Re: Break root mirror vg00 prior to large scale patching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 04:34 PM
08-12-2008 04:34 PM
Re: Break root mirror vg00 prior to large scale patching
==> Firstly I cannot physically remove the mirrored drive as it's a customer at a remote site which I do not have access to and I do not trust the customer to pull the drive.
I would have an Ignite backup available and also have the option of booting from the previous kernel if all goes pear shaped.
==> According to Steven Protter using lvreduce would work but the rest think not.
I was under the impressiuon that breaking the mirroring would preserve the data on the alternate drive. Just that no more data would be mirrored from the original system disk.
Steven - can you clarify this point if possible or input from anyone else.
==> I did think of using lvsplit and lvmerge as another possibility but decided lvreduve would be easier. Chris Huys solution is along the lines I would use but that's fine if the patching goes fine - if not ? then what about this is a solution - feedback welcome
* Assume lvspit was done on all lvols on vg00
* fsck all mirrored volumes
* Mount mirrored lvol3b on /mnt
* edit fstab - change all lvolx to lvolxb
* unmount /mnt
* carry out patching and reboot
* assume system does not boot
* boot from Alternate disk
* once system up then edit fstab - change back lvols to original
* mirror via lvextend -m 1 to original system disk
* Reboot system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 06:12 PM
08-12-2008 06:12 PM
Re: Break root mirror vg00 prior to large scale patching
http://docs.hp.com/en/oshpux11iv2.html#Dynamic%20Root%20Disk
You haven't specified Ia64 or PA-Risc and there's a big difference. Here's a good pa-risc doc
http://docs.hp.com/en/B2355-90113/B2355-90113.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 06:21 PM
08-12-2008 06:21 PM
Re: Break root mirror vg00 prior to large scale patching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 07:01 PM
08-12-2008 07:01 PM
Re: Break root mirror vg00 prior to large scale patching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 07:20 PM
08-12-2008 07:20 PM
Re: Break root mirror vg00 prior to large scale patching
I appreciated your input and my reply was only stating that DRD was already mentioned.
There was no need to be so impolite and start telling me that I am incapable of doing my job.
Language like that helps no one in particular.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 09:15 PM
08-12-2008 09:15 PM
Re: Break root mirror vg00 prior to large scale patching
Consider to shutdown the server and pull a disk or do an ignite backup as suggested earlier.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 12:57 PM
08-13-2008 12:57 PM
Re: Break root mirror vg00 prior to large scale patching
Will retract my lvsplit/lvmerge procedure. ;)
When it goes good there is no problem.. but when it goes bad.. the lvmerge in the other direction will change the minor numbers of lvol1/lvol2/lvol3 volumes to non-standard ones (the ones of the lvol1backup/lvol2backup/lvol3backup ) what defenitely is not good.
So there might be a better procedure out there, but for the moment I would only go with an ignite backup as the method to getting everything back after it "goes bad".
Greetz,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 03:21 PM
08-13-2008 03:21 PM
Re: Break root mirror vg00 prior to large scale patching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2008 03:22 PM
08-13-2008 03:22 PM