<?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: How to determine if a VG has cluster bit set? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147895#M93463</link>
    <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;perhaps a two-step strategy could help:&lt;BR /&gt;1) You could export relevant information for non-privileged users in your control script to a file (readable by the lower-privileged user, residing on the active node).&lt;BR /&gt;- Every time a cluster change is done, this information would be refreshed.&lt;BR /&gt;- You could export some raw information only&lt;BR /&gt;2&lt;BR /&gt;The real processing/formatting of the output data could be done later by other scripts, reading this file and by a non-privileged user.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Feb 2008 18:20:55 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2008-02-20T18:20:55Z</dc:date>
    <item>
      <title>How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147892#M93460</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to check this in the configuration &lt;BR /&gt;block of a plugin script I write.&lt;BR /&gt;Unfortunately, this part of the script is&lt;BR /&gt;run with lowered privileges after they have &lt;BR /&gt;been dropped even when started as root.&lt;BR /&gt;&lt;BR /&gt;As a workaround I first thought to parse the package control scripts by collecting them over a glob similar to&lt;BR /&gt;&lt;BR /&gt;@pkg_ctls = glob '/etc/cmcluster/*/*.cntl';&lt;BR /&gt;&lt;BR /&gt;But then I realized that for some strange reason they were not readable by others so that&lt;BR /&gt;parsing them would fail.&lt;BR /&gt;The same is true for /etc/lvmtab,&lt;BR /&gt;and reading /etc/mnttab would only yield open VGs on the current cluster node but not cluster wide.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?</description>
      <pubDate>Wed, 20 Feb 2008 17:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147892#M93460</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-20T17:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147893#M93461</link>
      <description>Bonjour Ralph,&lt;BR /&gt;&lt;BR /&gt;Not a very great idea, but /sbin/vgdisplay is accessible for everybody. So a vgdisplay on a vg activated in exclusive mode (that is with cluster bit set) should output the information ?&lt;BR /&gt;&lt;BR /&gt;Hope this help&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 20 Feb 2008 17:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147893#M93461</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-20T17:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147894#M93462</link>
      <description>Bonsoir Eric (soir il est ici),&lt;BR /&gt;&lt;BR /&gt;yes, I could parse for exclusive from&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/vgdisplay 2&amp;gt;/dev/null|grep -E 'VG (Name|Status)'&lt;BR /&gt;&lt;BR /&gt;But this would only catch those currently active on the executing host.&lt;BR /&gt;This would catch about a third of the cluster VGs at least.</description>
      <pubDate>Wed, 20 Feb 2008 17:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147894#M93462</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-20T17:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147895#M93463</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;perhaps a two-step strategy could help:&lt;BR /&gt;1) You could export relevant information for non-privileged users in your control script to a file (readable by the lower-privileged user, residing on the active node).&lt;BR /&gt;- Every time a cluster change is done, this information would be refreshed.&lt;BR /&gt;- You could export some raw information only&lt;BR /&gt;2&lt;BR /&gt;The real processing/formatting of the output data could be done later by other scripts, reading this file and by a non-privileged user.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 18:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147895#M93463</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-02-20T18:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147896#M93464</link>
      <description>I would have thought using cmquerycl -v -c cluster -l lvm&lt;BR /&gt;&lt;BR /&gt;would show that - but it shows all vg's....&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 20 Feb 2008 18:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147896#M93464</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2008-02-20T18:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147897#M93465</link>
      <description>Evening also here and I will leave in a few minutes ;-)&lt;BR /&gt;&lt;BR /&gt;An other idea, but I have no HP-UX box with MCSG to test it : with proper security rules configured in the cluster, I think there is a way to use commands like cmgetconf. I don't remember exactly how output looks like but I guess the VG configured in the cluster file will be shown ?&lt;BR /&gt;&lt;BR /&gt;Bonne soirÃ©e :-)&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 18:25:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147897#M93465</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-20T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147898#M93466</link>
      <description>Also, when you'd do a vgdisplay on all the volume groups you find in /dev and some are open exclusively on another node, vgdisplay will tell you this in an error message. Hence, that VG is cluster aware.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Wout</description>
      <pubDate>Wed, 20 Feb 2008 19:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147898#M93466</guid>
      <dc:creator>Wouter Jagers</dc:creator>
      <dc:date>2008-02-20T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147899#M93467</link>
      <description>Hello Guys,&lt;BR /&gt;&lt;BR /&gt;Wouter,&lt;BR /&gt;unfortunately the error message for hit inactive VGs doesn't indicate the reason for their inactive state on this node&lt;BR /&gt;(e.g. because they might be active, exclusive on another cluster node).&lt;BR /&gt;Thus, it could also be that the listed VGs on stderr are ordinary non cluster shared VGs&lt;BR /&gt;that are for whatever reason elsewise inactive.&lt;BR /&gt;&lt;BR /&gt;$ /usr/sbin/vgdisplay &amp;gt;/dev/null&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg25".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg31".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg32".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg33".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg34".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg35".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg36".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg37".&lt;BR /&gt;vgdisplay: Volume group not activated.&lt;BR /&gt;vgdisplay: Cannot display volume group "/dev/vg38".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Eric, &lt;BR /&gt;yes, newer SG releases offer access control policies so that members of the least privileged USER_ROLE MONITOR could run cmgetconf (and other non-intrusive cm* commands).&lt;BR /&gt;However, we still have some clusters that are pre-releases that lack this feature (ok sudo, is always an option)&lt;BR /&gt;But even if, the cmgetconf command blocks far too long (for a monitoring process) because the cluster scan may take that long.&lt;BR /&gt;Therefore I would prefer a mere read of the cluster config binary through cmviewconf.&lt;BR /&gt;But then the only VG related info that cmviewconf dumps refers to the VG that contains the lock PV.&lt;BR /&gt;&lt;BR /&gt;# cmviewconf|grep -i vg &lt;BR /&gt;   first lock vg name:                  /dev/vg37&lt;BR /&gt;   second lock vg name:                 (not configured)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Peter,&lt;BR /&gt;yes I think I will finally do something similar to what you have suggested.&lt;BR /&gt;Or elevate permissions on cluster package control script files to read to be able to parse the LV array assignments therein,&lt;BR /&gt;under the assumption that these files are in sync over all cluster nodes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does anyone know of a hack how to read the LVM meta data from the raw devs directly to arrive at the cluster bit?&lt;BR /&gt;I know this is possible with dd on Linux LVM.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2008 08:36:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147899#M93467</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-02-21T08:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine if a VG has cluster bit set?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147900#M93468</link>
      <description>Bonjour Ralph,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can try to activate inactive VG with standard "-a y". If it has cluster bit set, you will have an explicit error message. &lt;BR /&gt;&lt;BR /&gt;Of course you can try to dump lvm structure with dd. I tried to find some informations relative to lvm structure under /usr/include but found nothing. Maybe someone knows ?&lt;BR /&gt;&lt;BR /&gt;But in both cases you need root privileges : you must be root to use vgchange and disk special files are owned by root.&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Thu, 21 Feb 2008 08:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-determine-if-a-vg-has-cluster-bit-set/m-p/4147900#M93468</guid>
      <dc:creator>Eric SAUBIGNAC</dc:creator>
      <dc:date>2008-02-21T08:50:32Z</dc:date>
    </item>
  </channel>
</rss>

