<?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: pvcreate help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978768#M632227</link>
    <description>Dang JRF, always a step ahead....  ;)&lt;BR /&gt;&lt;BR /&gt;RZ</description>
    <pubDate>Wed, 21 May 2003 14:34:25 GMT</pubDate>
    <dc:creator>Ross Zubritski</dc:creator>
    <dc:date>2003-05-21T14:34:25Z</dc:date>
    <item>
      <title>pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978764#M632223</link>
      <description>I am planning on recovering a system at a hot site. they have smaller luns than i have here on setup. i would like to know if there is a way to PVCREATE all 55 devices at one time with a wildcard command. i just don't know the proper command. I want to avoid doing a pvcreate -f /dev/rdsk/cxtxdx individually for each disk.</description>
      <pubDate>Wed, 21 May 2003 14:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978764#M632223</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-05-21T14:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978765#M632224</link>
      <description>Make yourself a quick for loop as follows:&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c#t#d#&lt;BR /&gt;/dev/dsk/c#t#d#&lt;BR /&gt;&lt;BR /&gt;Put all the disks in a file called x in this example and execute the following&lt;BR /&gt;&lt;BR /&gt;for i in `cat x`&lt;BR /&gt;do&lt;BR /&gt;pvcreate -f $i &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;enjoy.&lt;BR /&gt;&lt;BR /&gt;RZ&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:28:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978765#M632224</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-05-21T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978766#M632225</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;# for DISK in `ls /dev/rdsk`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2003 14:31:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978766#M632225</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-21T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978767#M632226</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;# for DISK in `ls /dev/rdsk`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2003 14:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978767#M632226</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-21T14:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978768#M632227</link>
      <description>Dang JRF, always a step ahead....  ;)&lt;BR /&gt;&lt;BR /&gt;RZ</description>
      <pubDate>Wed, 21 May 2003 14:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978768#M632227</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-05-21T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978769#M632228</link>
      <description>but will this trash my disks on vg00 that were created after the make_tape_recovery is complete? I will be doing this most likely after vg00 has been make_recovered.</description>
      <pubDate>Wed, 21 May 2003 14:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978769#M632228</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-05-21T14:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978770#M632229</link>
      <description>but will this trash my disks on vg00 that were created after the make_tape_recovery is complete? I will be doing this most likely after vg00 has been make_recovered.</description>
      <pubDate>Wed, 21 May 2003 14:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978770#M632229</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-05-21T14:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978771#M632230</link>
      <description>How about,&lt;BR /&gt;&lt;BR /&gt;for i in $(cat /tmp/diskfile)&lt;BR /&gt;do&lt;BR /&gt;export j=`echo $i |sed 's/rdsk/dsk/g'`&lt;BR /&gt;export LNCOUNT=`strings /etc/lvmtab |grep $j |wc -l`&lt;BR /&gt;if (( $LNCOUNT &amp;lt; 1 ))&lt;BR /&gt;then&lt;BR /&gt;pvcreate -f $i&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This way, you do not trash your boot disk or any other existing disk (Just a thought)&lt;BR /&gt;&lt;BR /&gt;NOTE: Will not work on system that can view disks from other systems (SAN, FC10, etc)&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Wed, 21 May 2003 14:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978771#M632230</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-05-21T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978772#M632231</link>
      <description>First line of loop should be &lt;BR /&gt;&lt;BR /&gt;for i in $(ls /dev/rdsk)&lt;BR /&gt;&lt;BR /&gt;Sorry, rehashed the thing halfway through. Ian</description>
      <pubDate>Wed, 21 May 2003 14:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978772#M632231</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-05-21T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978773#M632232</link>
      <description>First line of loop should be &lt;BR /&gt;&lt;BR /&gt;for i in $(ls /dev/rdsk)&lt;BR /&gt;&lt;BR /&gt;Sorry, rehashed the thing halfway through. Ian</description>
      <pubDate>Wed, 21 May 2003 14:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978773#M632232</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-05-21T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978774#M632233</link>
      <description>Hi (again) Chris:&lt;BR /&gt;&lt;BR /&gt;Ooops, you want to exclude your boot disk!  Therefore, once you know its disk (e.g. c0t6d0) do:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for DISK in `ls dev/rdsk`&lt;BR /&gt;do&lt;BR /&gt;  [ "${DISK}" != c0t6d0 ] &amp;amp;&amp;amp; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2003 14:39:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978774#M632233</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-21T14:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978775#M632234</link>
      <description>Hi (again) Chris:&lt;BR /&gt;&lt;BR /&gt;Ooops, you want to exclude your boot disk!  Therefore, once you know its disk (e.g. c0t6d0) do:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for DISK in `ls dev/rdsk`&lt;BR /&gt;do&lt;BR /&gt;  [ "${DISK}" != c0t6d0 ] &amp;amp;&amp;amp; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2003 14:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978775#M632234</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-21T14:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978776#M632235</link>
      <description>Just exclude your root disk from your config file.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;RZ&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978776#M632235</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-05-21T14:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978777#M632236</link>
      <description>Just a side note, pvcreate -f will not trash a disk with boot info on it.  Confirmed with HP.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;RZ&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:41:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978777#M632236</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-05-21T14:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978778#M632237</link>
      <description>[ "${DISK}" != c0t6d0 ] &amp;amp;&amp;amp; pvcreate -f /dev/rdsk/${DISK}&lt;BR /&gt;&lt;BR /&gt;not good at scripting but does this statement mean, "do NOT include disk c0t6d0" ???? Just need to verify. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All these disks will be on an EMC Sym with only one internal used for vg00.</description>
      <pubDate>Wed, 21 May 2003 14:45:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978778#M632237</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-05-21T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978779#M632238</link>
      <description>Do a multiple loop .. for example say you want to pvcreate c[1-3]t[0-4]d[0-2] you can run ..&lt;BR /&gt;# for i in 1 2 3&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; for j in 0 1 2 3 4&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; for k in 0 1 2&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; pvcreate -f /dev/rdsk/c${i}t${j}d${k}&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;Any devices not found in the range will just come back with any error "couldn;t open physical volume", no harm done.&lt;BR /&gt;Just any idea ..&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978779#M632238</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2003-05-21T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978780#M632239</link>
      <description>!= will exclude that string.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 14:47:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978780#M632239</guid>
      <dc:creator>Ross Zubritski</dc:creator>
      <dc:date>2003-05-21T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978781#M632240</link>
      <description>Hi (again) Chris:&lt;BR /&gt;&lt;BR /&gt;[ "${DISK}" != c0t6d0 ] &amp;amp;&amp;amp; ppvcreate -f "/dev/rdsk/${DISK}"&lt;BR /&gt;&lt;BR /&gt;...is shorthand for test the variable ${DISK} to be not equal c0t6d0.  If that is true then execute the next statement, which in this case is 'pvcreate'.&lt;BR /&gt;&lt;BR /&gt;See the man pages for 'test' for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 21 May 2003 14:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978781#M632240</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-05-21T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978782#M632241</link>
      <description>thanks for all the great answers. I tested JRF's answer and it worked well. &lt;BR /&gt;&lt;BR /&gt;I am trying to assign points but the ITRC isn't working real well for me today. I will keep trying the rest of the day to get the points out to you guys. thanks again.</description>
      <pubDate>Wed, 21 May 2003 15:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978782#M632241</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-05-21T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: pvcreate help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978783#M632242</link>
      <description>inq -f_emc | grep ^/dev | awk '{print $1}' &amp;gt; emc.out&lt;BR /&gt;cat emc.out | awk '{print "pvcreate -f " $1}' &amp;gt; pvemc.sh&lt;BR /&gt;chmod +x pvemc.sh&lt;BR /&gt;./pvemc.sh&lt;BR /&gt;</description>
      <pubDate>Wed, 21 May 2003 15:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvcreate-help/m-p/2978783#M632242</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-05-21T15:44:49Z</dc:date>
    </item>
  </channel>
</rss>

