- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Break the mirror before OS patching
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
03-22-2010 04:54 AM
03-22-2010 04:54 AM
Break the mirror before OS patching
I am looking for the procedure/commands for
1)breaking mirror (vxvm) before OS patching so that we can boot the system from 2nd disk if the patching fail.
2)how to rejoin the disk in mirror after successfull patching.
Please find the detail of rootdg available on my system for your reference.
Thanks in advance.
Santhosh
---------------------------------------
# vxprint -g rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -
dm rootdisk01 c2t0d0 - 71679336 - - - -
dm rootdisk02 c2t1d0 - 71681248 - - - -
v homevol fsgen ENABLED 2097152 - ACTIVE - -
pl homevol-01 homevol ENABLED 2097152 - ACTIVE - -
sd rootdisk01-04 homevol-01 ENABLED 2097152 0 - - -
pl homevol-02 homevol ENABLED 2097152 - ACTIVE - -
sd rootdisk02-04 homevol-02 ENABLED 2097152 0 - - -
v optvol fsgen ENABLED 4194304 - ACTIVE - -
pl optvol-01 optvol ENABLED 4194304 - ACTIVE - -
sd rootdisk01-05 optvol-01 ENABLED 4194304 0 - - -
pl optvol-02 optvol ENABLED 4194304 - ACTIVE - -
sd rootdisk02-05 optvol-02 ENABLED 4194304 0 - - -
v repositoryvol fsgen ENABLED 2097152 - ACTIVE - -
pl repositoryvol-01 repositoryvol ENABLED 2097152 - ACTIVE - -
sd rootdisk01-06 repositoryvol-01 ENABLED 2097152 0 - - -
v rootvol root ENABLED 2097152 - ACTIVE - -
pl rootvol-01 rootvol ENABLED 2097152 - ACTIVE - -
sd rootdisk01-03 rootvol-01 ENABLED 2097152 0 - - -
pl rootvol-02 rootvol ENABLED 2097152 - ACTIVE - -
sd rootdisk02-03 rootvol-02 ENABLED 2097152 0 - - -
v standvol fsgen ENABLED 1048320 - ACTIVE - -
pl standvol-01 standvol ENABLED 1048320 - ACTIVE - -
sd rootdisk01-01 standvol-01 ENABLED 1048320 0 - - -
pl standvol-02 standvol ENABLED 1048320 - ACTIVE - -
sd rootdisk02-01 standvol-02 ENABLED 1048320 0 - - -
v swapvol swap ENABLED 8388608 - ACTIVE - -
pl swapvol-01 swapvol ENABLED 8388608 - ACTIVE - -
sd rootdisk01-02 swapvol-01 ENABLED 8388608 0 - - -
pl swapvol-02 swapvol ENABLED 8388608 - ACTIVE - -
sd rootdisk02-02 swapvol-02 ENABLED 8388608 0 - - -
v tivvol fsgen ENABLED 300000 - ACTIVE - -
pl tivvol-01 tivvol ENABLED 300000 - ACTIVE - -
sd rootdisk01-07 tivvol-01 ENABLED 300000 0 - - -
v tmpvol fsgen ENABLED 2097152 - ACTIVE - -
pl tmpvol-01 tmpvol ENABLED 2097152 - ACTIVE - -
sd rootdisk01-08 tmpvol-01 ENABLED 2097152 0 - - -
pl tmpvol-02 tmpvol ENABLED 2097152 - ACTIVE - -
sd rootdisk02-06 tmpvol-02 ENABLED 2097152 0 - - -
v toolsvol fsgen ENABLED 1327104 - ACTIVE - -
pl toolsvol-01 toolsvol ENABLED 1327104 - ACTIVE - -
sd rootdisk01-09 toolsvol-01 ENABLED 507904 0 - - -
sd rootdisk01-12 toolsvol-01 ENABLED 819200 507904 - - -
v usrvol fsgen ENABLED 3145728 - ACTIVE - -
pl usrvol-01 usrvol ENABLED 3145728 - ACTIVE - -
sd rootdisk01-10 usrvol-01 ENABLED 3145728 0 - - -
pl usrvol-02 usrvol ENABLED 3145728 - ACTIVE - -
sd rootdisk02-07 usrvol-02 ENABLED 3145728 0 - - -
v varvol fsgen ENABLED 16777216 - ACTIVE - -
pl varvol-01 varvol ENABLED 16777216 - ACTIVE - -
sd rootdisk01-11 varvol-01 ENABLED 16777216 0 - - -
pl varvol-02 varvol ENABLED 16777216 - ACTIVE - -
sd rootdisk02-08 varvol-02 ENABLED 16777216 0 - - -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 07:27 AM
03-22-2010 07:27 AM
Re: Break the mirror before OS patching
Well, you'll have to lvreduce all the logical volumes, and vgreduce all volume groups. It's somewhat tedious and time-consuming.
Do you have ignite installed? Maybe a make_tape_recovery, or a make_net_recovery?'
Just my 34 cents worth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 08:57 AM
03-22-2010 08:57 AM
Re: Break the mirror before OS patching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 09:02 AM
03-22-2010 09:02 AM
Re: Break the mirror before OS patching
HP-UX B.11.11 U 9000/800 2328359709 unlimited-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 05:20 PM
03-22-2010 05:20 PM
Re: Break the mirror before OS patching
eg before patching
#volplex -g rootdg -v homevol dis homevol-02
this would dissociate plex homevol-02 from volume homevol
do the same for all the volumes.
After patching
#vxplex -g rootdg -v homevol att homevol-02
this should automatically start the syncing.
If you have ignite then I suppose you can directly go and install patches in case of trouble you can re-ignite the servers its pretty easy.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 07:13 PM
03-22-2010 07:13 PM
Re: Break the mirror before OS patching
I hope its no need to break mirror,you can down the server remove the secondary disk and reboot using primary disk and apply patch.
After conforming patches are working fine you can simply insert secondary disk and it will start to sync.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 09:48 PM
03-22-2010 09:48 PM
Re: Break the mirror before OS patching
This may cause problems.
Better to keep an ignite backup and patch both 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
03-22-2010 09:59 PM
03-22-2010 09:59 PM
Re: Break the mirror before OS patching
Here is a good writeup on bootconf
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1269323871411+28353475&threadId=1310636
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2010 04:43 PM
03-25-2010 04:43 PM
Re: Break the mirror before OS patching
A lot of non-os volumes, repositoryvol;tivvol;toolsvol, which shouldnt be there anyway, are not mirrored to the mirrorbootdisk, so not so sure if a working mirrorbootdisk, after the primary bootdisk has failed, after patching, is that interesting.
For the rest, the following example, will show the correct syntax to split a vxvm mirrorbootdisk, before applying the patches.
>>>>
1. detach the mirrorplexes of the rootdg diskgroup. (if rootdg is mirrored)
gsesrv8 # vxdisk -g rootdg list
DEVICE TYPE DISK GROUP STATUS
c1t15d0 simple rootdisk01 rootdg online
c3t15d0 simple rootdisk02 rootdg online
gsesrv8 # vxprint -g rootdg -htr
v standvol - ENABLED ACTIVE 307200 ROUND - fsgen
pl standvol-01 standvol ENABLED ACTIVE 307200 CONCAT - RW
sd rootdisk01-01 standvol-01 rootdisk01 0 307200 0 c1t15d0 ENA
pl standvol-02 standvol ENABLED ACTIVE 307200 CONCAT - RW
sd rootdisk02-01 standvol-02 rootdisk02 0 307200 0 c3t15d0 ENA
>> CONCLUSION -- The plexes ending on -02, i.e. standvol-02, are part of the "mirror" disk, rootdisk02 and will be detached.
gsesrv8 # vxprint -g rootdg -p
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
pl homevol-01 homevol ENABLED 20480 - ACTIVE - -
pl homevol-02 homevol ENABLED 20480 - ACTIVE - -
pl optvol-01 optvol ENABLED 1677083 - ACTIVE - -
pl optvol-02 optvol ENABLED 1677083 - ACTIVE - -
pl rootvol-01 rootvol ENABLED 204800 - ACTIVE - -
pl rootvol-02 rootvol ENABLED 204800 - ACTIVE - -
pl standvol-01 standvol ENABLED 307200 - ACTIVE - -
pl standvol-02 standvol ENABLED 307200 - ACTIVE - -
pl swapvol-01 swapvol ENABLED 4194304 - ACTIVE - -
pl swapvol-02 swapvol ENABLED 4194304 - ACTIVE - -
pl tmpvol-01 tmpvol ENABLED 204800 - ACTIVE - -
pl tmpvol-02 tmpvol ENABLED 204800 - ACTIVE - -
pl usrvol-01 usrvol ENABLED 2302940 - ACTIVE - -
pl usrvol-02 usrvol ENABLED 2302940 - ACTIVE - -
pl varvol-01 varvol ENABLED 4706304 - ACTIVE - -
pl varvol-02 varvol ENABLED 4706304 - ACTIVE - -
#vxplex -g rootdg dis standvol-02
#vxplex -g rootdg dis swapvol-02
#vxplex -g rootdg dis rootvol-02
#vxplex -g rootdg dis tmpvol-02
#vxplex -g rootdg dis homevol-02
#vxplex -g rootdg dis optvol-02
#vxplex -g rootdg dis usrvol-02
#vxplex -g rootdg dis varvol-02
gsesrv8 # vxprint -g rootdg -p
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
pl homevol-01 homevol ENABLED 20480 - ACTIVE - -
pl homevol-02 - DISABLED 20480 - IOFAIL - -
pl optvol-01 optvol ENABLED 1677083 - ACTIVE - -
pl optvol-02 - DISABLED 1677083 - IOFAIL - -
pl rootvol-01 rootvol ENABLED 204800 - ACTIVE - -
pl rootvol-02 - DISABLED 204800 - IOFAIL - -
pl standvol-01 standvol ENABLED 307200 - ACTIVE - -
pl standvol-02 - DISABLED 307200 - - - -
pl swapvol-01 swapvol ENABLED 4194304 - ACTIVE - -
pl swapvol-02 - DISABLED 4194304 - - - -
pl tmpvol-01 tmpvol ENABLED 204800 - ACTIVE - -
pl tmpvol-02 - DISABLED 204800 - IOFAIL - -
pl usrvol-01 usrvol ENABLED 2302940 - ACTIVE - -
pl usrvol-02 - DISABLED 2302940 - IOFAIL - -
pl varvol-01 varvol ENABLED 4706304 - ACTIVE - -
pl varvol-02 - DISABLED 4706304 - IOFAIL - -
>>>>>>>>
For attaching the plexes afterwards.
>>>>>
13. reattach the mirror rootdisk
gsesrv8 # vxprint -g rootdg -p
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
pl homevol-01 homevol ENABLED 20480 - ACTIVE - -
pl homevol-02 - DISABLED 20480 - IOFAIL - -
pl optvol-01 optvol ENABLED 1677083 - ACTIVE - -
pl optvol-02 - DISABLED 1677083 - IOFAIL - -
pl rootvol-01 rootvol ENABLED 204800 - ACTIVE - -
pl rootvol-02 - DISABLED 204800 - IOFAIL - -
pl standvol-01 standvol ENABLED 307200 - ACTIVE - -
pl standvol-02 - DISABLED 307200 - - - -
pl swapvol-01 swapvol ENABLED 4194304 - ACTIVE - -
pl swapvol-02 - DISABLED 4194304 - - - -
pl tmpvol-01 tmpvol ENABLED 204800 - ACTIVE - -
pl tmpvol-02 - DISABLED 204800 - IOFAIL - -
pl usrvol-01 usrvol ENABLED 2302940 - ACTIVE - -
pl usrvol-02 - DISABLED 2302940 - IOFAIL - -
pl varvol-01 varvol ENABLED 4706304 - ACTIVE - -
pl varvol-02 - DISABLED 4706304 - IOFAIL - -
#vxplex -g rootdg att standvol standvol-02
#vxplex -g rootdg att swapvol swapvol-02
#vxplex -g rootdg att rootvol rootvol-02
#vxplex -g rootdg att tmpvol tmpvol-02
#vxplex -g rootdg att homevol homevol-02
#vxplex -g rootdg att optvol optvol-02
#vxplex -g rootdg att usrvol usrvol-02
#vxplex -g rootdg att varvol varvol-02
>>>>>
However, if you are not experienced with vxvm, I would just rely on Ignite/Ux, for when the patching fails.
Greetz,
Chris