<?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: lvm headers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699564#M552158</link>
    <description>thx &lt;BR /&gt;&lt;BR /&gt;is there a way to get the volume group name?</description>
    <pubDate>Thu, 14 Oct 2010 15:48:20 GMT</pubDate>
    <dc:creator>p7</dc:creator>
    <dc:date>2010-10-14T15:48:20Z</dc:date>
    <item>
      <title>lvm headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699562#M552156</link>
      <description>hi all&lt;BR /&gt;&lt;BR /&gt;i have some disks i have to use for a new volume group (xp1024 seen by 4 systems).  it is only seen on this system with xpinfo, not showing up on the other 3 systems.  when i try do do a pvcreate it says part of a volume group.  must have been used in the past, is there a command that shows the lvm header? i want to be paranoid and check&lt;BR /&gt;&lt;BR /&gt;thx in advance&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 15:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699562#M552156</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2010-10-14T15:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: lvm headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699563#M552157</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;One way is:&lt;BR /&gt;&lt;BR /&gt;# cat ./querylvmid&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset RAWDEV=${1}&lt;BR /&gt;&lt;BR /&gt;[ -z "${RAWDEV}" -o ! -c "${RAWDEV}" ] &amp;amp;&amp;amp; { echo "Not a raw device"; exit 1; }&lt;BR /&gt;&lt;BR /&gt;KIND=$(xd -An -j 8192 -N8 -tc ${RAWDEV} 2&amp;gt; /dev/null | xargs)&lt;BR /&gt;&lt;BR /&gt;if [ "${KIND}" = "L V M R E C 0 1" ]; then&lt;BR /&gt;    INFO=$(xd -An -j8200 -N16 -tx ${RAWDEV})&lt;BR /&gt;    PVID=$(echo ${INFO} | awk '{print $1 $2}')&lt;BR /&gt;    VGID=$(echo ${INFO} | awk '{print $3 $4}')&lt;BR /&gt;    echo "${RAWDEV} PVID = ${PVID}"&lt;BR /&gt;    echo "${RAWDEV} VGID = ${VGID}"&lt;BR /&gt;else&lt;BR /&gt;    echo "${RAWDEV} is not an LVM disk"&lt;BR /&gt;fi&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...To query, pass a raw device argument like:&lt;BR /&gt;&lt;BR /&gt;# ./querylvmid /dev/rdsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2010 15:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699563#M552157</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-10-14T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: lvm headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699564#M552158</link>
      <description>thx &lt;BR /&gt;&lt;BR /&gt;is there a way to get the volume group name?</description>
      <pubDate>Thu, 14 Oct 2010 15:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699564#M552158</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2010-10-14T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: lvm headers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699565#M552159</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; is there a way to get the volume group name?&lt;BR /&gt;&lt;BR /&gt;A volume group name is established by the device file (e.g. '/dev/rdsk/vg01).  In fact, 'vgexport'ing a volume group and then 'vgimport'ing it with a *different* device file name is how you rename a volume group.  Hence, the answer to your question is "no".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Oct 2010 15:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvm-headers/m-p/4699565#M552159</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-10-14T15:56:39Z</dc:date>
    </item>
  </channel>
</rss>

