{"id":138,"date":"2010-05-20T21:49:36","date_gmt":"2010-05-21T02:49:36","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=138"},"modified":"2010-05-20T21:59:21","modified_gmt":"2010-05-21T02:59:21","slug":"clean-up-procedure-after-ignite-replication-of-hpvm-host","status":"publish","type":"post","link":"http:\/\/www.hpux.ws\/?p=138","title":{"rendered":"clean up procedure after ignite replication of hpvm host"},"content":{"rendered":"<p>This errror is created by Ignite replication of an hpvm system. The following checks device integrity and cleans up errors created by Ignite replication.<\/p>\n<p>hpvmcreate: ERROR (jdeautp1): Incorrect backing device type. <\/p>\n<p>First check for errors with this script (I may check this in at some point)<\/p>\n<p>#!\/usr\/bin\/sh<br \/>\n#<br \/>\n# Unofficial quick and dirty passthru DSF check script<br \/>\n#<br \/>\n# It walks all \/dev\/pt\/* files and tries to find corresponding \/dev\/rdisk<br \/>\n# or \/dev\/rtape files. If they are foudn their minor numbers are compared.<br \/>\n#<br \/>\n# @(#) pt_check.sh v1.1 &#8211; stanm@wtec<br \/>\n#<\/p>\n<p>for i in $(ls \/dev\/pt\/*)<br \/>\ndo<br \/>\n# ll $i<br \/>\nshortname=${i##*_}<br \/>\nprintf &#8220;checking $shortname&#8221;<br \/>\nminor1=$(ll $i|awk &#8216;{print $6}&#8217;)<br \/>\n# echo minor1=$minor ($i)<br \/>\nif [ -c \/dev\/rdisk\/$shortname ]; then<br \/>\n  minor2=$(ll \/dev\/rdisk\/$shortname|awk &#8216;{print $6}&#8217;)<br \/>\n  # echo minor2=$minor2 ($\/dev\/rdisk\/$shortname)<br \/>\n  if [[ &#8220;x$minor1&#8221; = &#8220;x$minor2&#8243; ]]; then<br \/>\n    printf &#8221;  &#8211; OK\\n&#8221;<br \/>\n  else<br \/>\n    printf &#8221; &#8211; Minor numbers are probably incorrect\\n&#8221;<br \/>\n    printf &#8220;minor1=$minor1 ($i) vs &#8221;<br \/>\n    printf &#8220;minor2=$minor2 (\/dev\/rdisk\/$shortname)\\n&#8221;<br \/>\n  fi<br \/>\nelse<br \/>\n  # could be tape<br \/>\n  if [ -c \/dev\/rtape\/${shortname}_BEST ]; then<br \/>\n    minor2=$(ll \/dev\/rtape\/${shortname}_BEST|awk &#8216;{print $6}&#8217;)<br \/>\n    if [[ &#8220;x$minor1&#8221; = &#8220;x$minor2&#8243; ]]; then<br \/>\n      printf &#8221; &#8211; OK\\n&#8221;<br \/>\n    else<br \/>\n      printf &#8221; &#8211; Minor numbers are probably incorrect\\n&#8221;<br \/>\n      printf &#8220;minor1=$minor1 ($i) vs &#8221;<br \/>\n      printf &#8220;minor2=$minor2 (\/dev\/rtape\/${shortname}_BEST)\\n&#8221;<br \/>\n    fi<br \/>\n  else<br \/>\n    printf &#8221; &#8211; \/dev\/rdisk\/$shortname or \/dev\/rtape\/${shortname}_BEST not found &#8211; check skipped\\n&#8221;<br \/>\n  fi<br \/>\nfi<br \/>\ndone<\/p>\n<p>Output indicating problems:<\/p>\n<p>checking disk11 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000005 (\/dev\/pt\/pt_disk11) vs minor2=0x000008 (\/dev\/rdisk\/disk11)<br \/>\nchecking disk12 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000006 (\/dev\/pt\/pt_disk12) vs minor2=0x000009 (\/dev\/rdisk\/disk12)<br \/>\nchecking disk13 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000007 (\/dev\/pt\/pt_disk13) vs minor2=0x00000a (\/dev\/rdisk\/disk13)<br \/>\nchecking disk14 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000008 (\/dev\/pt\/pt_disk14) vs minor2=0x00000b (\/dev\/rdisk\/disk14)<br \/>\nchecking disk15 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000009 (\/dev\/pt\/pt_disk15) vs minor2=0x00000c (\/dev\/rdisk\/disk15)<br \/>\nchecking disk17  &#8211; OK<br \/>\nchecking disk18 &#8211; \/dev\/rdisk\/disk18 or \/dev\/rtape\/disk18_BEST not found &#8211; check skipped<br \/>\nchecking disk19 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000017 (\/dev\/pt\/pt_disk19) vs minor2=0x000013 (\/dev\/rdisk\/disk19)<br \/>\nchecking disk2  &#8211; OK<br \/>\nchecking disk22 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000018 (\/dev\/pt\/pt_disk22) vs minor2=0x000014 (\/dev\/rdisk\/disk22)<br \/>\nchecking disk23 &#8211; Minor numbers are probably incorrect<br \/>\nminor1=0x000019 (\/dev\/pt\/pt_disk23) vs minor2=0x000015 (\/dev\/rdisk\/disk23)<br \/>\nchecking disk3  &#8211; OK<br \/>\nchecking disk5  &#8211; OK<br \/>\nchecking disk8 &#8211; \/dev\/rdisk\/disk8 or \/dev\/rtape\/disk8_BEST not found &#8211; check skipped<br \/>\nchecking disk9 &#8211; \/dev\/rdisk\/disk9 or \/dev\/rtape\/disk9_BEST not found &#8211; check skipped<\/p>\n<p>Correction procedure:<\/p>\n<p><strong>cd \/var\/opt\/hpvm\/common\/<\/p>\n<p>rm -f hpvm_devinit<br \/>\ncd \/dev\/pt<br \/>\nls<br \/>\nrm -f *<br \/>\nhpvmdevmgmt -I<br \/>\n<\/strong><br \/>\nConsider this a necessary procedure to clean up after ignite replication<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This errror is created by Ignite replication of an hpvm system. The following checks device integrity and cleans up errors created by Ignite replication. hpvmcreate: ERROR (jdeautp1): Incorrect backing device type. First check for errors with this script (I may check this in at some point) #!\/usr\/bin\/sh # # Unofficial quick and dirty passthru DSF [&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":[47,7],"tags":[6,23,18,3,146,37,30,144],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-hpvm","category-lvm","tag-forumsitrchpcom","tag-high-capacity-volume-group","tag-hp-ux","tag-hpux","tag-hpvm","tag-ia64","tag-ignite-ux","tag-lvm"],"_links":{"self":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/138"}],"collection":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":2,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":140,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/140"}],"wp:attachment":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}