<?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: minor script question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156120#M158474</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;type lssf /dev/dsk/c3t6d0&lt;BR /&gt;&lt;BR /&gt;it will probably come back with sdisk card instance 3 SCSI target 6 LUN 0 &lt;BR /&gt;&lt;BR /&gt;this helps you identify which disk it is and what controller and target address it operated by.&lt;BR /&gt;&lt;BR /&gt;:-) John.&lt;BR /&gt;</description>
    <pubDate>Mon, 05 Jan 2004 10:42:41 GMT</pubDate>
    <dc:creator>John Carr_2</dc:creator>
    <dc:date>2004-01-05T10:42:41Z</dc:date>
    <item>
      <title>minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156117#M158471</link>
      <description>I have a script that i use as DR that creates the disks.. &lt;BR /&gt;&lt;BR /&gt;for DISK in `ls /dev/rdsk`&lt;BR /&gt;do&lt;BR /&gt;[ "${DISK}" != c3t6d0 ] &amp;amp;&amp;amp; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;i am confused by the "c3t6d0" statement. Can someone help me disect this so i understand it better? It's not going to label all disks c3t6d0?</description>
      <pubDate>Mon, 05 Jan 2004 10:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156117#M158471</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2004-01-05T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156118#M158472</link>
      <description>Basically, it will do a pvcreate on all the disks that ARE NOT c3t6d0.&lt;BR /&gt;&lt;BR /&gt;I'm suspecting that is the root disk on your system.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jan 2004 10:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156118#M158472</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-01-05T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156119#M158473</link>
      <description>Exactly. thank you.. the ! must mean the exception. Do you know how i could put more than one root disk in this? &lt;BR /&gt;&lt;BR /&gt;could i do this; &lt;BR /&gt;&lt;BR /&gt;[ "${DISK}" != c3t6d0 c3t7d0 c3t8d0 ] &amp;amp;&amp;amp; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jan 2004 10:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156119#M158473</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2004-01-05T10:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156120#M158474</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;type lssf /dev/dsk/c3t6d0&lt;BR /&gt;&lt;BR /&gt;it will probably come back with sdisk card instance 3 SCSI target 6 LUN 0 &lt;BR /&gt;&lt;BR /&gt;this helps you identify which disk it is and what controller and target address it operated by.&lt;BR /&gt;&lt;BR /&gt;:-) John.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Jan 2004 10:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156120#M158474</guid>
      <dc:creator>John Carr_2</dc:creator>
      <dc:date>2004-01-05T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156121#M158475</link>
      <description>Chris &lt;BR /&gt;&lt;BR /&gt;Do a man ksh&lt;BR /&gt;&lt;BR /&gt;this will do a pvcreate on all disks other than c3t6d0 which essentially should be root volume or something like that , there are more ways to get the list of the newly accquired disks for which pvcreate is to be run.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 05 Jan 2004 10:43:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156121#M158475</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2004-01-05T10:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: minor script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156122#M158476</link>
      <description>Regarding your multiple disk test question-&lt;BR /&gt; &lt;BR /&gt;You could use-&lt;BR /&gt;["${DISK} = c3t6d0 ] &amp;amp;&amp;amp; continue&lt;BR /&gt;["${DISK} = c3t7d0 ] &amp;amp;&amp;amp; continue&lt;BR /&gt;["${DISK} = c3t8d0 ] &amp;amp;&amp;amp; continue&lt;BR /&gt;pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt; &lt;BR /&gt;Or you could use-&lt;BR /&gt; &lt;BR /&gt;case ${DISK} in&lt;BR /&gt; c3t6d0|c3t7d0|c3t8d0) continue;;&lt;BR /&gt; *) pvcreate -f /dev/rdsk/${DISK};;&lt;BR /&gt;esac&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 05 Jan 2004 11:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/minor-script-question/m-p/3156122#M158476</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-01-05T11:33:08Z</dc:date>
    </item>
  </channel>
</rss>

