<?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: vgdisplay in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113402#M628418</link>
    <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;Perhaps something like this:&lt;BR /&gt;&lt;BR /&gt;for i in `ll -d /dev/vg* |grep -v vg00`&lt;BR /&gt;do&lt;BR /&gt;vgdisplay -v $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Fri, 07 Nov 2003 09:56:08 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2003-11-07T09:56:08Z</dc:date>
    <item>
      <title>vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113399#M628415</link>
      <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;I need to output to a file the result of vgdisplay -v command, but in this file I do not need the output of vg00. The problem is that I've other vg names than vg01, vg02...  I don't know all the name of all the vg's that are configured on the machine.. How can I find them??&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 07 Nov 2003 09:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113399#M628415</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-11-07T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113400#M628416</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ls /dev/*/group | awk -F/ '{ print $3}' | while read vgname&lt;BR /&gt;do&lt;BR /&gt;vgdisplay -v $vgname&lt;BR /&gt;done &amp;gt;&amp;gt;/tmp/vginfo.out&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 07 Nov 2003 09:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113400#M628416</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-11-07T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113401#M628417</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the vgdisplay command ( no options)&lt;BR /&gt;&lt;BR /&gt;# vgdisplay&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# ll /dev/*/group&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 07 Nov 2003 09:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113401#M628417</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-11-07T09:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113402#M628418</link>
      <description>Jonathan,&lt;BR /&gt;&lt;BR /&gt;Perhaps something like this:&lt;BR /&gt;&lt;BR /&gt;for i in `ll -d /dev/vg* |grep -v vg00`&lt;BR /&gt;do&lt;BR /&gt;vgdisplay -v $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Nov 2003 09:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113402#M628418</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-11-07T09:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113403#M628419</link>
      <description>strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;Will show all volume groups, followed by the disks in the volume groups.&lt;BR /&gt;&lt;BR /&gt;If you followed the vg naming convention the query can be further refined.&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab | grep vg&lt;BR /&gt;&lt;BR /&gt;/dev/vg01&lt;BR /&gt;/dev/vg11&lt;BR /&gt;&lt;BR /&gt;This output can then be used as the input to the vgdisplay -v command&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab | grep vg &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;read -r aa&lt;BR /&gt;do&lt;BR /&gt;   vgdisplay -v $aa&lt;BR /&gt;done &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2003 09:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113403#M628419</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-11-07T09:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113404#M628420</link>
      <description>Thanks you all...&lt;BR /&gt;&lt;BR /&gt;All your answers are working find.. I'll use one of those in one script....&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Fri, 07 Nov 2003 10:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113404#M628420</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2003-11-07T10:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113405#M628421</link>
      <description>I might be being a bit pedantic here but it is possible that you have a volume group called vg00old or vg0000001 so to be absolutely sure, I think you are going to need a specific test such as&lt;BR /&gt; &lt;BR /&gt;for i in `ls -d /dev/vg*`&lt;BR /&gt;do&lt;BR /&gt;[ $i = "/dev/vg00" ] || {&lt;BR /&gt;        vgdisplay -v $i&lt;BR /&gt;}&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2003 10:07:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113405#M628421</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-07T10:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113406#M628422</link>
      <description>I think I need a little correction in my suggestion:&lt;BR /&gt;&lt;BR /&gt;for i in `ll -d /dev/vg* |grep -v vg00 |sed s"/\/dev\///g"| sed s"/\///"`&lt;BR /&gt;do&lt;BR /&gt;vgdisplay -v $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Nov 2003 10:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113406#M628422</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-11-07T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113407#M628423</link>
      <description>Try this one line command:&lt;BR /&gt;&lt;BR /&gt;strings lvmtab | grep -v dsk | grep -v vg00 | xargs vgdisplay -v {}</description>
      <pubDate>Fri, 07 Nov 2003 10:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113407#M628423</guid>
      <dc:creator>Thomas Schler_1</dc:creator>
      <dc:date>2003-11-07T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113408#M628424</link>
      <description>According to Mark who is completely right, this one line command should work better:&lt;BR /&gt;&lt;BR /&gt;strings lvmtab | grep -v dsk | grep -v '/dev/vg00$' | xargs vgdisplay -v</description>
      <pubDate>Fri, 07 Nov 2003 10:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113408#M628424</guid>
      <dc:creator>Thomas Schler_1</dc:creator>
      <dc:date>2003-11-07T10:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113409#M628425</link>
      <description>Oops!  One more time:&lt;BR /&gt;&lt;BR /&gt;for i in `ls -d /dev/vg* |grep -v vg00 |sed s"/\/dev\///g"| sed s"/\///"`&lt;BR /&gt;do&lt;BR /&gt; vgdisplay -v $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 07 Nov 2003 10:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113409#M628425</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-11-07T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: vgdisplay</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113410#M628426</link>
      <description>Pete &lt;BR /&gt; &lt;BR /&gt;Why are you trying so hard to get rid of that "/dev", vgdisplay doesn't mind if it's there or not!</description>
      <pubDate>Fri, 07 Nov 2003 10:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vgdisplay/m-p/3113410#M628426</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-07T10:43:04Z</dc:date>
    </item>
  </channel>
</rss>

