<?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: pvchange -t script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104430#M147516</link>
    <description>Yates,&lt;BR /&gt;Nope, changing to rdsk didn't work either, same resulting error mesg:&lt;BR /&gt;"PhysicalVolumePath": must be a block special file.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, I'm considering just running the command line on each pv.</description>
    <pubDate>Tue, 28 Oct 2003 12:46:12 GMT</pubDate>
    <dc:creator>okcunix</dc:creator>
    <dc:date>2003-10-28T12:46:12Z</dc:date>
    <item>
      <title>pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104421#M147507</link>
      <description>Need to change the timeout value on a large number of pv's.  Did a "strings /etc/lvmtab" &amp;gt; /tmp/outputfile.  Now I'd like to write a simple script to do a "pvchange -t 90" for every /dev/dsk/###### in /tmp/outputfile. Something along:&lt;BR /&gt;for i in 'cat /tmp/outputfile'&lt;BR /&gt;do&lt;BR /&gt;pvchange -t 90 /dev/dsk/######&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;But can't get the syntax down correctly. Appreciate any help.</description>
      <pubDate>Tue, 28 Oct 2003 12:05:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104421#M147507</guid>
      <dc:creator>okcunix</dc:creator>
      <dc:date>2003-10-28T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104422#M147508</link>
      <description>for i in 'cat /tmp/outputfile'&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;pvchange -t 90 /dev/dsk/$i&lt;BR /&gt;&lt;BR /&gt;done</description>
      <pubDate>Tue, 28 Oct 2003 12:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104422#M147508</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2003-10-28T12:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104423#M147509</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;Copuple of things:&lt;BR /&gt; &lt;BR /&gt;1) You'll need to strip the vg names &amp;amp; any non device entries in that output file.&lt;BR /&gt; &lt;BR /&gt;2) Use the var in that loop&lt;BR /&gt;pvchange -t 90 $i&lt;BR /&gt; &lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 28 Oct 2003 12:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104423#M147509</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-10-28T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104424#M147510</link>
      <description>try,&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab |grep "/dev/dsk" &amp;gt; /tmp/outputfile&lt;BR /&gt;&lt;BR /&gt;for i in `cat /tmp/outputfile`&lt;BR /&gt;do&lt;BR /&gt;pvchange -t 90 $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104424#M147510</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-10-28T12:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104425#M147511</link>
      <description>First, rebuild your output file with this:&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab |grep "/dev/dsk" |awk '{ print $1 } &amp;gt; /tmp/outputfile'&lt;BR /&gt;&lt;BR /&gt;Then, do&lt;BR /&gt;&lt;BR /&gt;for i in 'cat /tmp/outputfile'&lt;BR /&gt;do&lt;BR /&gt;pvchange -t 90 /dev/dsk/$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104425#M147511</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-28T12:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104426#M147512</link>
      <description>OK, tried this script:&lt;BR /&gt;&lt;BR /&gt;for i in 'cat /tmp/pvchange'&lt;BR /&gt;do&lt;BR /&gt;        pvchange -t 90 /dev/dsk/$i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Output was:&lt;BR /&gt;root# /usr/local/scripts/pvchange&lt;BR /&gt;Usage: pvchange&lt;BR /&gt;        [-A Autobackup]&lt;BR /&gt;        [-s] |&lt;BR /&gt;        {[-S Autoswitch] [-x Extensibility] [-t IOTimeout] [-z SparePV]}&lt;BR /&gt;        PhysicalVolumePath&lt;BR /&gt;"/tmp/pvchange": Too many arguments&lt;BR /&gt;&lt;BR /&gt;/tmp/pvchange has 2 lines=&lt;BR /&gt;c#t#d#&lt;BR /&gt;c#t#d#</description>
      <pubDate>Tue, 28 Oct 2003 12:19:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104426#M147512</guid>
      <dc:creator>okcunix</dc:creator>
      <dc:date>2003-10-28T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104427#M147513</link>
      <description>Try, &lt;BR /&gt;&lt;BR /&gt;for i in 'cat /tmp/pvchange'&lt;BR /&gt;do&lt;BR /&gt;pvchange -t 90 /dev/dsk/"$i"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Sorry, not on a system to test it on.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:30:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104427#M147513</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2003-10-28T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104428#M147514</link>
      <description>Yates,&lt;BR /&gt;Tried that change, it generated this error mesg:&lt;BR /&gt;"PhysicalVolumePath": must be a block special file.</description>
      <pubDate>Tue, 28 Oct 2003 12:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104428#M147514</guid>
      <dc:creator>okcunix</dc:creator>
      <dc:date>2003-10-28T12:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104429#M147515</link>
      <description>use ,&lt;BR /&gt;&lt;BR /&gt;/dev/rdsk/"$i"&lt;BR /&gt;&lt;BR /&gt;for raw device</description>
      <pubDate>Tue, 28 Oct 2003 12:42:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104429#M147515</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2003-10-28T12:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104430#M147516</link>
      <description>Yates,&lt;BR /&gt;Nope, changing to rdsk didn't work either, same resulting error mesg:&lt;BR /&gt;"PhysicalVolumePath": must be a block special file.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, I'm considering just running the command line on each pv.</description>
      <pubDate>Tue, 28 Oct 2003 12:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104430#M147516</guid>
      <dc:creator>okcunix</dc:creator>
      <dc:date>2003-10-28T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104431#M147517</link>
      <description>A useful tip when debuging scripts is to put&lt;BR /&gt;&lt;BR /&gt;#! /bin/ksh -x&lt;BR /&gt;&lt;BR /&gt;that will print everything out line by line while excuting</description>
      <pubDate>Tue, 28 Oct 2003 12:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104431#M147517</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2003-10-28T12:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104432#M147518</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;Your file will *already* contain &lt;BR /&gt;/dev/dsk/cXtYdZ&lt;BR /&gt;so all you'll need is $i&lt;BR /&gt; &lt;BR /&gt;for i in  $(cat /tmp/outputfile)&lt;BR /&gt;do&lt;BR /&gt;pvchange -t 90 $i&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;That should work for you IF you get the vg names &amp;amp; any arbitrary strings produced by the strings /etc/lvmtab command.&lt;BR /&gt; &lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 28 Oct 2003 12:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104432#M147518</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-10-28T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: pvchange -t script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104433#M147519</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;That did it.  Thanks.</description>
      <pubDate>Tue, 28 Oct 2003 12:56:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pvchange-t-script/m-p/3104433#M147519</guid>
      <dc:creator>okcunix</dc:creator>
      <dc:date>2003-10-28T12:56:41Z</dc:date>
    </item>
  </channel>
</rss>

