<?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: can't found the VGID from a disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089868#M551446</link>
    <description>Hi Cedrick,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you post the second line of the output of next commands?&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/rdsk/c7t0d2 of=/tmp/c7t0d2.disk bs=8k skip=1 count=1&lt;BR /&gt;# od  -Ax -tx /tmp/c7t0d2.disk &lt;BR /&gt;&lt;BR /&gt;You will need the line starting with 0000010, second and third field combined is the VGID.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Mon, 22 Oct 2007 10:07:19 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2007-10-22T10:07:19Z</dc:date>
    <item>
      <title>can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089865#M551443</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;normally, i can guess the VG of a disk by the followings command.&lt;BR /&gt;&lt;BR /&gt;recuperate the VGID list:&lt;BR /&gt;#################################&lt;BR /&gt;#&amp;gt; strings -t d /etc/lvmtab |grep /dev |grep -v /dev/dsk |sort -k 2 |while read offset vg ; do&lt;BR /&gt;  xd -An -j$(($offset+1024)) -N8 -tuL /etc/lvmtab |read v1 v2&lt;BR /&gt;  printf "%-15s %x%x\n" ${vg##*/} ${v1} ${v2}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;vg00            d7a29712449bc7a3&lt;BR /&gt;vgdata          d7a29712449ff9e9&lt;BR /&gt;#################################&lt;BR /&gt;&lt;BR /&gt;recuperate the VGID of a disk:&lt;BR /&gt;#################################&lt;BR /&gt;#&amp;gt; for i in $(ioscan -funC disk |grep -i dsk |awk '{print $1}')&lt;BR /&gt;do echo "$i: \c" ; echo 0x2010?2X |adb $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c2t1d0: 2010:          0xD7A29712      449BC7A3&lt;BR /&gt;/dev/dsk/c3t0d0: 2010:          0xD7A29712      449BC7A3&lt;BR /&gt;/dev/dsk/c6t0d0: 2010:          0xD7A29712      449FF9E9&lt;BR /&gt;/dev/dsk/c6t0d1: 2010:          0xD7A29712      449FF9E9&lt;BR /&gt;/dev/dsk/c6t0d2: 2010:          0               0&lt;BR /&gt;/dev/dsk/c7t0d0: 2010:          0xD7A29712      449FF9E9&lt;BR /&gt;/dev/dsk/c7t0d1: 2010:          0xD7A29712      449FF9E9&lt;BR /&gt;/dev/dsk/c7t0d2: 2010:          0               0&lt;BR /&gt;#################################&lt;BR /&gt;&lt;BR /&gt;the last field is the VGID.&lt;BR /&gt;&lt;BR /&gt;for some unknown reasons i can't obtain this VGID from a disk - (plus its alternate path) - and i really don't know why.&lt;BR /&gt;&lt;BR /&gt;here is my configuration:&lt;BR /&gt;#&amp;gt; model&lt;BR /&gt;9000/800/rp4440&lt;BR /&gt;#&amp;gt; uname -a&lt;BR /&gt;HP-UX nr0u0264 B.11.11 U 9000/800 3617756946 unlimited-user license&lt;BR /&gt;#&amp;gt; ioscan -fnC disk                                                                                               &lt;BR /&gt;Class     I  H/W Path        Driver   S/W State   H/W Type     Description&lt;BR /&gt;===========================================================================&lt;BR /&gt;disk      0  0/0/3/0.0.0.0   sdisk    CLAIMED     DEVICE       TEAC    DV-28E-C&lt;BR /&gt;                            /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0&lt;BR /&gt;disk      1  0/1/1/0.1.0     sdisk    CLAIMED     DEVICE       HP 36.4GST336753LC&lt;BR /&gt;                            /dev/dsk/c2t1d0   /dev/rdsk/c2t1d0&lt;BR /&gt;disk      2  0/1/1/1.0.0     sdisk    CLAIMED     DEVICE       HP 36.4GST336753LC&lt;BR /&gt;                            /dev/dsk/c3t0d0   /dev/rdsk/c3t0d0&lt;BR /&gt;disk      3  0/2/1/0.13.0.0.0.0.0   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c6t0d0   /dev/rdsk/c6t0d0&lt;BR /&gt;disk      5  0/2/1/0.13.0.0.0.0.1   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1&lt;BR /&gt;disk      7  0/2/1/0.13.0.0.0.0.2   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c6t0d2   /dev/rdsk/c6t0d2&lt;BR /&gt;disk      4  0/6/1/0.13.12.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c7t0d0   /dev/rdsk/c7t0d0&lt;BR /&gt;disk      6  0/6/1/0.13.12.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c7t0d1   /dev/rdsk/c7t0d1&lt;BR /&gt;disk      8  0/6/1/0.13.12.0.0.0.2  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c7t0d2   /dev/rdsk/c7t0d2&lt;BR /&gt;#&amp;gt; vgdisplay -v vgdata&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vgdata&lt;BR /&gt;VG Write Access             read/write     &lt;BR /&gt;VG Status                   available                 &lt;BR /&gt;Max LV                      255    &lt;BR /&gt;Cur LV                      40     &lt;BR /&gt;Open LV                     40     &lt;BR /&gt;Max PV                      255    &lt;BR /&gt;Cur PV                      3      &lt;BR /&gt;Act PV                      3      &lt;BR /&gt;Max PE per PV               51200        &lt;BR /&gt;VGDA                        6   &lt;BR /&gt;PE Size (Mbytes)            256             &lt;BR /&gt;Total PE                    1117    &lt;BR /&gt;Alloc PE                    958     &lt;BR /&gt;Free PE                     159     &lt;BR /&gt;Total PVG                   0        &lt;BR /&gt;Total Spare PVs             0              &lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;{..snip..}&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d0  Alternate Link&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    799     &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d1&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d1  Alternate Link&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    119     &lt;BR /&gt;   Free PE                     0       &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d2&lt;BR /&gt;   PV Name                     /dev/dsk/c6t0d2  Alternate Link&lt;BR /&gt;   PV Status                   available                &lt;BR /&gt;   Total PE                    199     &lt;BR /&gt;   Free PE                     159     &lt;BR /&gt;   Autoswitch                  On        &lt;BR /&gt;&lt;BR /&gt;any advices are greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Mon, 22 Oct 2007 09:04:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089865#M551443</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-10-22T09:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089866#M551444</link>
      <description>Shalom Cedrick,&lt;BR /&gt;&lt;BR /&gt;Two ideas come to mind.&lt;BR /&gt;&lt;BR /&gt;1) pvcreate needs to be run on the disk, which would require removing it from the volume group.&lt;BR /&gt;2) strings /etc/lvmtab is being confused by a set of binary characters that is masking the normal output. perhas mv /etc/lvmtab /etc/lvmtab.old vgscan -a will create a different binary string.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 22 Oct 2007 09:31:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089866#M551444</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-10-22T09:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089867#M551445</link>
      <description>Hi Cedrick:&lt;BR /&gt;&lt;BR /&gt;I prefer to read a disk directly rather than use 'adb' to sample what the kernel *last* thought.  I have seen cases where a replaced disk behaved this way until a reboot occured.&lt;BR /&gt;&lt;BR /&gt;# cat ./getlvmid&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset RDEV=$1&lt;BR /&gt;&lt;BR /&gt;KIND=`xd -An -j 8192 -N8 -tc ${RDEV} 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 ${RDEV}`&lt;BR /&gt;    PVID=`echo ${INFO} | awk '{print $1 $2}'`&lt;BR /&gt;    VGID=`echo ${INFO} | awk '{print $3 $4}'`&lt;BR /&gt;    echo "${RDEV} pvid = ${PVID} vgid = ${VGID}"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# ./getlvmid /dev/dsk/c0t6d0&lt;BR /&gt;/dev/dsk/c2t6d0 pvid = 6204a83d3ab304b3 vgid = 6204a83d3ab304b3&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2007 09:56:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089867#M551445</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-10-22T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089868#M551446</link>
      <description>Hi Cedrick,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you post the second line of the output of next commands?&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/rdsk/c7t0d2 of=/tmp/c7t0d2.disk bs=8k skip=1 count=1&lt;BR /&gt;# od  -Ax -tx /tmp/c7t0d2.disk &lt;BR /&gt;&lt;BR /&gt;You will need the line starting with 0000010, second and third field combined is the VGID.&lt;BR /&gt;&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 22 Oct 2007 10:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089868#M551446</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-10-22T10:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089869#M551447</link>
      <description>Here's a quick way to find the VGID too:&lt;BR /&gt;&lt;BR /&gt;echo "0x2008?4D" | adb /dev/dsk/c-t-d-&lt;BR /&gt;&lt;BR /&gt;It will report 5 columns starting with&lt;BR /&gt;2008: &lt;XXX&gt; &lt;XXX&gt; &lt;XXX&gt;  &amp;lt;5th column=VGID&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Now as to why you lost it on that disk, ...who knows.&lt;BR /&gt;&lt;BR /&gt;To fix it you might try:&lt;BR /&gt;&lt;BR /&gt;umount all f/s on that vgname&lt;BR /&gt;vgchange -a n /dev/vgname&lt;BR /&gt;vgcfgrestore -n /dev/vgname /dev/rdsk/&lt;THAT c-t-d-="" without="" info=""&gt;&lt;BR /&gt;vgchange -a y /dev/vgname&lt;BR /&gt;&lt;BR /&gt;Then run above or your script and see if it's showing the VGID now....&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;/THAT&gt;&lt;/XXX&gt;&lt;/XXX&gt;&lt;/XXX&gt;</description>
      <pubDate>Mon, 22 Oct 2007 10:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089869#M551447</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2007-10-22T10:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089870#M551448</link>
      <description>Thanks all for your help.&lt;BR /&gt;&lt;BR /&gt;don't know why but now, on this disk i can get the correct informations.&lt;BR /&gt;&lt;BR /&gt;for test, i've added a disk and i've the same problem but with dd.&lt;BR /&gt;only dd can give me the correct vgid (thanks Robert-Jan)&lt;BR /&gt;&lt;BR /&gt;the tests on this new disk:&lt;BR /&gt;#&amp;gt; strings -t d /etc/lvmtab |grep /dev |grep -v /dev/dsk |sort -k 2 |while read offset vg ; do &lt;BR /&gt;  xd -An -j$(($offset+1024)) -N8 -tuL /etc/lvmtab |read v1 v2 &lt;BR /&gt;  printf "%-15s %x%x\n" ${vg##*/} ${v1} ${v2} &lt;BR /&gt;done&lt;BR /&gt;vg00            d7a29712449bc7a3&lt;BR /&gt;vgdata          d7a29712449ff9e9&lt;BR /&gt;vgtest          d7a29712471cc9e5&lt;BR /&gt;&lt;BR /&gt;# vgchange -a y vgtest&lt;BR /&gt;Volume group "vgtest" has been successfully changed.&lt;BR /&gt;&lt;BR /&gt;#&amp;gt; /tmp/getlvmid /dev/dsk/c6t0d3 &lt;BR /&gt;/dev/dsk/c6t0d3 pvid = d7a29712471cc8e7 vgid = 00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&amp;gt; dd if=/dev/rdsk/c6t0d3 of=/tmp/c6t0d3.disk bs=8k skip=1 count=1&lt;BR /&gt;1+0 records in&lt;BR /&gt;1+0 records out&lt;BR /&gt;[ / ]&lt;BR /&gt;root@nr0u0264# od -Ax -tx /tmp/c6t0d3.disk &lt;BR /&gt;0000000         4c564d52        45433031        d7a29712        471cc8e7&lt;BR /&gt;0000010         d7a29712        471cc9e5         21fffff               0&lt;BR /&gt;0000020              270              80             126               a&lt;BR /&gt;0000030               80             1b8               8             1b0&lt;BR /&gt;0000040              2e8         21fe000             400              17&lt;BR /&gt;0000050             2000            1bff         21fe400            10ff&lt;BR /&gt;0000060                0               0               0               0&lt;BR /&gt;*&lt;BR /&gt;0000400         44454645        43543031               0               0&lt;BR /&gt;0000410                0               0               0               0&lt;BR /&gt;*&lt;BR /&gt;0002000&lt;BR /&gt;&lt;BR /&gt;#&amp;gt; echo "0x2008?4D" | adb /dev/dsk/c6t0d3 &lt;BR /&gt;2008:           -677210350      1193068775      0               0&lt;BR /&gt;&lt;BR /&gt;i'm pretty sure than in few hours, the informations will be correct with adb.&lt;BR /&gt;i'll use dd instead of adb now ;).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Mon, 22 Oct 2007 11:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089870#M551448</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-10-22T11:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089871#M551449</link>
      <description>Hi cedrick&lt;BR /&gt;&lt;BR /&gt;It is Jean-Louis PENNEREE&lt;BR /&gt;&lt;BR /&gt;I'm surprised you 've forgotten some bit of  you had learnt  few yars ago.&lt;BR /&gt;&lt;BR /&gt;Anyway, you still have  "the good reflex"...&lt;BR /&gt;&lt;BR /&gt;Don't forget that there are executables that hp have developed in /usr/contrib/bin directory.&lt;BR /&gt;&lt;BR /&gt;So /usr/contrib/bin/rdvgid /dev/dsk/rcxtxdx command would had been easier to get vgid.&lt;BR /&gt;&lt;BR /&gt;Best regards &lt;BR /&gt;Jean-Louis (rlus@ifrance.com)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Oct 2007 03:40:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089871#M551449</guid>
      <dc:creator>Joël Techer</dc:creator>
      <dc:date>2007-10-26T03:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089872#M551450</link>
      <description>Hey Jean-Louis how are you.&lt;BR /&gt;&lt;BR /&gt;please can you indicate from what bundle/product comes this tool?&lt;BR /&gt;i've never eard from a tool like this.&lt;BR /&gt;(remember i was not at your support level, i've never learnt what you learnt)&lt;BR /&gt;&lt;BR /&gt;for the vgid, i was searching from somewhat release undependant, i hope dd is installed on every HP-UX, after verifications i've not rdvgid in /usr/contrib/bin.&lt;BR /&gt;&lt;BR /&gt;production environment is really different from test environment, some tools you have at the support, are not installed or even known here.&lt;BR /&gt;&lt;BR /&gt;thanks for your answer Jean-Louis</description>
      <pubDate>Mon, 29 Oct 2007 03:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089872#M551450</guid>
      <dc:creator>mobidyc</dc:creator>
      <dc:date>2007-10-29T03:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089873#M551451</link>
      <description>I have had to do this so many times (read VGID) that I wrote showLVMinfo (attached). It is the code listed above in an easy to read output. You run it by providing a list of CTD (or persistent) names (/dev/rdsk is not needed):&lt;BR /&gt; &lt;BR /&gt;# showLVMinfo c1t6d0&lt;BR /&gt;&lt;BR /&gt;Local CPU ID (hex=0x628b7fc7) 1653309383&lt;BR /&gt;&lt;BR /&gt;/dev/rdsk/c1t6d0:&lt;BR /&gt;    CPUID=0x628b7fc7 (1653309383), VGID 0x4c4f2e35, PVID 0x4c4f2e34&lt;BR /&gt; &lt;BR /&gt;I *ALWAYS* use vgexport with the -svm options so the VGID (technically, the CPUID+VGID combined) and lvol names are written to the mapfile.</description>
      <pubDate>Thu, 05 Aug 2010 13:06:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089873#M551451</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-08-05T13:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: can't found the VGID from a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089874#M551452</link>
      <description>Oops, here is the showLVMinfo script again, suitable for downloading.</description>
      <pubDate>Thu, 05 Aug 2010 13:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-found-the-vgid-from-a-disk/m-p/4089874#M551452</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-08-05T13:11:47Z</dc:date>
    </item>
  </channel>
</rss>

