<?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 Resync stale blocks in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669811#M381685</link>
    <description>I have a volume group/logical volume a drive that has a lot of stale blocks.  I want to remove the drive, wipe it, rejoin it to the logical volume and resync it.&lt;BR /&gt;&lt;BR /&gt;The disk with the stale blocks is c8t6d0.&lt;BR /&gt;&lt;BR /&gt;So would this be the correct method?&lt;BR /&gt;pvchange -a n /dev/dsk/c8t6d0&lt;BR /&gt;dd if=/dev/null of=/dev/rdsk/c8t6d0&lt;BR /&gt;pvcreate /dev/rdsk/c8t6d0&lt;BR /&gt;vgcfgrestore -n myvg /dev/rdsk/c8t6d0&lt;BR /&gt;vgchange -a y mhvg&lt;BR /&gt;&lt;BR /&gt;Check the sync status.&lt;BR /&gt;pvdisplay -v /dev/dsk/c6t6d0 | more&lt;BR /&gt;&lt;BR /&gt;I have never wiped a drive before.  Normally the drives are totally bad and we just pull/replace them.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Aug 2010 18:04:15 GMT</pubDate>
    <dc:creator>yaplej</dc:creator>
    <dc:date>2010-08-03T18:04:15Z</dc:date>
    <item>
      <title>Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669811#M381685</link>
      <description>I have a volume group/logical volume a drive that has a lot of stale blocks.  I want to remove the drive, wipe it, rejoin it to the logical volume and resync it.&lt;BR /&gt;&lt;BR /&gt;The disk with the stale blocks is c8t6d0.&lt;BR /&gt;&lt;BR /&gt;So would this be the correct method?&lt;BR /&gt;pvchange -a n /dev/dsk/c8t6d0&lt;BR /&gt;dd if=/dev/null of=/dev/rdsk/c8t6d0&lt;BR /&gt;pvcreate /dev/rdsk/c8t6d0&lt;BR /&gt;vgcfgrestore -n myvg /dev/rdsk/c8t6d0&lt;BR /&gt;vgchange -a y mhvg&lt;BR /&gt;&lt;BR /&gt;Check the sync status.&lt;BR /&gt;pvdisplay -v /dev/dsk/c6t6d0 | more&lt;BR /&gt;&lt;BR /&gt;I have never wiped a drive before.  Normally the drives are totally bad and we just pull/replace them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2010 18:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669811#M381685</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-03T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669812#M381686</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This isn't going to accomplish your objective.  If the drive is bad, *replace* it:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf" target="_blank"&gt;http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And that, said, by the way:&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/null of=/dev/rdsk/c8t6d0&lt;BR /&gt;&lt;BR /&gt;...isn't going to write anything.  You would to use something like '/dev/zero'.&lt;BR /&gt;&lt;BR /&gt;If you think that your stale extents are transient, due perhaps to a loss of path, then re-sync the logical volume with:&lt;BR /&gt;&lt;BR /&gt;# lvsync /dev/vgXX/lvolY&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;# vgsync /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2010 18:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669812#M381686</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-08-03T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669813#M381687</link>
      <description>Thanks for the help.  &lt;BR /&gt;&lt;BR /&gt;Problem is that the drive seems to be working other than the stale extents.  I just wanted to make sure the device is not having any other problems.&lt;BR /&gt;&lt;BR /&gt;I did run into problems using dd if=/dev/null so thanks for pointing out the correct way to wipe the drive.&lt;BR /&gt;&lt;BR /&gt;If its able to write all zeros to the drive I will call it good and added the drive back into the vg sync it and check on it again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2010 19:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669813#M381687</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-03T19:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669814#M381688</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If its able to write all zeros to the drive I will call it good and added the drive back into the vg sync it and check on it again.&lt;BR /&gt;&lt;BR /&gt;I would have re-synced the mirror ('lvsync' or 'vgsync' as noted). and then I might have *read* the drive :&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/rdsk/c8t6d0 of=/dev/null bs=1024k&lt;BR /&gt;&lt;BR /&gt;Note the raw device to bypass the buffer cache and the large block size so it gets done as fast as possible.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Aug 2010 20:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669814#M381688</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-08-03T20:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669815#M381689</link>
      <description>The problem is, or could be, that once you see some stale extents on a disk it usually indicates the beginning of the end.&lt;BR /&gt;&lt;BR /&gt;While it may be OK now, and you may be able to resync all extents now, eventually the disk will fail.&lt;BR /&gt;&lt;BR /&gt;I have found it to be more expedient to just go ahead and replace a disk when it starts showing stale extents.</description>
      <pubDate>Tue, 03 Aug 2010 20:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669815#M381689</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-08-03T20:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669816#M381690</link>
      <description>The dd command is redundant. When you run lvsync or vgsync, all the stale extents will be written. If there is a problem, you'll a swarm of error messages on the console, in syslog and EMS email messages -- which means its time to replace the drive. dd won't "clean up the sectors". As Patrick points out, disk drives never get better. It's the law of entropy that everything is falling apart (and what keeps us support folk employed). I would order the replacement now. You'll need it soon.</description>
      <pubDate>Tue, 03 Aug 2010 21:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669816#M381690</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-08-03T21:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669817#M381691</link>
      <description>Thanks for all the assistance.  I plan on ordering a new drive for it now itâ  s actually a backup system so not critical until our primary host fails.&lt;BR /&gt;&lt;BR /&gt;I donâ  t expect it to fix the drive but itâ  s been a good learning exercise.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2010 21:56:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669817#M381691</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-03T21:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669818#M381692</link>
      <description>&amp;gt;Bill: It's the law of entropy that everything is falling apart&lt;BR /&gt;&lt;BR /&gt;And if you analyze the units of entropy, it is exactly the same as information and we all know you need more and more disk space.  :-)</description>
      <pubDate>Wed, 04 Aug 2010 04:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669818#M381692</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-04T04:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669819#M381693</link>
      <description>Things are not looking good for this drive.  &lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/dev/rdsk/c8t6d0 bs=1024k&lt;BR /&gt;I/O error&lt;BR /&gt;34733+0 records in&lt;BR /&gt;34732+1 records out&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2010 22:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669819#M381693</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-04T22:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Resync stale blocks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669820#M381694</link>
      <description>No, they are not.</description>
      <pubDate>Wed, 04 Aug 2010 23:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resync-stale-blocks/m-p/4669820#M381694</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-08-04T23:10:29Z</dc:date>
    </item>
  </channel>
</rss>

