<?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: Broken primary mirror in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802334#M82183</link>
    <description>If everything else failed (vgreduce -f and vgscan failed), the last resort is to recreate vg00. First take note of /dev/vg00/group minor number. Then you would have to boot in LVM maintenance mode (hpux -lm), then do ..&lt;BR /&gt;# vgexport -m /mapfile /dev/vg00&lt;BR /&gt;# mkdir /dev/vg00 &lt;BR /&gt;# mknod /dev/vg00/group c 64 0x0#0000 &lt;BR /&gt;=&amp;gt; Use the same minor number that you have noted down earlier.&lt;BR /&gt;# vgimport -m /mapfile /dev/vg00 /dev/dsk/c1t5d0&lt;BR /&gt;# vgchange -a y /dev/vg00&lt;BR /&gt;Now check vg00 to make sure the offending PV is gone for good.&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Sep 2002 14:29:56 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-09-09T14:29:56Z</dc:date>
    <item>
      <title>Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802323#M82172</link>
      <description>Hi experts...&lt;BR /&gt;Another curly one. &lt;BR /&gt;Two disks in vg00. At some stage (before I was contracted) the secondary mirror went stale and wasn't maintained. THe system was rebooted last week and didn't boot with a LIF area problem. I attempted a lif recovery with the recovery cd (10.20) and failed with bad magic number. Tried this with a number of different super blocks without joy. Found the old mirror, changed the boot path and booted using the old mirror. So I tried pvcreate -B the old primary hoping to re-add it as the mirror. &lt;BR /&gt;&lt;BR /&gt;Here's my status...&lt;BR /&gt;two disks... c0t5d0 and its original mirror c1t5d0&lt;BR /&gt;I've booted from c1t5d0 &lt;BR /&gt;pvcreate -B c0t5d0&lt;BR /&gt;dd'd c0t5d0 without error.&lt;BR /&gt;vg00 looks bad with Cur PV = 2 and Act PV =1 All LV's are available stale and only c1t5d0 appears in PV's section..&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v /dev/vg00&lt;BR /&gt;vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to &lt;BR /&gt;this volume group&lt;BR /&gt;vgdisplay: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg00&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                      10     &lt;BR /&gt;Open LV                     10     &lt;BR /&gt;Max PV                      16     &lt;BR /&gt;Cur PV                      2      &lt;BR /&gt;Act PV                      1      &lt;BR /&gt;Max PE per PV               2000         &lt;BR /&gt;VGDA                        2   &lt;BR /&gt;PE Size (Mbytes)            4               &lt;BR /&gt;Total PE                    1023    &lt;BR /&gt;Alloc PE                    714     &lt;BR /&gt;Free PE                     309     &lt;BR /&gt;Total PVG                   0        &lt;BR /&gt;&lt;BR /&gt;LV's are all    available/stale&lt;BR /&gt;&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c1t5d0&lt;BR /&gt;   PV Status                   available    &lt;BR /&gt;   Total PE                    1023    &lt;BR /&gt;   Free PE                     309     &lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c0t5d0&lt;BR /&gt;/dev/dsk/c1t5d0&lt;BR /&gt;/dev/vg01&lt;BR /&gt;/dev/dsk/c0t3d0&lt;BR /&gt;/dev/dsk/c0t4d0&lt;BR /&gt;/dev/dsk/c1t3d0&lt;BR /&gt;/dev/dsk/c1t4d0&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c0t2d0&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg00/lvol1 | more&lt;BR /&gt;lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to &lt;BR /&gt;this volume group&lt;BR /&gt;lvdisplay: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg00/lvol1&lt;BR /&gt;VG Name                     /dev/vg00&lt;BR /&gt;LV Permission               read/write   &lt;BR /&gt;LV Status                   available/stale           &lt;BR /&gt;Mirror copies               1            &lt;BR /&gt;Consistency Recovery        MWC                 &lt;BR /&gt;Schedule                    parallel     &lt;BR /&gt;LV Size (Mbytes)            100             &lt;BR /&gt;Current LE                  25        &lt;BR /&gt;Allocated PE                50          &lt;BR /&gt;Stripes                     0       &lt;BR /&gt;Stripe Size (Kbytes)        0                   &lt;BR /&gt;Bad block                   off          &lt;BR /&gt;Allocation                  strict/contiguous         &lt;BR /&gt;IO Timeout (Seconds)        default             &lt;BR /&gt; &lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name            LE on PV  PE on PV  &lt;BR /&gt;   /dev/dsk/c1t5d0    25        25        &lt;BR /&gt; &lt;BR /&gt;   --- Logical extents ---&lt;BR /&gt;   LE   PV1                PE1  Status 1 PV2                PE2  Status 2 &lt;BR /&gt;   0000 ???                0000 stale    /dev/dsk/c1t5d0    0000 current  &lt;BR /&gt;   0001 ???                0001 stale    /dev/dsk/c1t5d0    0001 current  &lt;BR /&gt;  :                  :&lt;BR /&gt;&lt;BR /&gt;The -k flag in lvreduce was designed specifically for this reason but fails also as follows...&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 -k /dev/vg00/lvol1 1 &lt;BR /&gt;Physical extents on remaining physical volumes are stale or &lt;BR /&gt;Remaining physical volumes are not responding.&lt;BR /&gt;lvreduce: The LVM device driver failed to reduce mirrors on&lt;BR /&gt;the logical volume "/dev/vg00/lvol1".&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Mon, 09 Sep 2002 12:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802323#M82172</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T12:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802324#M82173</link>
      <description>Try restoring the VG information to c0t5d0:-&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore /dev/vg00 /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;You should then be able to sync the LV's.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Mon, 09 Sep 2002 13:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802324#M82173</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-09-09T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802325#M82174</link>
      <description>vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t5d0&lt;BR /&gt;vgcfgrestore: Couldn't query physical volume "/dev/dsk/c0t5d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to &lt;BR /&gt;this volume group&lt;BR /&gt;Volume Group configuration has been restored to /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and vgdisplay -v still reports as above with 2cur pv's, 1 act pv and only c1t5d0 showing in the PV's section.</description>
      <pubDate>Mon, 09 Sep 2002 13:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802325#M82174</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T13:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802326#M82175</link>
      <description>Also I feel it important to note that at one point I vgextend /dev/vg00 /dev/dsk/c0t5d0 and vgdisplay -v reported 3 current pv's and 2 active. &lt;BR /&gt;&lt;BR /&gt;Is there a way I can clean the vg and the lv's so that they no longer think there is a mirror?&lt;BR /&gt;&lt;BR /&gt;That way I would be able to recreate the mirror pv from scratch.&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Mon, 09 Sep 2002 13:34:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802326#M82175</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T13:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802327#M82176</link>
      <description>Hi Ian&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think you need to remove the disk from the volume group with a vgreduce -f&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063208748" target="_blank"&gt;http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000063208748&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I know your not replacing the disk but have a look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062910934" target="_blank"&gt;http://support4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062910934&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2002 13:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802327#M82176</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-09-09T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802328#M82177</link>
      <description>The "lvreduce" with the key value usually will do the trick. Are you using the correct key value ? Did you ..&lt;BR /&gt;# lvdisplay -v -k /dev/vg00/lvol1 | more&lt;BR /&gt;.. so that the "PV1" and "PV2" column display the key value instead of the "???" or "disk-path". So far the 1st PV (ie PV1) usually has key value of 0 (zero) meaning you should ..&lt;BR /&gt;# lvreduce -m 0 -k /dev/vg00/lvol1 0&lt;BR /&gt;instead of using value "1". Again run the "lvdisplay" above to confirm.</description>
      <pubDate>Mon, 09 Sep 2002 13:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802328#M82177</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-09-09T13:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802329#M82178</link>
      <description>Hi Ian:&lt;BR /&gt;&lt;BR /&gt;Identify the missing extents looking for "stale" extents by logical volume:&lt;BR /&gt;&lt;BR /&gt;# vgdisplay -v vgXY | grep stale&lt;BR /&gt;&lt;BR /&gt;Now look for the "disk key" in the PV column of every logical volume involved, in this output:&lt;BR /&gt;&lt;BR /&gt;# lvdisplay -v -k /dev/vgXX/lvolX&lt;BR /&gt;&lt;BR /&gt;Now, remove that mirror:&lt;BR /&gt;&lt;BR /&gt;# lvreduce -m 0 -k /dev/vgXX/lvolX [diskkey]&lt;BR /&gt;&lt;BR /&gt;Finally, recreate your 'etc/lvmtab':&lt;BR /&gt;&lt;BR /&gt;# mv /etc/lvmtab /etc/lvmtab.old&lt;BR /&gt;# vgscan -av&lt;BR /&gt;# vgchange -a y vgXX&lt;BR /&gt;# lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;Then, remove the missing physical device:&lt;BR /&gt;&lt;BR /&gt;# vgreduce -f vgXX&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2002 13:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802329#M82178</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-09T13:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802330#M82179</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt;You should not be doing a vgextend of c0t5d0. All you would do was to "vgcfgrestore c0t5d0;vgchange -a y vg00" and a vgsync to restore your mirrors.&lt;BR /&gt;&lt;BR /&gt;Try a "vgreduce -f vg00" and see if there is any luck.&lt;BR /&gt;&lt;BR /&gt;Post your latest status.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 09 Sep 2002 13:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802330#M82179</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-09-09T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802331#M82180</link>
      <description>Yep I was using the wrong key value. It looks like it might work for me. I'll get back to you with results and points shortly (30 min).&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Mon, 09 Sep 2002 13:59:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802331#M82180</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802332#M82181</link>
      <description>OK.. the lvreduce worked a treat reducing all lv's to a single copy.&lt;BR /&gt;Unfortunately...&lt;BR /&gt;vgreduce -f /dev/vg00        &lt;BR /&gt;vgreduce: Couldn't query physical volume "/dev/dsk/c0t5d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to &lt;BR /&gt;this volume group&lt;BR /&gt;I removed lvmtab and recreated (vgscan -v), and it still contains c0t5d0.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2002 14:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802332#M82181</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T14:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802333#M82182</link>
      <description>Oh.. vgchange seems to have cleared up this issue. More soon...&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Mon, 09 Sep 2002 14:19:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802333#M82182</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-09T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802334#M82183</link>
      <description>If everything else failed (vgreduce -f and vgscan failed), the last resort is to recreate vg00. First take note of /dev/vg00/group minor number. Then you would have to boot in LVM maintenance mode (hpux -lm), then do ..&lt;BR /&gt;# vgexport -m /mapfile /dev/vg00&lt;BR /&gt;# mkdir /dev/vg00 &lt;BR /&gt;# mknod /dev/vg00/group c 64 0x0#0000 &lt;BR /&gt;=&amp;gt; Use the same minor number that you have noted down earlier.&lt;BR /&gt;# vgimport -m /mapfile /dev/vg00 /dev/dsk/c1t5d0&lt;BR /&gt;# vgchange -a y /dev/vg00&lt;BR /&gt;Now check vg00 to make sure the offending PV is gone for good.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2002 14:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802334#M82183</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-09-09T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Broken primary mirror</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802335#M82184</link>
      <description>Yep it was the vgchange that corrected the cur/act PV discrepancey in vgdisplay. Thankyou all for your help. It's fabulous to know I can depend this forum, when my situation gets ugly, and all in the space of an hour or so.&lt;BR /&gt;Thanks..&lt;BR /&gt;&lt;BR /&gt;ian</description>
      <pubDate>Tue, 10 Sep 2002 07:26:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/broken-primary-mirror/m-p/2802335#M82184</guid>
      <dc:creator>Ian Killer_1</dc:creator>
      <dc:date>2002-09-10T07:26:10Z</dc:date>
    </item>
  </channel>
</rss>

