<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ASM and HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280422#M474233</link>
    <description>If you have access to Oracle support, you should look at article 603210.1&lt;BR /&gt;&lt;BR /&gt;This basically tells you that an ASM disk will have the ASCII string "ORCLDISK" written into bytes 32 to 39 of a disk if it is being or has been used for ASM. In order to identify if a disk is still being used for ASM look at byte 71 and see if it has a "004" in it.&lt;BR /&gt;&lt;BR /&gt;So I don't have an ASM disk to hand to try this on, but I suspect something like this should work (you may have to play with the offsets a little - I'm terrible at making fencepost errors!)&lt;BR /&gt;&lt;BR /&gt;So to identify if its an ASM disk:&lt;BR /&gt;&lt;BR /&gt;od -v -Ad -t c -j 32 -N 8 /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;And to see if its still in use:&lt;BR /&gt;&lt;BR /&gt;od -v -Ad -t c -j 71 -N 1 /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
    <pubDate>Tue, 26 Apr 2011 06:25:21 GMT</pubDate>
    <dc:creator>Duncan Edmonstone</dc:creator>
    <dc:date>2011-04-26T06:25:21Z</dc:date>
    <item>
      <title>ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280419#M474230</link>
      <description>How can we identify from OS, if a disk is used by Oracle ASM ?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 25 Apr 2011 06:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280419#M474230</guid>
      <dc:creator>sen_ux</dc:creator>
      <dc:date>2011-04-25T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280420#M474231</link>
      <description>Assuming you are on 11iv3 (11.31), you can use the diskowner(1m) command:&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;# diskowner /dev/disk/disk2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# man diskowner &lt;BR /&gt;&lt;BR /&gt;for more details...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2011 09:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280420#M474231</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-04-25T09:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280421#M474232</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;What about earlier versions of HP-UX ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2011 11:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280421#M474232</guid>
      <dc:creator>sen_ux</dc:creator>
      <dc:date>2011-04-25T11:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280422#M474233</link>
      <description>If you have access to Oracle support, you should look at article 603210.1&lt;BR /&gt;&lt;BR /&gt;This basically tells you that an ASM disk will have the ASCII string "ORCLDISK" written into bytes 32 to 39 of a disk if it is being or has been used for ASM. In order to identify if a disk is still being used for ASM look at byte 71 and see if it has a "004" in it.&lt;BR /&gt;&lt;BR /&gt;So I don't have an ASM disk to hand to try this on, but I suspect something like this should work (you may have to play with the offsets a little - I'm terrible at making fencepost errors!)&lt;BR /&gt;&lt;BR /&gt;So to identify if its an ASM disk:&lt;BR /&gt;&lt;BR /&gt;od -v -Ad -t c -j 32 -N 8 /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;And to see if its still in use:&lt;BR /&gt;&lt;BR /&gt;od -v -Ad -t c -j 71 -N 1 /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 26 Apr 2011 06:25:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280422#M474233</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-04-26T06:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280423#M474234</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As I didn't have access to a system with ASM on it, I'm interested to know whether the commands I provided actually worked?&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 27 Apr 2011 07:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280423#M474234</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-04-27T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280424#M474235</link>
      <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;Sorry for late reply...&lt;BR /&gt;&lt;BR /&gt;I have tesetd your answers in an AIX test box (I dont have a HPUX box to test ASM).&lt;BR /&gt;&lt;BR /&gt;See the output below..&lt;BR /&gt;&lt;BR /&gt;#od -v -Ad -t c -j 32 -N 8 /dev/hdisk4&lt;BR /&gt;0000000    O   R   C   L   D   I   S   K&lt;BR /&gt;0000008&lt;BR /&gt;#od -v -Ad -t c -j 71 -N 1 /dev/hdisk4&lt;BR /&gt;0000000  003&lt;BR /&gt;0000001&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;It is showing the ascii string perfect.. But at 71 it is 003.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2011 06:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280424#M474235</guid>
      <dc:creator>sen_ux</dc:creator>
      <dc:date>2011-05-19T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280425#M474236</link>
      <description>&amp;gt; #od -v -Ad -t c -j 71 -N 1 /dev/hdisk4&lt;BR /&gt;&amp;gt; 0000000 003&lt;BR /&gt;&amp;gt; 0000001&lt;BR /&gt;&lt;BR /&gt;OK, so are you completely sure in this case that /dev/hdisk4 is in use by ASM _right now_ (as I said it's only set to 004 if ASM is still using it. If ASM has stopped using the disk it will still have ORCLDISK written into it, but not 004)&lt;BR /&gt;&lt;BR /&gt;Alternatively, it could be a fencepost error on my part - would be interesting to look at a few other bytes around that position... try:&lt;BR /&gt;&lt;BR /&gt;od -v -Ad -t c -j 70 -N 3 /dev/hdisk4&lt;BR /&gt;&lt;BR /&gt;That should show is the byte before/after the one we looked at previously as well...&lt;BR /&gt;&lt;BR /&gt;(as a third alternative, the Oracle support article could be wrong/out of date - I've come across plenty that are, but I have no way to confirm that!)&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 19 May 2011 06:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280425#M474236</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-05-19T06:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280426#M474237</link>
      <description>Disk is still in use by ASM..&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; select PATH from v$asm_disk;&lt;BR /&gt;&lt;BR /&gt;PATH&lt;BR /&gt;---------------&lt;BR /&gt;/dev/rhdisk4&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; &lt;BR /&gt;&lt;BR /&gt;See the requested output..&lt;BR /&gt;&lt;BR /&gt;#od -v -Ad -t c -j 70 -N 3 /dev/hdisk4&lt;BR /&gt;0000000  001 003   D&lt;BR /&gt;0000003&lt;BR /&gt;#od -v -Ad -t c -j 65 -N 10 /dev/hdisk4&lt;BR /&gt;0000000  020  \0  \0  \0  \0 001 003   D   I   S&lt;BR /&gt;0000010&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;However this is a very good point you have given.. Thanks Duncan..</description>
      <pubDate>Thu, 19 May 2011 06:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280426#M474237</guid>
      <dc:creator>sen_ux</dc:creator>
      <dc:date>2011-05-19T06:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280427#M474238</link>
      <description>Ah OK, my bad... just looked at the Oracle support article again, and I wasn't paying attention - here's the relevant code snippet from the C code they give as an example:&lt;BR /&gt;&lt;BR /&gt;    if (buf[71] != 4) { &lt;BR /&gt;      printf("This disk %s still used by ASM\n",argv[1]); &lt;BR /&gt;      return (0);                                      &lt;BR /&gt;    } &lt;BR /&gt;    else &lt;BR /&gt;    printf("This disk %s has been used by ASM\n",argv[1]); &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So what this is saying is that if byte 71 _doesn't_ contain 4 (004 from the od output) then it is still in use by ASM, and if it does contain 4, it _was_ in use by ASM - I guess the only way you could check this would be to stop using the disk (I don't know ASM that well but maybe "alter diskgroup XXXX drop disk 'diskname';")&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 19 May 2011 07:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280427#M474238</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2011-05-19T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: ASM and HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280428#M474239</link>
      <description>Great.. Thanks Duncan..&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; drop diskgroup DISK_GROUP_1 including contents;&lt;BR /&gt;&lt;BR /&gt;Diskgroup dropped.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt;&lt;BR /&gt;&lt;BR /&gt;#od -v -Ad -t c -j 71 -N 1 /dev/hdisk4&lt;BR /&gt;0000000  004&lt;BR /&gt;0000001&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;I am closing this thread..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;SEN</description>
      <pubDate>Thu, 19 May 2011 08:48:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/asm-and-hp-ux/m-p/5280428#M474239</guid>
      <dc:creator>sen_ux</dc:creator>
      <dc:date>2011-05-19T08:48:24Z</dc:date>
    </item>
  </channel>
</rss>

