<?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 replace bootdisk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002658#M605178</link>
    <description>Hi all!&lt;BR /&gt;I have two physical boot volumes in vg00.&lt;BR /&gt;Primary Boot /dev/dsk/c2t2d0 (0/0/2/0.2) and Mirror Boot /dev/dsk/c1t2d0 (0/0/1/1.2)&lt;BR /&gt;Primary bootdisk failed, i need replace it.&lt;BR /&gt;&lt;BR /&gt;Sequence of actions:&lt;BR /&gt;&lt;BR /&gt;Installed old disk.&lt;BR /&gt;1. Remove mirror:&lt;BR /&gt;# lvreduce -m 0 -A n -k /dev/vg00/lvol1 /dev/dsk/c2t2d0 &lt;BR /&gt;- for all logical volumes (1-8), included root(3) and swap(2)&lt;BR /&gt;&lt;BR /&gt;2. Remove disk from volume group:&lt;BR /&gt;# vgreduce /dev/vg00 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;3.Turn off server, remove old disk and install new one.&lt;BR /&gt;Turn on server, it's boot from secondary disk.&lt;BR /&gt;&lt;BR /&gt;4.Create physical volume PV:&lt;BR /&gt;#pvcreate -B -f /dev/rdsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;5. Add disk into volume group:&lt;BR /&gt;#vgextend /dev/vg00 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;6. Make this disk as boot:&lt;BR /&gt;#mkboot /dev/rdsk/c2t2d0 &lt;BR /&gt;#mkboot -a "hpux  /stand/vmunix" /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;6. Make mirror:&lt;BR /&gt;#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0&lt;BR /&gt;- for all logical volumes(1-8)&lt;BR /&gt;&lt;BR /&gt;7. And after:&lt;BR /&gt;&lt;BR /&gt;#lvlnboot -r /dev/vg00/lvol3 #root&lt;BR /&gt;#lvlnboot -s /dev/vg00/lvol2 #swap&lt;BR /&gt;#lvlnboot -b /dev/vg00/lvol1 #boot&lt;BR /&gt;#lvlnboot -d /dev/vg00/lvol2 #dump&lt;BR /&gt;&lt;BR /&gt;Verify result of mirroring:&lt;BR /&gt;#lvlnboot -v &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, it's ok?&lt;BR /&gt;Have I not missed something?</description>
    <pubDate>Fri, 18 May 2007 00:49:57 GMT</pubDate>
    <dc:creator>Vlad_9</dc:creator>
    <dc:date>2007-05-18T00:49:57Z</dc:date>
    <item>
      <title>replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002658#M605178</link>
      <description>Hi all!&lt;BR /&gt;I have two physical boot volumes in vg00.&lt;BR /&gt;Primary Boot /dev/dsk/c2t2d0 (0/0/2/0.2) and Mirror Boot /dev/dsk/c1t2d0 (0/0/1/1.2)&lt;BR /&gt;Primary bootdisk failed, i need replace it.&lt;BR /&gt;&lt;BR /&gt;Sequence of actions:&lt;BR /&gt;&lt;BR /&gt;Installed old disk.&lt;BR /&gt;1. Remove mirror:&lt;BR /&gt;# lvreduce -m 0 -A n -k /dev/vg00/lvol1 /dev/dsk/c2t2d0 &lt;BR /&gt;- for all logical volumes (1-8), included root(3) and swap(2)&lt;BR /&gt;&lt;BR /&gt;2. Remove disk from volume group:&lt;BR /&gt;# vgreduce /dev/vg00 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;3.Turn off server, remove old disk and install new one.&lt;BR /&gt;Turn on server, it's boot from secondary disk.&lt;BR /&gt;&lt;BR /&gt;4.Create physical volume PV:&lt;BR /&gt;#pvcreate -B -f /dev/rdsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;5. Add disk into volume group:&lt;BR /&gt;#vgextend /dev/vg00 /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;6. Make this disk as boot:&lt;BR /&gt;#mkboot /dev/rdsk/c2t2d0 &lt;BR /&gt;#mkboot -a "hpux  /stand/vmunix" /dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;6. Make mirror:&lt;BR /&gt;#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0&lt;BR /&gt;- for all logical volumes(1-8)&lt;BR /&gt;&lt;BR /&gt;7. And after:&lt;BR /&gt;&lt;BR /&gt;#lvlnboot -r /dev/vg00/lvol3 #root&lt;BR /&gt;#lvlnboot -s /dev/vg00/lvol2 #swap&lt;BR /&gt;#lvlnboot -b /dev/vg00/lvol1 #boot&lt;BR /&gt;#lvlnboot -d /dev/vg00/lvol2 #dump&lt;BR /&gt;&lt;BR /&gt;Verify result of mirroring:&lt;BR /&gt;#lvlnboot -v &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, it's ok?&lt;BR /&gt;Have I not missed something?</description>
      <pubDate>Fri, 18 May 2007 00:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002658#M605178</guid>
      <dc:creator>Vlad_9</dc:creator>
      <dc:date>2007-05-18T00:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002659#M605179</link>
      <description>Hi Vlad,&lt;BR /&gt;&lt;BR /&gt;Check this 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;</description>
      <pubDate>Fri, 18 May 2007 01:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002659#M605179</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2007-05-18T01:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002660#M605180</link>
      <description>Hi Vlad,&lt;BR /&gt;&lt;BR /&gt;Looks okay for me. May I know what type of machine you have? Is it necessary to turn off server? Most of the disk are hot swap nowadays.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sandy</description>
      <pubDate>Fri, 18 May 2007 03:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002660#M605180</guid>
      <dc:creator>Sandy Chen</dc:creator>
      <dc:date>2007-05-18T03:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002661#M605181</link>
      <description>Sandy, it's 9000 series L1000 enterprise server solution. &lt;BR /&gt;&lt;BR /&gt;Luk, thanks for link.</description>
      <pubDate>Fri, 18 May 2007 04:09:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002661#M605181</guid>
      <dc:creator>Vlad_9</dc:creator>
      <dc:date>2007-05-18T04:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002662#M605182</link>
      <description>Okay then, you're right, you should turn off the server.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Sandy</description>
      <pubDate>Fri, 18 May 2007 04:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002662#M605182</guid>
      <dc:creator>Sandy Chen</dc:creator>
      <dc:date>2007-05-18T04:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002663#M605183</link>
      <description>You don't need to lvreduce...&lt;BR /&gt;&lt;BR /&gt;For a root disk: &lt;BR /&gt;&lt;BR /&gt;After failed disk has been replaced by HP (assuming the disk is c1t5d0):&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;mkboot /dev/rdsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c1t5d0&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;lvlnboot -Rv /dev/vg00&lt;BR /&gt;&lt;BR /&gt;vgsync /dev/vg00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That said, read the following: &lt;BR /&gt;&lt;BR /&gt;1) If the disk is completely "dead", such as if you run ioscan and status is "no_hw" then you can hot swap the disk online.&lt;BR /&gt;&lt;BR /&gt;2) However in circumstances where the disk has not fully failed please do one of the following to avoid data corruption :&lt;BR /&gt;&lt;BR /&gt;a) reduce mirror before replacing the disk&lt;BR /&gt;b) deactivate VG before replacing the disk&lt;BR /&gt;c) shutdown system to replace the disk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 18 May 2007 11:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002663#M605183</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-05-18T11:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002664#M605184</link>
      <description>I would amend Geoff's statement slightly:&lt;BR /&gt;&lt;BR /&gt;0) Confirm that all extents are current on the remaining "good" disk.&lt;BR /&gt;&lt;BR /&gt;1a) If the disk is completely "dead", such as if you run ioscan and status is "no_hw" then you can hot swap the disk online. &lt;BR /&gt;&lt;BR /&gt;1b) If the disk is not completely dead, convert it to completely dead status by sliding the disk module out a few centimeters and allowing it to spin down. Wait one minute or so so that the failure is detected. &lt;BR /&gt;&lt;BR /&gt;I've used this method for well over ten years and have never shutdown to replace a disk (boot disk or otherwise) and have never had a problem --- but maybe The Force is with me. During that time I have replaced many tens of disks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 May 2007 11:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002664#M605184</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-05-18T11:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002665#M605185</link>
      <description>Hi Geoff!&lt;BR /&gt;&lt;BR /&gt;Unfortunately, i run lvreduce for lvol1 and &lt;BR /&gt;get this output:&lt;BR /&gt;'logical volume "/dev/vg00/lvol1" has been successfully reduced'&lt;BR /&gt;and &lt;BR /&gt;lvlnboot: logical volume has no extents&lt;BR /&gt;&lt;BR /&gt;Then i stopped...&lt;BR /&gt;How i can correct this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 May 2007 11:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002665#M605185</guid>
      <dc:creator>Vlad_9</dc:creator>
      <dc:date>2007-05-18T11:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002666#M605186</link>
      <description>Thanx to all.&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore  should be added to my list of commands. &lt;BR /&gt;&lt;BR /&gt;Geoff, thank you for advice.</description>
      <pubDate>Sat, 19 May 2007 06:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002666#M605186</guid>
      <dc:creator>Vlad_9</dc:creator>
      <dc:date>2007-05-19T06:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: replace bootdisk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002667#M605187</link>
      <description>Might be a bit late but personally I would never ( if possible at least ) turn off a server when one disk of a mirror has failed.&lt;BR /&gt;If you're unlucky you'll end up with the other disk failing as well because it doesn't wanna spin up anymore or start working properly after it has been spin down.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 May 2007 03:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-bootdisk/m-p/4002667#M605187</guid>
      <dc:creator>Marcel Burggraeve</dc:creator>
      <dc:date>2007-05-30T03:43:10Z</dc:date>
    </item>
  </channel>
</rss>

