<?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 a boot disk WITH  Mirroring in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900698#M404002</link>
    <description>&lt;BR /&gt;Use following steps to update ODE.&lt;BR /&gt;&lt;BR /&gt;#cd /usr/sbin/diag/lif&lt;BR /&gt;#mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh</description>
    <pubDate>Sun, 08 May 2005 22:31:39 GMT</pubDate>
    <dc:creator>Sudeesh</dc:creator>
    <dc:date>2005-05-08T22:31:39Z</dc:date>
    <item>
      <title>Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900690#M403994</link>
      <description>I have a query in regards to  “Replacing a boot disk WITH  Mirroring”.&lt;BR /&gt;&lt;BR /&gt;If one server has a faulty internal disk, and the disk being replaced is Hot-Pluggable (or Hot-Swappable), does the meaning of Hot-Pluggable apply only to hardware where you can pull the disk out on-line and replace with the new one. But the from the softwere will Hot-Pluggable mean anythign or do we still need to lvreduce the mirror for all the logical volumes defined on the vg00 before repalcing the disk. &lt;BR /&gt;&lt;BR /&gt;After replacing the internal disk we have to do a vgcfgrestore, vgchange, make it a boot disk, (update the diagnostics if you have installed ), verify that the BDRA information is accurate and then syncronize the BDRA with vgsync vg00. This bit is fine.&lt;BR /&gt;&lt;BR /&gt;Last week we had a situation like this.&lt;BR /&gt;&lt;BR /&gt;We have an L-class server (9000/800/L1500-7x) rp5430  which has two internal disks (HP36.4GST336753LC) that are mirrored.&lt;BR /&gt;&lt;BR /&gt;One of the disks has become faulty and it raised a smar event. Resmon summary says “Disk at hardware path 0/0/1/1.2.0 : I/O request failed.”, where the harware paht refers to this faulty internal disk. When we do ioscan the disk shows as claimed. But vgdisplay of vg00 shows the logical volumes as slate and it clearly shows that we are unable to write on to that disk. So the engineer came with the new disk and before repalcing the disk he issued lvreduce for  all the logical voulmes on vg00. And when it was reducing lvol7 which is /usr the system went into panic mode and re-booted itself. &lt;BR /&gt;&lt;BR /&gt;So to the system came backup, we had lvol1, lvol2….lvol6 reduced successfully and lvol7, lvol8, lvol9 (/usr, /var, /opt) were not reduced and were left as stale. We replaced the disk and when tried to do vgcfgrestore –n it gave us errors. And then we discovered that /etc/lvmconf/vg00.conf was over writtena nd was zero bytes. We restored from backup and had to issue vgcfgrestore with a –R option.&lt;BR /&gt;         &lt;BR /&gt;Here are my queries.&lt;BR /&gt;&lt;BR /&gt;1. Does Hot-Pluggable means only form the hardware and not from the software, where when you just remove the disk and replace with the new disk and do vgcfgrestore the system software will not worry about the previous mirror and restore to the new disk.&lt;BR /&gt;&lt;BR /&gt;2. When can you say the disk is dead.  If ioscan shows that then fine. But some times the disk has some stale sectors and has problmes writing on to it, but the OS still says the disk as claimed. In that case is it advisable to just remove the disk without reducing the mirror.&lt;BR /&gt;&lt;BR /&gt;3. In out case was lvreduce a necessary step, ot would we had got away with replace the disk straight away and do vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;Any suggestions……/ explainations…… much appreciated.&lt;BR /&gt;&lt;BR /&gt;In</description>
      <pubDate>Sun, 08 May 2005 21:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900690#M403994</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900691#M403995</link>
      <description>It can be claimed on ioscan and dead. You have seen this situation yourself with this sitaution. If resmon/ems says its dead andyou can't write, its dead.&lt;BR /&gt;&lt;BR /&gt;I had a HP-6000 disk array on my D class box(basement experiment) which mirrored an entire system fail recently.&lt;BR /&gt;&lt;BR /&gt;I ended up breaking the mirrors that survived this one disk failure nad doing a vgreduce -f and following the instructions afterwards to have a working unmirrored system.&lt;BR /&gt;&lt;BR /&gt;If the disk is dead, you probably won't be able to break the mirror, but if you can break the mirror it is advisable for you to do so.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 08 May 2005 21:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900691#M403995</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-08T21:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900692#M403996</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick reply. &lt;BR /&gt;&lt;BR /&gt;Now I understand that even if the ioscan shows as claimed, if resmon/ems or syslog says it is dead and we cannot write to it then the disk is dead.&lt;BR /&gt;&lt;BR /&gt;I do understand that the properway would be to break the mirror and then replace. But as we experienced a system panic (this was the commnad used to recude the mirror--- for i in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8 lvol9&lt;BR /&gt;do lvreduce -m 0 /dev/vg00/$i /dev/dsk/c1t2d0&lt;BR /&gt;done).&lt;BR /&gt;&lt;BR /&gt;So I was thinking with hot-pluggable disks can we get away with not reducing the mirror and repalce then vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;</description>
      <pubDate>Sun, 08 May 2005 21:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900692#M403996</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T21:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900693#M403997</link>
      <description>I think correct command would have been&lt;BR /&gt;&lt;BR /&gt;# lvreduce -A n -m 0 ...&lt;BR /&gt;&lt;BR /&gt;Option '-A n' is to prevent automatic vgcfgbackup operation, which is likely to run into problems when accessing defective disk.&lt;BR /&gt;&lt;BR /&gt;Reducing mirrors is recommended if defective disk is considered to be attached (i.e. pvdisplay command returns available/unavailable status). If pvdisplay returns error then disk is unattached; you can proceed with vgcfgrestore without reducing mirrors.</description>
      <pubDate>Sun, 08 May 2005 21:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900693#M403997</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-08T21:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900694#M403998</link>
      <description>1. It depends Hot-Pluggable also sometimes means that you dont have to worry about the software, but it depends how intelegent the software is. In case of disk arrays having RAID, which is pure example of Hot-Pluggable, where you dont worry about restoring the data on the replaced disk. But Mirror/UX is not so smart to do things my itself. Actually it is smart, you dont have to split mirrors or make disk bootable etc, Just do vgcfgrestore on the new disk and vgsync or vgchange will mirror the entire disk.&lt;BR /&gt;&lt;BR /&gt;2. I have seen it works even in case the disk is not totally bad, you just replace the disk, do vgcfgrestore, vgchange and vgsync&lt;BR /&gt;3. In your case too i suppose you could have saved time by just replacing the disk and performing the above steps.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Sun, 08 May 2005 21:59:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900694#M403998</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2005-05-08T21:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900695#M403999</link>
      <description>Hi,&lt;BR /&gt;Almost all the systems in our env have root mirroring and we face such situations often.&lt;BR /&gt;These are the steps I follow to replace root mirror disk.&lt;BR /&gt;&lt;BR /&gt;Incase disk is offline I will first do&lt;BR /&gt;#ioscan -H  &lt;HARDWARE path="" of="" disk=""&gt;&lt;BR /&gt;This will try to bring the disk online. This ensures the disk is really dead.&lt;BR /&gt;&lt;BR /&gt;If disk is claimed and still having issues, do a diskinfo.&lt;BR /&gt;#diskinfo -v /dev/rdsk/c0t5d0&lt;BR /&gt;in case of bad disk this command will give error or will report size as zero.&lt;BR /&gt;&lt;BR /&gt;You can also use dd  to check the disk media.&lt;BR /&gt;&lt;BR /&gt;All the above steps go through and still you have stale extends, go ahead and replace disk. Before that ensure only one disk have stale extends with lvdisplay.&lt;BR /&gt;#lvdisplay -v /dev/vg00/lvol*&lt;BR /&gt;&lt;BR /&gt;At this point i will take out the faulty disk.&lt;BR /&gt;&lt;BR /&gt;Insert new disk.&lt;BR /&gt;&lt;BR /&gt;#ioscan -H &lt;HARWARE path="" of="" disk=""&gt;&lt;BR /&gt;To put the new disk as claimed from NO_HW.&lt;BR /&gt;&lt;BR /&gt;#mv /etc/lvmtab /etc/lvmtab.orig&lt;BR /&gt;If entry for specified disk is already there in lvmtab, pvcreate will fail.&lt;BR /&gt;&lt;BR /&gt;#pvcreate -B /dev/rdsk/c0t5d0&lt;BR /&gt;#mv /etc/lvmtab.orig /etc/lvmtab&lt;BR /&gt;#vgcfgrestore -n vg00 /dev/rdsk/c0t5d0&lt;BR /&gt;#vgchange -a y /dev/vg00&lt;BR /&gt;#vgsync vg00&lt;BR /&gt;if disk does not automatically start syncing&lt;BR /&gt;&lt;BR /&gt;#mkboot /dev/rdsk/c0t5d0&lt;BR /&gt;#mkboot -a "hpux -lq" /dev/rdsk/c0t5d0&lt;BR /&gt;#lvlnboot -v &lt;BR /&gt;&lt;BR /&gt;Issue lvdisplay -v /dev/vg00/lvol* to ensure all extends are current.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As far as your first question is concearned I belive  hardware,Driver and OS should support to make a device Hot-Pluggable.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Sudeesh&lt;/HARWARE&gt;&lt;/HARDWARE&gt;</description>
      <pubDate>Sun, 08 May 2005 22:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900695#M403999</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-05-08T22:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900696#M404000</link>
      <description>Thanks Rajeev.&lt;BR /&gt;&lt;BR /&gt;It is a lot clear now.&lt;BR /&gt;&lt;BR /&gt;It does make sence when you say that it depends on "how intelegent the software is"&lt;BR /&gt;. &lt;BR /&gt;You mentioned, "Mirror/UX is not so smart to do things by itself. Actually it is smart, you dont have to split mirrors or make disk bootable etc"&lt;BR /&gt;&lt;BR /&gt;Does that mean Mirror/UX is not capable of and we have to do vgcfgrestore and vgchange or vgsync and make it bootable. &lt;BR /&gt;&lt;BR /&gt;In our case the disk was not totally bad, it had a few stale sectors. So you recon we had just to replace the disk and perform vgcfgrestore and vgchange. What about making it bootable and updating the disgnostics and syncronize the BDRA.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Indira A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 May 2005 22:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900696#M404000</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T22:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900697#M404001</link>
      <description>Thanks Ermin,&lt;BR /&gt;That commnad lvreduce was performed by HP field Engineer on site.&lt;BR /&gt;&lt;BR /&gt;Thanks Sudeesh, for your detailed steps. It is a lot clear now what hot-pluggable means.  And when the disk is dead then one can replace it straight away and perform vgcfgrestore and vgchange...., without reducing the mirror.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Indira A</description>
      <pubDate>Sun, 08 May 2005 22:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900697#M404001</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900698#M404002</link>
      <description>&lt;BR /&gt;Use following steps to update ODE.&lt;BR /&gt;&lt;BR /&gt;#cd /usr/sbin/diag/lif&lt;BR /&gt;#mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh</description>
      <pubDate>Sun, 08 May 2005 22:31:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900698#M404002</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-05-08T22:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900699#M404003</link>
      <description>Hi Sudeesh,&lt;BR /&gt;&lt;BR /&gt;Yes that is how we did to update ODE.&lt;BR /&gt;&lt;BR /&gt;Use mkboot to add boot information,&lt;BR /&gt; # mkboot /dev/rdsk/c0t6d0&lt;BR /&gt;     # mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt; # cd /usr/sbin/diag/lif&lt;BR /&gt;        # mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL -p PAD /dev/rdsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Sun, 08 May 2005 22:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900699#M404003</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T22:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900700#M404004</link>
      <description>Hi Indira,&lt;BR /&gt;&lt;BR /&gt;By saying that Mirror/UX is not that smart, i meant that..smartness would have been if it could identify the new disk (after replacement) and perform the necessary steps as data replications and sync VGRA.&lt;BR /&gt;&lt;BR /&gt;Sorry for not putting all commands in sequence and as you mentioned in u'r previous post you do need to make the disk bootable and copy over the ODE to new disk.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Sun, 08 May 2005 23:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900700#M404004</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2005-05-08T23:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900701#M404005</link>
      <description>Thanks Rajeev,&lt;BR /&gt;&lt;BR /&gt;Yes it would had been a lot simpler if Mirror/UX software was that smart enough to do all those things.&lt;BR /&gt;&lt;BR /&gt;Thanks for your hlep.&lt;BR /&gt;Indira A</description>
      <pubDate>Sun, 08 May 2005 23:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900701#M404005</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-08T23:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a boot disk WITH  Mirroring</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900702#M404006</link>
      <description>Closing this thread as my doubts have been clarified.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A</description>
      <pubDate>Mon, 09 May 2005 21:14:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-boot-disk-with-mirroring/m-p/4900702#M404006</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-09T21:14:09Z</dc:date>
    </item>
  </channel>
</rss>

