{"id":223,"date":"2011-07-12T10:29:52","date_gmt":"2011-07-12T15:29:52","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=223"},"modified":"2011-08-28T16:58:43","modified_gmt":"2011-08-28T21:58:43","slug":"223","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=223","title":{"rendered":"Migrate VXVM booted system to LVM"},"content":{"rendered":"<p>From the HP-UX Veritas Administration guide, buried on page 106<\/p>\n<p>This example shows how to create an LVM root disk on physical disk c0t1d0<br \/>\nafter removing the existing LVM root disk configuration from that disk.<\/p>\n<p><strong>BOOTBG=$(vxdg bootdg)<\/strong><\/p>\n<p><strong>vxprint -htg $BOOTDG | grep ^dm<\/strong><\/p>\n<p>dm rootdisk01\u00a0\u00a0 disk233_p2\u00a0\u00a0 auto\u00a0\u00a0\u00a0\u00a0 1024\u00a0\u00a0\u00a0\u00a0 142450592 &#8211;<br \/>\ndm rootmirr\u00a0\u00a0\u00a0\u00a0 disk234_p2\u00a0\u00a0 auto\u00a0\u00a0\u00a0\u00a0 1024\u00a0\u00a0\u00a0\u00a0 142450592 &#8211;<\/p>\n<p># You get the boot disk from this command. Break off the s2 if you are using legacy devices you can use them or the agile SDF devices.<\/p>\n<p># You may need to use vxbrk_mirror to break the mirror. Make sure you know which disk you are booted from. Check syslog to be sure. setboot is not a good indicator.<\/p>\n<p># Due to a wordpress error I&#8217;ve been forced to take the path etc vx bin out of the commands. I will fix this when wordpress stops blowing chunks on this data. Where there are spaces there need to be slashes.<br \/>\n<strong>#\u00a0 etc vx bin vxdestroy_lvmroot -v c0t1d0<\/strong><br \/>\n<strong># etc vx bin vxres_lvmroot -v -b c0t1d0<\/strong><br \/>\nThe -b option to vxres_lvmroot sets c0t1d0 as the primary boot device.<br \/>\nAs these operations can take some time, the verbose option, -v, is specified to<br \/>\nindicate how far the operation has progressed.<\/p>\n<p>This command takes care of setboot and all details. Then just boot from the console.<\/p>\n<p>This procedure does not remove VxVM software. The daemon still runs. But your system now boots LVM and that makes using Dynamic Root Disk (DRD) much easier.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From the HP-UX Veritas Administration guide, buried on page 106 This example shows how to create an LVM root disk on physical disk c0t1d0 after removing the existing LVM root disk configuration from that disk. BOOTBG=$(vxdg bootdg) vxprint -htg $BOOTDG | grep ^dm dm rootdisk01\u00a0\u00a0 disk233_p2\u00a0\u00a0 auto\u00a0\u00a0\u00a0\u00a0 1024\u00a0\u00a0\u00a0\u00a0 142450592 &#8211; dm rootmirr\u00a0\u00a0\u00a0\u00a0 disk234_p2\u00a0\u00a0 auto\u00a0\u00a0\u00a0\u00a0 1024\u00a0\u00a0\u00a0\u00a0 [&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,10,8,51],"tags":[145,6,23,30,27,36,32],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-lvm","category-patch","category-sysadmin","category-vxvm-veritas-volume-manager","tag-capacity-planning","tag-forumsitrchpcom","tag-high-capacity-volume-group","tag-ignite-ux","tag-patching","tag-superdome","tag-system-migration"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/223"}],"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=223"}],"version-history":[{"count":4,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}