<?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: what is the best way of replacing disk that is &amp;quot;kind of&amp;quot; broken in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845685#M600129</link>
    <description>PLEASE:  All repliers to this question, read the following&lt;BR /&gt;&lt;BR /&gt;sid:&lt;BR /&gt;&lt;BR /&gt;Thanks for the link to the document.  I know I had an instance where I corrupted a database by trying to pull the broken disk, and your doc mentions this.  I wish I knew why this happened, but at least I know I'm not going crazy, not yet anyway.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Kirk</description>
    <pubDate>Wed, 31 Jul 2002 18:31:14 GMT</pubDate>
    <dc:creator>Kirk Reindl</dc:creator>
    <dc:date>2002-07-31T18:31:14Z</dc:date>
    <item>
      <title>what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845679#M600123</link>
      <description>L2000&lt;BR /&gt;HPUX OS 11.11&lt;BR /&gt;Disk size: 36GB&lt;BR /&gt;Part of HP 2100 disk rack.&lt;BR /&gt;Disk's config in LVM:  extent based striping with mirroring.&lt;BR /&gt;Number of logical vols the disk belongs to:   30&lt;BR /&gt;&lt;BR /&gt;I have a disk in a volume group that shows a read error in stm and is reporting a SCSI read error in the syslog.  I would like to have the disk physically replaced and I'm looking for the best, most efficient way to get the old disk out the new disk configured.  I can still talk to the disk, for example a vgdisplay -v does not detect a problem.  That is why I say the disk is ???kind of??? bad.  Nonetheless, I need to get the disk out.&lt;BR /&gt;&lt;BR /&gt;In the past, I have merely pulled the bad disk out, put a new disk in, and did vgcfgrestore, vgchange, vgsync, etc.  However, I have gotten burned on this in the past as I had an instance where LVM did not mark all the extents on the bad disk as being stale after I had pulled it.  Well my app went to write to disk thinking the extents were current, which they were not (the disk was pulled), and my app blew up.  &lt;BR /&gt;&lt;BR /&gt;The only other technique I'm aware of is lvreducing the bad disk out, then vgreduce/extend, then lvextend.  Well as you can imagine, doing this across 30 lvols is quite cumbersome.  &lt;BR /&gt;&lt;BR /&gt;I guess my question is simply, is there a better, more efficient way to get this disk out and get the new one in??&lt;BR /&gt;&lt;BR /&gt;Any ideas or direction is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Kirk Reindl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jul 2002 17:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845679#M600123</guid>
      <dc:creator>Kirk Reindl</dc:creator>
      <dc:date>2002-07-31T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845680#M600124</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;maybe you can first use the pvmove&lt;BR /&gt;command, and move alle used extents to a disk&lt;BR /&gt;or disks where space is available. &lt;BR /&gt;If all extents are free on the broken disk,&lt;BR /&gt;you can remove him from the vg. &lt;BR /&gt;&lt;BR /&gt;regards, &lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Wed, 31 Jul 2002 17:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845680#M600124</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-07-31T17:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845681#M600125</link>
      <description>Hi Kirk:&lt;BR /&gt;&lt;BR /&gt;I have so many hot-plug drives that I generally feel something is wrong if I don't replace at least one every two or three weeks. I never do the lvreduce. I start with the vgcfgrestore and have never had the kind of problem that you describe. In your case, where the disk has not failed, I suggest that you pull the disk and leave it out for a miute or two before replacing the disk with the new one. That way, LVM and the IO subsystem definitely knows there is a problem.&lt;BR /&gt;&lt;BR /&gt;Of course, the safe advice is always have a known good backup before ... . In reality, I replace these frequently and never give it a thought.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jul 2002 17:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845681#M600125</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-31T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845682#M600126</link>
      <description>If it's "kindda broken" then you have a least some time to plan for this. The safest/cleanest way is to do this in single-user mode. That way you can be sure no one is accessing the disk. As far as the process goes..&lt;BR /&gt;&lt;BR /&gt;After the disk is physically replaced boot up in single-user mode and run .. (assuming vg02 and the disk is c2t2d0)&lt;BR /&gt;&lt;BR /&gt;# vgcfgrestore -n vg02 /dev/rdsk/c2t2d0&lt;BR /&gt;# vgchange -a y vg02&lt;BR /&gt;# vgsync vg02&lt;BR /&gt;&lt;BR /&gt;That's about the simplest it could get. The usual applies, make sure full backup is done before doing this and most importantly make sure your system is patched with the latest LVM related patches.</description>
      <pubDate>Wed, 31 Jul 2002 17:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845682#M600126</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-31T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845683#M600127</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I would think the best plan would be:&lt;BR /&gt;&lt;BR /&gt;take good full backup&lt;BR /&gt;find out the LVs in the *bad* disks, create a VG map of the VG with vgexport -p:&lt;BR /&gt;# vgexport -p -v -s -m mapfile&lt;BR /&gt;This map file can be used incase of any issues while restoring VG&lt;BR /&gt;Remove disk from the system&lt;BR /&gt;Add new one and do a vgcfgrestore. Check the disk with lvdisplay -v and find out any stale on that. If found do a vgsync or lvsync.&lt;BR /&gt;&lt;BR /&gt;rgds,</description>
      <pubDate>Wed, 31 Jul 2002 18:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845683#M600127</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-07-31T18:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845684#M600128</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;This document describes the disk replacement procedures in detail (TKB #KBRC00009115):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000059338243" target="_blank"&gt;http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000059338243&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;rgds,</description>
      <pubDate>Wed, 31 Jul 2002 18:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845684#M600128</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-07-31T18:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845685#M600129</link>
      <description>PLEASE:  All repliers to this question, read the following&lt;BR /&gt;&lt;BR /&gt;sid:&lt;BR /&gt;&lt;BR /&gt;Thanks for the link to the document.  I know I had an instance where I corrupted a database by trying to pull the broken disk, and your doc mentions this.  I wish I knew why this happened, but at least I know I'm not going crazy, not yet anyway.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Kirk</description>
      <pubDate>Wed, 31 Jul 2002 18:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845685#M600129</guid>
      <dc:creator>Kirk Reindl</dc:creator>
      <dc:date>2002-07-31T18:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845686#M600130</link>
      <description>I know this is an old problem but I found the fix after a long time...&lt;BR /&gt;&lt;BR /&gt;If a disk is reporting errors and is still up you have to perform a pvchange on the disk device before physically taking it out. This is the list of commands I used after struggling with this for a while. I hope this works for anyone in the same boat...&lt;BR /&gt;&lt;BR /&gt;Considering the disk is /dev/dsk/c3t5d0&lt;BR /&gt;&lt;BR /&gt;Here is the order of cmds actions (slight change of when the vgcfgrestore and pvchange is done):&lt;BR /&gt; &lt;BR /&gt;1. Deactivate the PV:&lt;BR /&gt;# pvchange -a N /dev/dsk/c3t5d0 &lt;BR /&gt; &lt;BR /&gt;2. Take out and replace Replace the faulty Disk then fcmsutil replace_dsk&lt;BR /&gt;(Find the N port ID by performing a tail on syslog.log in /var/adm/syslog)&lt;BR /&gt;&lt;BR /&gt;fcmsutil /dev/td0 replace_dsk 0xe0                                            &lt;BR /&gt; &lt;BR /&gt;3. Restore the LVM Header (note the use of rdsk):&lt;BR /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t5d0&lt;BR /&gt; &lt;BR /&gt;4. Activate the PV:&lt;BR /&gt;# pvchange -a y /dev/dsk/c3t5d0&lt;BR /&gt; &lt;BR /&gt;5. Activate the VG:&lt;BR /&gt;# vgchange -a y /dev/vg01&lt;BR /&gt; &lt;BR /&gt;6. vgsync (note, the VG may begin syncing after the vgchange):&lt;BR /&gt;# vgsync /dev/vg01&lt;BR /&gt;&lt;BR /&gt;Hope that helps any poor souls looking for the answer.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2008 15:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845686#M600130</guid>
      <dc:creator>Chris Gromala</dc:creator>
      <dc:date>2008-04-10T15:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845687#M600131</link>
      <description>Well done Chris.&lt;BR /&gt;&lt;BR /&gt;This feature is called &lt;BR /&gt;&lt;BR /&gt;LVM Online Disk Replacement (LVM OLR)&lt;BR /&gt;&lt;BR /&gt;The guide is here:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf" target="_blank"&gt;http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps in future.</description>
      <pubDate>Thu, 10 Apr 2008 16:58:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845687#M600131</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-04-10T16:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way of replacing disk that is "kind of" broken</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845688#M600132</link>
      <description>Issue resolved</description>
      <pubDate>Thu, 10 Apr 2008 17:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-of-replacing-disk-that-is-quot-kind-of-quot/m-p/4845688#M600132</guid>
      <dc:creator>Kirk Reindl</dc:creator>
      <dc:date>2008-04-10T17:02:05Z</dc:date>
    </item>
  </channel>
</rss>

