<?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: Replacing Failed disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414837#M626552</link>
    <description>Yes use the dd command online, if the disk is failed your session will probably hang, the command itself will take a while as it is reading the whole disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Nov 2004 09:30:15 GMT</pubDate>
    <dc:creator>D Anderton</dc:creator>
    <dc:date>2004-11-04T09:30:15Z</dc:date>
    <item>
      <title>Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414830#M626545</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;I want to replace a failed disk.&lt;BR /&gt;&lt;BR /&gt;Can you pls provide me detailed step by step of tasks to be performed before the disk replacement and after the disk is inserted, as i'm a beginner in HP-UX.&lt;BR /&gt;&lt;BR /&gt;Pls find the output of the current status.&lt;BR /&gt;&lt;BR /&gt;DSLARCM1:/home/root&amp;gt; lvdisplay -v /dev/vg04/lvol1|grep -i stale&lt;BR /&gt;LV Status                   available/stale           &lt;BR /&gt;   0000 /dev/dsk/c0t4d0    0000 stale    /dev/dsk/c3t2d0    0000 current  &lt;BR /&gt;   0001 /dev/dsk/c0t4d0    0001 stale    /dev/dsk/c3t2d0    0001 current  &lt;BR /&gt;   0002 /dev/dsk/c0t4d0    0002 stale    /dev/dsk/c3t2d0    0002 current  &lt;BR /&gt;   0003 /dev/dsk/c0t4d0    0003 stale    /dev/dsk/c3t2d0    0003 current  &lt;BR /&gt;   0005 /dev/dsk/c0t4d0    0005 stale    /dev/dsk/c3t2d0    0005 current  &lt;BR /&gt;   0006 /dev/dsk/c0t4d0    0006 stale    /dev/dsk/c3t2d0    0006 current  &lt;BR /&gt;   0007 /dev/dsk/c0t4d0    0007 stale    /dev/dsk/c3t2d0    0007 current  &lt;BR /&gt;   0496 /dev/dsk/c0t4d0    0496 stale    /dev/dsk/c3t2d0    0496 current  &lt;BR /&gt;   0504 /dev/dsk/c0t4d0    0504 stale    /dev/dsk/c3t2d0    0504 current  &lt;BR /&gt;   0505 /dev/dsk/c0t4d0    0505 stale    /dev/dsk/c3t2d0    0505 current  &lt;BR /&gt;   0506 /dev/dsk/c0t4d0    0506 stale    /dev/dsk/c3t2d0    0506 current  &lt;BR /&gt;   0507 /dev/dsk/c0t4d0    0507 stale    /dev/dsk/c3t2d0    0507 current  &lt;BR /&gt;&lt;BR /&gt;That vg04 VG is having only one LV.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance,&lt;BR /&gt;SR</description>
      <pubDate>Thu, 04 Nov 2004 08:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414830#M626545</guid>
      <dc:creator>Madhu_17</dc:creator>
      <dc:date>2004-11-04T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414831#M626546</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. Unmount the filesystems from VG04&lt;BR /&gt;2. # dd if=/dev/dsk/c0t4d0 of=/dev/null&lt;BR /&gt;This will identify the bad blocks in the disk.&lt;BR /&gt;3. Use lvsplit to disengage the mirrors and keep you copy on /dev/dsk/c3t2d0 safe.&lt;BR /&gt;4. remove /dev/dsk/c0t4d0 and insert new disk.&lt;BR /&gt;5. pvcreate &lt;DISK device="" name=""&gt;&lt;BR /&gt;6. Use lvmerge to again mirror your LV&lt;BR /&gt;&lt;BR /&gt;Use lvmerge command carefully. see man lvsplit and lvmerge.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/DISK&gt;</description>
      <pubDate>Thu, 04 Nov 2004 08:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414831#M626546</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-11-04T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414832#M626547</link>
      <description>Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;Can I use lvreduce to unmirror the second copy? &lt;BR /&gt;&lt;BR /&gt;Can i know the exact syntax for these commands?</description>
      <pubDate>Thu, 04 Nov 2004 08:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414832#M626547</guid>
      <dc:creator>Madhu_17</dc:creator>
      <dc:date>2004-11-04T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414833#M626548</link>
      <description>First thing confirm the disk has failed and you don't just need to perform an lvsync.&lt;BR /&gt;&lt;BR /&gt;Use ioscan -fnCdisk and check for NO-HW.&lt;BR /&gt;&lt;BR /&gt;Sometime LVM can report the wrong disk has failed when in a mirror, use dd to confirm the failed disk.  dd if=/dev/dsk/c0t4d0 of=/dev/null this will hang on a failed disk.&lt;BR /&gt;&lt;BR /&gt;Remove the failed disk from the vg.&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vg04/lvol1 /dev/dsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;vgreduce /dev/vg04 /dev/dsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;replace disk&lt;BR /&gt;&lt;BR /&gt;ioscan -fn&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vg04 /dev/dsk/c0t4d0&lt;BR /&gt;&lt;BR /&gt;lvextend -m1 /dev/vg04/lvol1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 08:38:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414833#M626548</guid>
      <dc:creator>D Anderton</dc:creator>
      <dc:date>2004-11-04T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414834#M626549</link>
      <description>Thanks Damien..&lt;BR /&gt;&lt;BR /&gt;Exactly i need the above commands.&lt;BR /&gt;&lt;BR /&gt;but ioscan of my system is not showing as NO_HW or unidentified sort of error messages.&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnC disk&lt;BR /&gt;Class     I  H/W Path      Driver      S/W State H/W Type  Description&lt;BR /&gt;=============================================dev/rdsk/c0t4d0&lt;BR /&gt;disk      4  10/0.5.0      sdisk       CLAIMED   DEVICE    SEAGATE ST32171W&lt;BR /&gt;&lt;BR /&gt;can we do anything without replacing this disk.&lt;BR /&gt;&lt;BR /&gt;Can i run lvreduce and vgreduce commands on the mounted filesystem? i believe i can.. correct me, if i'm wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 08:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414834#M626549</guid>
      <dc:creator>Madhu_17</dc:creator>
      <dc:date>2004-11-04T08:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414835#M626550</link>
      <description>lvreduce, vgreduce, vgextend etc..etc.. can all be performed online.&lt;BR /&gt;&lt;BR /&gt;Perform the dd to confirm you do have a failed disk, if not it could be that the mirror is just out of sync (stale) :&lt;BR /&gt;&lt;BR /&gt;lvsync /dev/vg04/lvol1&lt;BR /&gt;&lt;BR /&gt;This is not a swap device is it ?&lt;BR /&gt;&lt;BR /&gt;If this is a swap device your lvol will always have stale extents after a reboot if the Mirror Write Consistancy is turned on.  &lt;BR /&gt;&lt;BR /&gt;If you confirm you have a failed disk and this is critical data ensure you get a backup.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 09:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414835#M626550</guid>
      <dc:creator>D Anderton</dc:creator>
      <dc:date>2004-11-04T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414836#M626551</link>
      <description>Yes Damian..&lt;BR /&gt;&lt;BR /&gt;It's not a swap device..&lt;BR /&gt;&lt;BR /&gt;can i run the dd command on a single disk online?&lt;BR /&gt;&lt;BR /&gt;shall i use this command to check the disk status:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/dsk/c0t4d0 of=/dev/null&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 09:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414836#M626551</guid>
      <dc:creator>Madhu_17</dc:creator>
      <dc:date>2004-11-04T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Failed disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414837#M626552</link>
      <description>Yes use the dd command online, if the disk is failed your session will probably hang, the command itself will take a while as it is reading the whole disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 09:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-failed-disk/m-p/3414837#M626552</guid>
      <dc:creator>D Anderton</dc:creator>
      <dc:date>2004-11-04T09:30:15Z</dc:date>
    </item>
  </channel>
</rss>

