<?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: vg active? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644139#M44455</link>
    <description>vgchange -a y vgname&lt;BR /&gt;&lt;BR /&gt;note it will say if already active, or otherwise activate it.. so you may want to disactivate after:&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgname&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
    <pubDate>Mon, 14 Jan 2002 10:39:49 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-01-14T10:39:49Z</dc:date>
    <item>
      <title>vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644134#M44450</link>
      <description>hi,&lt;BR /&gt;is there anyother way than the vgdisplay output&lt;BR /&gt;( which displays an error ) to see if a vg is&lt;BR /&gt;active or not?&lt;BR /&gt;thx...</description>
      <pubDate>Mon, 14 Jan 2002 09:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644134#M44450</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-01-14T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644135#M44451</link>
      <description>Hi Atil,&lt;BR /&gt;&lt;BR /&gt;Do a bdf and see if any of the logical volumes under this vg have been mounted.&lt;BR /&gt;&lt;BR /&gt;If not, try to mount any of the logical volumes. It shouldn't say unable to open the logical volume if the vg is not activated&lt;BR /&gt;&lt;BR /&gt;Or do a lvdisplay on any of the logical volumes in the volume group&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 14 Jan 2002 09:36:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644135#M44451</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-14T09:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644136#M44452</link>
      <description>thx sridhar,&lt;BR /&gt;i am writing a script based on &lt;BR /&gt;"strings /etc/lvmtab" output,reading it line by&lt;BR /&gt;line and doing some operations, but because&lt;BR /&gt;some of vgs listed are not active( they are &lt;BR /&gt;defined because of a cluster membership ),&lt;BR /&gt;due to my vgdisplay output,some error conditions appear...to suppress those messages,&lt;BR /&gt;i simply wrote:&lt;BR /&gt;vgdisplay $line &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &lt;BR /&gt;if [ $? -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;condition, just to check if it is activated...&lt;BR /&gt;but what works well in the command line without&lt;BR /&gt;any problems, causes the script to wait for a&lt;BR /&gt;5 minutes when used in...&lt;BR /&gt;&lt;BR /&gt;any suggestions?&lt;BR /&gt;&lt;BR /&gt;thx...</description>
      <pubDate>Mon, 14 Jan 2002 09:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644136#M44452</guid>
      <dc:creator>Atil Volkan Yildirim</dc:creator>
      <dc:date>2002-01-14T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644137#M44453</link>
      <description>&lt;BR /&gt;Try using the vgchange command instead. If you do a vgchange -a y &lt;VG&gt; it will report &lt;VG&gt; successfully changed if it was active or not. If you try a vgchange -a n &lt;VG&gt; and some part of the vg or one of its lvols is in use you will get a Device busy error - so you know it was active/in use.&lt;BR /&gt;&lt;/VG&gt;&lt;/VG&gt;&lt;/VG&gt;</description>
      <pubDate>Mon, 14 Jan 2002 09:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644137#M44453</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-01-14T09:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644138#M44454</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would do like this.&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v &amp;gt; /tmp/vg.out 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;1. Get all the VGs that are active on the system.&lt;BR /&gt;&lt;BR /&gt;grep "VG Name" /tmp/vg.out |awk '{print $3}'&lt;BR /&gt;&lt;BR /&gt;2. Get the primary disks that are active&lt;BR /&gt;&lt;BR /&gt;grep "PV Name" /tmp/vg.out |grep -v Alternate |awk '{print $3}'&lt;BR /&gt;&lt;BR /&gt;3. Get the alternate disks &lt;BR /&gt;&lt;BR /&gt;grep "PV Name" /tmp/vg.out |grep Alternate |awk '{print $3}'&lt;BR /&gt;&lt;BR /&gt;4. Get the Lvols&lt;BR /&gt;&lt;BR /&gt;grep "LV Name" /tmp/vg.out |awk '{print $3}'&lt;BR /&gt;&lt;BR /&gt;5. Getting it straight redirecting errors to null&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v 2&amp;gt;/dev/null |grep "VG Name" |awk '{print $3}'&lt;BR /&gt;&lt;BR /&gt;This may give you some idea&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 09:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644138#M44454</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-14T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644139#M44455</link>
      <description>vgchange -a y vgname&lt;BR /&gt;&lt;BR /&gt;note it will say if already active, or otherwise activate it.. so you may want to disactivate after:&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgname&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Mon, 14 Jan 2002 10:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644139#M44455</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-01-14T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644140#M44456</link>
      <description>&lt;BR /&gt;If a volume group is already active then Im afraid a vgchange -a y on it doesnt return an error (like already active) , it simply displays the same message (activated successfully) wether or not it was already active.&lt;BR /&gt;&lt;BR /&gt;However, ive found a way to test for sure if a VG is active or not. Do the following command on one of the lvols in the VG;&lt;BR /&gt;&lt;BR /&gt;adb 0x2000?2X | adb /dev/&lt;VGNAME&gt;/lvol1&lt;BR /&gt;&lt;BR /&gt;If the VG is active this will return some data in 3 columns, if the VG is not active it will return an error; text address not found&lt;BR /&gt;&lt;BR /&gt;&lt;/VGNAME&gt;</description>
      <pubDate>Mon, 14 Jan 2002 10:54:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644140#M44456</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-01-14T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644141#M44457</link>
      <description>I'd be concerned about the errors being reported--things like "can't query physical volume...and so on" Thoss should be addressed as they will continue to cause big problems.&lt;BR /&gt;&lt;BR /&gt;The strings /etc/lvmtab is a hack at best since this file is actually a binary file. Most of the time, it looks reasonable but occasionally strings will produce garbage characters that your script must accomodate. And lvmtab probably has entries that are incorrect, leading to the error messages you are receiving in vgdisplay.</description>
      <pubDate>Mon, 14 Jan 2002 12:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644141#M44457</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-14T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644142#M44458</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'd be most concerned with why vgdisplay is hanging in a script.  It shouldn't be, especially since you say it is working from command line without problem.  I can run vgdisplay against an inactive VG in a script without problem.  So, could this be a scripting issue?&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 14 Jan 2002 14:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644142#M44458</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-14T14:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644143#M44459</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try "vgdisplay -v /dev/vg_name" &lt;BR /&gt;&lt;BR /&gt;Then for all the lv's listed under the VG, try,&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg_name/lv_name&lt;BR /&gt;&lt;BR /&gt;Also for all the disks listed for that VG, try&lt;BR /&gt;&lt;BR /&gt;pvdisplay -v /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 14:46:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644143#M44459</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-14T14:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: vg active?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644144#M44460</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The VG should be active on the node to run vgdisplay on that Vg. For a cluster VG you can run the vgdisplay command on the node where the VG is active at that moment. If the vg is not active you can make it active on a cluster node with the cluster services running using,&lt;BR /&gt;&lt;BR /&gt;vgchange -a e /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;then do a vgdisplay&lt;BR /&gt;&lt;BR /&gt;to deactivate the Vg on the node,&lt;BR /&gt;&lt;BR /&gt;vgchange -a n /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;If the cluster services are not running on the node and you want to activate a cluster vg on this node, make sure the vg is not active on any node, then do,&lt;BR /&gt;&lt;BR /&gt;vgchange -c n /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;This will deactivate the cluster info from the vg,&lt;BR /&gt;&lt;BR /&gt;then activate the vg using,&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;do a vgdisplay...&lt;BR /&gt;&lt;BR /&gt;deactivate the VG,&lt;BR /&gt;&lt;BR /&gt;vgchange -a n /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;put the VG back into cluster mode,&lt;BR /&gt;&lt;BR /&gt;vgchange -c y /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;To activate the VG without quorum, use&lt;BR /&gt;&lt;BR /&gt;vgchange -q n -a e /dev/vg_name&lt;BR /&gt;&lt;BR /&gt;Hope this  helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 14:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vg-active/m-p/2644144#M44460</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-14T14:51:36Z</dc:date>
    </item>
  </channel>
</rss>

