{"id":277,"date":"2012-10-02T14:04:10","date_gmt":"2012-10-02T19:04:10","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=277"},"modified":"2012-10-02T14:04:10","modified_gmt":"2012-10-02T19:04:10","slug":"how-to-not-blow-up-a-vxvm-boot-hp-ux-system-when-breaking-the-mirror","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=277","title":{"rendered":"How to not blow up a vxvm boot HP-UX system when breaking the mirror"},"content":{"rendered":"<p>This is an improvement to fixing the problems if you do blow things up. Click <a title=\"How to fix a blown up vxvm boot system\" href=\"http:\/\/www.hpux.ws\/?p=262\">here<\/a> to see.<\/p>\n<p>Here is the thing. VXvM is messed up on HP-UX. The mirror break command is broken on 11.23 and 11.31.<\/p>\n<p>That being said depending on how you use it, you can have a mess to clean up or not.<\/p>\n<p>Scenario:<\/p>\n<h4>[shmuel01]\/root # vxdisk list<br \/>\n<strong>DEVICE TYPE DISK GROUP STATUS<\/strong><br \/>\n<strong>c2t0d0 auto:hpdisk rootdisk02 rootdg online failing<\/strong><br \/>\n<strong>c2t1d0 auto:hpdisk rootdisk01 rootdg online failing<\/strong><\/h4>\n<p>&#8230;<\/p>\n<p>Note the disks are supposedly failing. Easy fix, though I can&#8217;t say how long this will last.<\/p>\n<h4><strong>[shmuel01]\/root # vxedit -g rootdg set failing=off rootdisk01<\/strong><br \/>\n<strong>[shmuel01]\/root # vxedit -g rootdg set failing=off rootdisk02<\/strong><\/h4>\n<p>Now we look at them.<\/p>\n<h4><strong>[shmuel01]\/root # vxdisk list<\/strong><br \/>\n<strong>DEVICE TYPE DISK GROUP STATUS<\/strong><br \/>\n<strong>c2t0d0 auto:hpdisk rootdisk02 rootdg online<\/strong><br \/>\n<strong>c2t1d0 auto:hpdisk rootdisk01 rootdg online<\/strong><\/h4>\n<p>Now they are fixed.<\/p>\n<p>Now to the heart of the matter. Lets say you want to break c2t0d0 out of the mirror and say make a drd image. The man page and HP\u00a0support\u00a0says you can use this form.<\/p>\n<h4><strong>\/etc\/vx\/bin\/vxbrk_rootmir -g rootdg -vb c2t0d0<\/strong><\/h4>\n<p>If you use that form on many HP-UX systems the mirror break will fail and you will have a mess to clean up. If you want to prove your skills go ahead and use that form and click the link above to find the fix.<\/p>\n<p>If you would rather look smart and say cruise the Internet, do this form.<\/p>\n<h4><strong>\/etc\/vx\/bin\/\/vxbrk_rootmir -g rootdg -vb rootdisk02<\/strong><\/h4>\n<p>You get the following UGLY results.<\/p>\n<h4><strong>[shmuel01]\/root # \/etc\/vx\/bin\/\/vxbrk_rootmir -g rootdg -vb rootdisk02<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-4023 14:23: Checking specified disk(s) for presence and type<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-4025 14:23: DA c2t0d0, DM rootdisk02 is a valid root mirror<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-4052 14:23: Saving configuration data for later restoration<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=homevol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=lpvol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=optvol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=standvol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=tmpvol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=usrvol-02 cannot be parsed.<\/strong><br \/>\n<strong>sed: Function s\/plex=.*$\/plex=varvol-02 cannot be parsed.<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-4022 14:23: Breaking off root mirror on DA c2t0d0<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-4054 14:23: Setting broken off mirror on c2t0d0 as unique root disk<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir INFO V-5-2-2566 14:23: Preparing disk c2t0d0 as a VxVM root disk<\/strong><br \/>\n<strong>VxVM vxmake ERROR V-5-1-1173 Volume swvol already exists<\/strong><br \/>\n<strong>VxVM vxbrk_rootmir ERROR V-5-2-4020 Attempting to recreate volume meta-data on rootdisk02\/c2t0d0<\/strong><\/h4>\n<p>However the only thing that actually goes wrong is removing the disk rootdisk02 from the roodg.<\/p>\n<p>Easily fixed with a single command.<\/p>\n<p><strong>vxdg -g rootdg rmdisk rootdisk02<\/strong><\/p>\n<p>vxdisk list shows:<\/p>\n<h4><strong>[shmuel01]\/root # vxdisk list<\/strong><br \/>\n<strong>DEVICE TYPE DISK GROUP STATUS<\/strong><br \/>\n<strong>c2t0d0 auto:hpdisk &#8211; &#8211; online<\/strong><br \/>\n<strong>c2t1d0 auto:hpdisk rootdisk01 rootdg online<\/strong><\/h4>\n<p>A healthy ready for DRD cloning rootdg<\/p>\n<h4><strong>[shmuel01]\/root # vxprint -ht -g rootdg<\/strong><br \/>\n<strong>DG NAME NCONFIG NLOG MINORS GROUP-ID<\/strong><br \/>\n<strong>ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT<\/strong><br \/>\n<strong>DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE<\/strong><br \/>\n<strong>RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL<\/strong><br \/>\n<strong>RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK<\/strong><br \/>\n<strong>CO NAME CACHEVOL KSTATE STATE<\/strong><br \/>\n<strong>VT NAME NVOLUME KSTATE STATE<\/strong><br \/>\n<strong>V NAME RVG\/VSET\/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE<\/strong><br \/>\n<strong>PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL\/WID MODE<\/strong><br \/>\n<strong>SD NAME PLEX DISK DISKOFFS LENGTH [COL\/]OFF DEVICE MODE<\/strong><br \/>\n<strong>SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL\/]OFF AM\/NM MODE<\/strong><br \/>\n<strong>SC NAME PLEX CACHE DISKOFFS LENGTH [COL\/]OFF DEVICE MODE<\/strong><br \/>\n<strong>DC NAME PARENTVOL LOGVOL<\/strong><br \/>\n<strong>SP NAME SNAPVOL DCO<\/strong><\/h4>\n<h4><strong>dg rootdg default default 0 1129312400.1025.loopback<\/strong><\/h4>\n<h4><strong>dm rootdisk01 c2t1d0 auto 1024 143364644 &#8211;<\/strong><\/h4>\n<h4><strong>v homevol &#8211; ENABLED ACTIVE 524288 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl homevol-01 homevol ENABLED ACTIVE 524288 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-04 homevol-01 rootdisk01 9961472 524288 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl homevol-04 homevol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-14 homevol-04 rootdisk01 35389473 33 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v lpvol &#8211; ENABLED ACTIVE 524288 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl lpvol-01 lpvol ENABLED ACTIVE 524288 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-12 lpvol-01 rootdisk01 34865152 524288 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl lpvol-04 lpvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-16 lpvol-04 rootdisk01 35389572 33 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v optvol &#8211; ENABLED ACTIVE 4194304 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl optvol-01 optvol ENABLED ACTIVE 4194304 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-05 optvol-01 rootdisk01 10485760 4194304 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl optvol-04 optvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-17 optvol-04 rootdisk01 35389605 66 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v rootvol &#8211; ENABLED ACTIVE 1048576 ROUND &#8211; root<\/strong><br \/>\n<strong>pl rootvol-01 rootvol ENABLED ACTIVE 1048576 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-03 rootvol-01 rootdisk01 8912896 1048576 0 c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v standvol &#8211; ENABLED ACTIVE 524288 ROUND &#8211; fsgen<\/strong><br \/>\n<strong>pl standvol-01 standvol ENABLED ACTIVE 524288 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-01 standvol-01 rootdisk01 0 524288 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl standvol-04 standvol DETACHED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-18 standvol-04 rootdisk01 35389671 33 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v swapvol &#8211; ENABLED ACTIVE 8388608 ROUND &#8211; swap<\/strong><br \/>\n<strong>pl swapvol-01 swapvol ENABLED ACTIVE 8388608 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-02 swapvol-01 rootdisk01 524288 8388608 0 c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v swvol &#8211; ENABLED ACTIVE 6291456 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl swvol-01 swvol ENABLED ACTIVE 6291456 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-10 swvol-01 rootdisk01 27525120 6291456 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl swvol-03 swvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-06 swvol-03 rootdisk01 35389440 33 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v tmpvol &#8211; ENABLED ACTIVE 2097152 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl tmpvol-01 tmpvol ENABLED ACTIVE 2097152 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-07 tmpvol-01 rootdisk01 14942208 2097152 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl tmpvol-04 tmpvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-20 tmpvol-04 rootdisk01 35389737 33 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v usrvol &#8211; ENABLED ACTIVE 5242880 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl usrvol-01 usrvol ENABLED ACTIVE 5242880 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-08 usrvol-01 rootdisk01 17039360 5242880 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl usrvol-04 usrvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-21 usrvol-04 rootdisk01 35389770 66 LOG c2t1d0 ENA<\/strong><\/h4>\n<h4><strong>v varvol &#8211; ENABLED ACTIVE 5242880 SELECT &#8211; fsgen<\/strong><br \/>\n<strong>pl varvol-01 varvol ENABLED ACTIVE 5242880 CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-09 varvol-01 rootdisk01 22282240 5242880 0 c2t1d0 ENA<\/strong><br \/>\n<strong>pl varvol-04 varvol ENABLED ACTIVE LOGONLY CONCAT &#8211; RW<\/strong><br \/>\n<strong>sd rootdisk01-22 varvol-04 rootdisk01 35389836 66 LOG c2t1d0 ENA<\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>This is an improvement to fixing the problems if you do blow things up. Click here to see. Here is the thing. VXvM is messed up on HP-UX. The mirror break command is broken on 11.23 and 11.31. That being said depending on how you use it, you can have a mess to clean up [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[7,8,51],"tags":[71,70,69,68],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-lvm","category-sysadmin","category-vxvm-veritas-volume-manager","tag-how-to-break-up-a-vxvm-mirror-without-blowing-up-your-rootdg","tag-mirror-break","tag-vxvm","tag-vxvm-mirror-break"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/277"}],"collection":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":2,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}