<?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: Replace HD in array - Preliminary steps ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829435#M271609</link>
    <description>First make your VG backups:&lt;BR /&gt;1) vgcfgbackup vgXX&lt;BR /&gt;2) vgexport -v  -p -m vgXX.mapfile -f vgXX.discfile&lt;BR /&gt;&lt;BR /&gt;IT'S IMPERATIVE THAT THE VGEXPORT USE THE -p FLAG - it means don't actually do anything nasty&lt;BR /&gt;&lt;BR /&gt;Now remove the PV from LVM:&lt;BR /&gt;1) you should pvmove all LVs onto a new disc (You've already lvexended them, so just lvreduce -m 0 /dev/vgXX/LVNAME /dev/dsk/DUFF_DISC)&lt;BR /&gt;&lt;BR /&gt;2) now that the disc is empty (pvdisplay /dev/dsk/DUFF_DISC should show "Allocated PE as being zero"&lt;BR /&gt;&lt;BR /&gt;3) now vgreduce vgXX /dev/dsk/DUFF_DISC&lt;BR /&gt;&lt;BR /&gt;Now take out the bad PV and put in a good one&lt;BR /&gt;&lt;BR /&gt;1) pvcreate /dev/rdsk/NEW_DISC&lt;BR /&gt;2) vgextend /dev/vgXX /dev/dsk/NEW_DISC&lt;BR /&gt;3) for I in /dev/vgXX/lvol?&lt;BR /&gt;   do&lt;BR /&gt;     lvexend -m 1 $I /dev/dsk/NEW_DISC&lt;BR /&gt;   done&lt;BR /&gt;&lt;BR /&gt;OR you can just pull it out, put the new one in and lvsync each LV and HOPE ;-)</description>
    <pubDate>Mon, 24 Jul 2006 11:40:06 GMT</pubDate>
    <dc:creator>Mancboy</dc:creator>
    <dc:date>2006-07-24T11:40:06Z</dc:date>
    <item>
      <title>Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829431#M271605</link>
      <description>I have a couple bad sectors on a disk, I have mirrored the disk to another disk and now am ready to hot swap the bad disk with the new one.  Are there any preliminary steps that I should do prior to just pulling the bad out and putting the new one in, besides have a backup on hand for the just in case.  I'm assuming the mirror will kick in and syncronize the mirror to the new drive once placed into the slot the bad one came out of.  &lt;BR /&gt;&lt;BR /&gt;Should I do a fresh vgbackup or anything like that?  Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2006 11:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829431#M271605</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-07-24T11:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829432#M271606</link>
      <description>HI:&lt;BR /&gt;&lt;BR /&gt;You don't provide any details -- LVM patches present, OS version, boot disk or not, so I'll point you to an excellent document:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf" target="_blank"&gt;http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You should already have a valid LVM configuration backup in '/etc/lvmconf' from your last LVM operation.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 24 Jul 2006 11:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829432#M271606</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-24T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829433#M271607</link>
      <description>Denda, are you using software mirror or hardware mirror?&lt;BR /&gt;&lt;BR /&gt;What OS are you using and are you using LVM.&lt;BR /&gt;&lt;BR /&gt;The logical volume that you mirrored is it in the vg00 or a data volume?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Mon, 24 Jul 2006 11:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829433#M271607</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-24T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829434#M271608</link>
      <description>Software mirroring w/MirrorDisk UX&lt;BR /&gt;yes, I'm using LVM&lt;BR /&gt;HPUX 11i &lt;BR /&gt;vg03 is the vg that contains the bad disk.</description>
      <pubDate>Mon, 24 Jul 2006 11:18:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829434#M271608</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-07-24T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829435#M271609</link>
      <description>First make your VG backups:&lt;BR /&gt;1) vgcfgbackup vgXX&lt;BR /&gt;2) vgexport -v  -p -m vgXX.mapfile -f vgXX.discfile&lt;BR /&gt;&lt;BR /&gt;IT'S IMPERATIVE THAT THE VGEXPORT USE THE -p FLAG - it means don't actually do anything nasty&lt;BR /&gt;&lt;BR /&gt;Now remove the PV from LVM:&lt;BR /&gt;1) you should pvmove all LVs onto a new disc (You've already lvexended them, so just lvreduce -m 0 /dev/vgXX/LVNAME /dev/dsk/DUFF_DISC)&lt;BR /&gt;&lt;BR /&gt;2) now that the disc is empty (pvdisplay /dev/dsk/DUFF_DISC should show "Allocated PE as being zero"&lt;BR /&gt;&lt;BR /&gt;3) now vgreduce vgXX /dev/dsk/DUFF_DISC&lt;BR /&gt;&lt;BR /&gt;Now take out the bad PV and put in a good one&lt;BR /&gt;&lt;BR /&gt;1) pvcreate /dev/rdsk/NEW_DISC&lt;BR /&gt;2) vgextend /dev/vgXX /dev/dsk/NEW_DISC&lt;BR /&gt;3) for I in /dev/vgXX/lvol?&lt;BR /&gt;   do&lt;BR /&gt;     lvexend -m 1 $I /dev/dsk/NEW_DISC&lt;BR /&gt;   done&lt;BR /&gt;&lt;BR /&gt;OR you can just pull it out, put the new one in and lvsync each LV and HOPE ;-)</description>
      <pubDate>Mon, 24 Jul 2006 11:40:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829435#M271609</guid>
      <dc:creator>Mancboy</dc:creator>
      <dc:date>2006-07-24T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829436#M271610</link>
      <description>Denda, also this document in the itrc site details very good how to procced.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;searchString=LVMKBRC00006111" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;searchString=LVMKBRC00006111&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Mon, 24 Jul 2006 11:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829436#M271610</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-24T11:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829437#M271611</link>
      <description>OK - I'm reading over all the recommended material.  I'll report back once I research a little more.  &lt;BR /&gt;&lt;BR /&gt;I just have one question and you all may laugh at me, but what good is a hot swappable disk if I have to have users log off the system that use that vg?  Is 'hot swappable' only good for hardware mirroring?</description>
      <pubDate>Mon, 24 Jul 2006 12:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829437#M271611</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-07-24T12:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829438#M271612</link>
      <description>Denda, you are not supposed to logoff regular users to do this procudure, since they are working on the volume group that was mirror on the good disk.&lt;BR /&gt;&lt;BR /&gt;Hot swapping is an incredible benefit, since you can do so many things while you are online. The only difference between hardware mirror and software mirror in this instance, is that you have to play with commands a little to get the rudundancy up and going.&lt;BR /&gt;With hardware mirror you also gain performance.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Mon, 24 Jul 2006 13:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829438#M271612</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-24T13:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829439#M271613</link>
      <description>OK - I see what it's saying now.  I apologize, I was skipping through and not completely reading everything.&lt;BR /&gt;&lt;BR /&gt;"Replacing a bad mirrored disk by hot-swapping in a new disk can be a risky task, if the volume group is active and cannot be deactivated. If the disk is still attached to the volume group, the respective mirror copies of the affected logical volumes have to be reduced. "&lt;BR /&gt;&lt;BR /&gt;I read the first line and then responded to the forum.  As long as I break the mirror, I should be able to do all of this with the users online.  Not a problem.  I'll report back once I am done.  Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jul 2006 13:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829439#M271613</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-07-24T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829440#M271614</link>
      <description>It might be better to title the thread "Replace HD in enclosure/chassis" as I doubt what you have is an array.  Were it an actual array rather than a hot-swap chassis all the LVM stuff would be moot (well, unless you were using the array in JBOD mode or something).&lt;BR /&gt;&lt;BR /&gt;As you might have guessed from the thread, the difference between hot-swap and hot-plug is that hot-plug means simply that nothing will be fried electrically if you remove/replace the disc.  There are still manual steps required before/after the replacement.&lt;BR /&gt;&lt;BR /&gt;Hot-swap means it is all automagic - remove old disc, insert new disc. Happiness and joy, no explicit commands required.&lt;BR /&gt;&lt;BR /&gt;In general, "enclosures" mean hot-plug and actual array controllers mean hot-swap.</description>
      <pubDate>Mon, 24 Jul 2006 19:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829440#M271614</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-07-24T19:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829441#M271615</link>
      <description>Please do not shoot me.  Here is what I am getting when I try to break the mirror on a couple of the lv's.&lt;BR /&gt;server1 # lvreduce -m 0 -A n /dev/vg03/lvol28 /dev/dsk/c4t10d0&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/vg03/lvol28".&lt;BR /&gt;&lt;BR /&gt;lvdisplay shows the following&lt;BR /&gt;00461 /dev/dsk/c4t10d0   03260 current  /dev/dsk/c4t9d0    02327 current&lt;BR /&gt;   00462 /dev/dsk/c4t10d0   03261 current  /dev/dsk/c4t9d0    02328 stale&lt;BR /&gt;   00463 /dev/dsk/c4t10d0   03262 current  /dev/dsk/c4t9d0    02329 current&lt;BR /&gt;&lt;BR /&gt;Prior to me mirroring these to begin with a week ago, I knew c4t10d0 was the bad disk, since it was not mirrored at the time and we rec'd error's anytime we tried to read or write from a specific file system on the drive, I even deleted the lvol prior and recreated it and the same happened.  &lt;BR /&gt;&lt;BR /&gt;Now the error above looks as though c4t9d0 is the bad disk, or is it just because c4t9d0 can not read from c4t10d0 bad sectors, so it shows stale.  If I have a stale lv on the disk that supposedly is good, how can I break that mirror?</description>
      <pubDate>Tue, 25 Jul 2006 11:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829441#M271615</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-07-25T11:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace HD in array - Preliminary steps ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829442#M271616</link>
      <description>just to give an update on how this was fixed just this morning.&lt;BR /&gt;&lt;BR /&gt;Here were the steps:&lt;BR /&gt;mv lvmtab.XXX&lt;BR /&gt;vgscan&lt;BR /&gt;rm lvmtab&lt;BR /&gt;vgscan&lt;BR /&gt;vgcfgrestore -n /dev/vg03 /dev/rdsk/c4t9d0&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg03&lt;BR /&gt;&lt;BR /&gt;Bounced to single user mode&lt;BR /&gt;vgchange -a y /dev/vg03 which sync'd everything up (a little over 1 hour)&lt;BR /&gt;vg03 online and seeing all disks and mirrors properly&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2006 11:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-hd-in-array-preliminary-steps/m-p/3829442#M271616</guid>
      <dc:creator>TWBSupport</dc:creator>
      <dc:date>2006-08-03T11:03:30Z</dc:date>
    </item>
  </channel>
</rss>

