HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Upgrade-downgrade howto with mirrored disk system
Operating System - HP-UX
1833641
Members
3809
Online
110062
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-14-2007 08:40 AM
06-14-2007 08:40 AM
Upgrade-downgrade howto with mirrored disk system
Hi,
We have HP-UX 11.11 system with two internal disks, which are mirrored with LVM.
what I would like to do is the following:
- break mirroring (diskA - diskB),
- boot from diskB
- upgrade the OS (with a complex HP bundle patch set) of diskB
- test the newly upgraded system on diskB
-->if it is OK, then mirror the content of diskB to the previous root disk (diskA)
-->if not OK, than boot again from diskA, and mirror back its content to diskB (original situation)
I tried out a lot of commands, scenarios, but unfortunately none of those were successful.
What I did:
1. - break mirroring (lvreduce) --> remove diskB from vg00 (vgreduce) --> create new vg (vg0x) --> vgextend with diskB (without running the pvcreate on diskB) --> trying to mount the root system lvolx from vg0x and modify the fstab to change the vg00 lines to vg0x (prepare to boot from diskB) ===> did not work
2. - boot from diskB --> put diskA offline (pvchange -a N diskA) --> upgrade diskB ===> somehow did not work
3. - boot from diskB --> break mirroring ---> put diskA offline (pvchange -a N diskA) --> upgrade diskB ===> somehow did not work also
Please advice or comment.
Thanks in advance.
BR,
Balint
We have HP-UX 11.11 system with two internal disks, which are mirrored with LVM.
what I would like to do is the following:
- break mirroring (diskA - diskB),
- boot from diskB
- upgrade the OS (with a complex HP bundle patch set) of diskB
- test the newly upgraded system on diskB
-->if it is OK, then mirror the content of diskB to the previous root disk (diskA)
-->if not OK, than boot again from diskA, and mirror back its content to diskB (original situation)
I tried out a lot of commands, scenarios, but unfortunately none of those were successful.
What I did:
1. - break mirroring (lvreduce) --> remove diskB from vg00 (vgreduce) --> create new vg (vg0x) --> vgextend with diskB (without running the pvcreate on diskB) --> trying to mount the root system lvolx from vg0x and modify the fstab to change the vg00 lines to vg0x (prepare to boot from diskB) ===> did not work
2. - boot from diskB --> put diskA offline (pvchange -a N diskA) --> upgrade diskB ===> somehow did not work
3. - boot from diskB --> break mirroring ---> put diskA offline (pvchange -a N diskA) --> upgrade diskB ===> somehow did not work also
Please advice or comment.
Thanks in advance.
BR,
Balint
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 08:51 AM
06-14-2007 08:51 AM
Re: Upgrade-downgrade howto with mirrored disk system
lvreduce/vgreduce simply removes your mirrors and renders them useless. You do not want to do this.
The safest method is to shutdown and remove your alternate boot disk and then do a boot. If you have already altered your primary boot string to allow quorum override (-l q) then you can allow the machine to boot normally. If not, you will have to interrupt the boot process, boot primary, Interact with ISL> Y
then
hpux -lq /stand/vmunix
You can then do your upgrade and resync the VG when finished.
My method is to actually create a lifeboat disk and then go ahead and do your patching with the mirrors intact. If anything goes wrong, you move your lifeboat to the boot slot and you boot normally and are back where you were before the patches.
The safest method is to shutdown and remove your alternate boot disk and then do a boot. If you have already altered your primary boot string to allow quorum override (-l q) then you can allow the machine to boot normally. If not, you will have to interrupt the boot process, boot primary, Interact with ISL> Y
then
hpux -lq /stand/vmunix
You can then do your upgrade and resync the VG when finished.
My method is to actually create a lifeboat disk and then go ahead and do your patching with the mirrors intact. If anything goes wrong, you move your lifeboat to the boot slot and you boot normally and are back where you were before the patches.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 12:50 PM
06-14-2007 12:50 PM
Re: Upgrade-downgrade howto with mirrored disk system
Have you previously tested that your boot disk was properly setup to boot from the mirror? The second disk will not boot if you did not create the mirror without running the mkboot command, it will never boot. Once both disks boot by themselves you can then remove one and boot up to make your changes.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 06:03 PM
06-14-2007 06:03 PM
Re: Upgrade-downgrade howto with mirrored disk system
Thanks for the quick answers.
A. Clay Stephenson:
Yes, you are right, that is the safest way, but we are restricted not to remove any disk from the box. Unfortunately it seems to me it is not possible to put a disk permanently offline by any commands through reboots.
I really do not know why my '1.' procedure fails, I think it should work. After extending the new vg with the previous mirror disk (diskB), the LVs should pop up. In that case finally I would have two VGs (the original one, vg00 and the newly created, vg0x) with the same content, but not mirrored, and the upgrade could be done in a safe way.
Bill Hassell:
Yes, of course. The mirror disk (diskB) was prepared properly with mkboot commands and the system can be booted from both disks smoothly.
Balint
A. Clay Stephenson:
Yes, you are right, that is the safest way, but we are restricted not to remove any disk from the box. Unfortunately it seems to me it is not possible to put a disk permanently offline by any commands through reboots.
I really do not know why my '1.' procedure fails, I think it should work. After extending the new vg with the previous mirror disk (diskB), the LVs should pop up. In that case finally I would have two VGs (the original one, vg00 and the newly created, vg0x) with the same content, but not mirrored, and the upgrade could be done in a safe way.
Bill Hassell:
Yes, of course. The mirror disk (diskB) was prepared properly with mkboot commands and the system can be booted from both disks smoothly.
Balint
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP