<?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: problem about faied disk replace in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251481#M551702</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The error message is because you should have either done a "pvchange -a N" to the disk to detach/deactivate it or a "vgchange -a n" to deactivate the whole volume group. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
    <pubDate>Sat, 14 Aug 2010 16:32:01 GMT</pubDate>
    <dc:creator>Viktor Balogh</dc:creator>
    <dc:date>2010-08-14T16:32:01Z</dc:date>
    <item>
      <title>problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251479#M551700</link>
      <description>dear all,&lt;BR /&gt;I've got a problem when a replace a failed disk of vg00(consisted of c0t0d0 and c1t9d0). here was my steps:&lt;BR /&gt;1,replace the failed disk&lt;BR /&gt;2,mv /etc/lvmtab /etc/lvmtab.bak&lt;BR /&gt;3,pvcreate -B /dev/rdsk/c0t0d0&lt;BR /&gt;4,mv /etc/lvmtab.bak&lt;BR /&gt;5,vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t0d0&lt;BR /&gt;then i got error messages:&lt;BR /&gt;vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c0t0d0",&lt;BR /&gt;Detach the PV or detactivate the VG, before restoring the PV.&lt;BR /&gt;finally I use lvreduce and vgreduce to complete the replace procedure.&lt;BR /&gt;could you please explain why i encountered that error.&lt;BR /&gt;&lt;BR /&gt;thanks a lot</description>
      <pubDate>Fri, 13 Aug 2010 08:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251479#M551700</guid>
      <dc:creator>stephen peng</dc:creator>
      <dc:date>2010-08-13T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251480#M551701</link>
      <description>Hi Stephen:&lt;BR /&gt;&lt;BR /&gt;Take a look at this document from HP:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf" target="_blank"&gt;http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Fri, 13 Aug 2010 08:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251480#M551701</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-08-13T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251481#M551702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The error message is because you should have either done a "pvchange -a N" to the disk to detach/deactivate it or a "vgchange -a n" to deactivate the whole volume group. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Viktor</description>
      <pubDate>Sat, 14 Aug 2010 16:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251481#M551702</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-08-14T16:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251482#M551703</link>
      <description>Steps are wrong or in a wrong order.&lt;BR /&gt;&lt;BR /&gt;Why you move lvmtab around???&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Better to follow the steps in the when_good_disks ... document.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c0t0d0",&lt;BR /&gt;Detach the PV or detactivate the VG, before restoring the PV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You get this because the disk was not disabled for LVM access&lt;BR /&gt;&lt;BR /&gt;# pvchange -a n /dev/...</description>
      <pubDate>Mon, 16 Aug 2010 03:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251482#M551703</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-08-16T03:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251483#M551704</link>
      <description>Torsten,&lt;BR /&gt;If I did not mv lvmtab first and then pvcreate c0t0d0 and then mv vmtab back, I would not able to pvcreate c0t0d0 since lvmtab recognize it as configured at vg00. consider not encounter such situation with vg00, it would not need such steps,right?&lt;BR /&gt;is pvchange -a n availalbe at 11.11?</description>
      <pubDate>Mon, 16 Aug 2010 10:02:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251483#M551704</guid>
      <dc:creator>stephen peng</dc:creator>
      <dc:date>2010-08-16T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251484#M551705</link>
      <description>Hi Stephen:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; is pvchange -a n availalbe at 11.11?&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/pvchange [-A autobackup] -a availability pv_path&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Mon, 16 Aug 2010 10:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251484#M551705</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-08-16T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251485#M551706</link>
      <description>To use online disk replacement(pvchange -a N disk) you need:&lt;BR /&gt;&lt;BR /&gt;For 11.11: Patches PHKL_31216 and PHCO_30698 (or superseding patches)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Replacing a Mirrored Disk&lt;BR /&gt;&lt;BR /&gt;  In the event you need to replace a nonfunctional mirrored disk, you should perform the following steps to ensure that the data on the replacement disk are both synchronized and valid:&lt;BR /&gt;&lt;BR /&gt;   1.&lt;BR /&gt;&lt;BR /&gt;      Before replacing the disk, minimize any potential loss of data due to its removal; confirm that any mirrored logical volumes using the disk are mirrored onto a separate disk and that those mirror copies are current. You can find the list of logical volumes using the disk using pvdisplay:&lt;BR /&gt;&lt;BR /&gt;      pvdisplay -v /dev/dsk/cntndn&lt;BR /&gt;&lt;BR /&gt;      For each of those logical volumes, you can use lvdisplay to check which logical extents are mapped onto the disk, and if thereâ  s a current copy of that data on another disk, as discussed in â  Synchronizing a Mirrored Logical Volumeâ   :&lt;BR /&gt;&lt;BR /&gt;      lvdisplay -v /dev/vol_group/lvoln | grep /dev/dsk/cntndn&lt;BR /&gt;   2.&lt;BR /&gt;&lt;BR /&gt;      Run vgcfgbackup to save the volume group configuration information, if necessary:&lt;BR /&gt;&lt;BR /&gt;      vgcfgbackup /dev/vol_group&lt;BR /&gt;&lt;BR /&gt;   3.pvchange -a N /dev/dsk/cxtxdx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Physically disconnect the bad disk and connect the replacement.&lt;BR /&gt;   5.&lt;BR /&gt;&lt;BR /&gt;      If you are replacing a mirror of the boot disk, set up the boot area on the disk.&lt;BR /&gt;         1.&lt;BR /&gt;&lt;BR /&gt;            If this is an HP Integrity Server, partition the disk using the idisk command, as described in â  Mirroring a Boot Disk with LVM on HP-UX 11i for HP Integrity Serversâ   . You do not need to run insf or pvcreate, since you are replacing an existing physical volume.&lt;BR /&gt;         2.&lt;BR /&gt;&lt;BR /&gt;            Use the mkboot command to set up the boot area:&lt;BR /&gt;&lt;BR /&gt;            mkboot /dev/rdsk/cntndn&lt;BR /&gt;&lt;BR /&gt;            On HP Integrity Servers, use the -e and -l options to the mkboot command to copy EFI utilities to the EFI partition:&lt;BR /&gt;&lt;BR /&gt;            mkboot -e -l /dev/rdsk/cntndn&lt;BR /&gt;         3.&lt;BR /&gt;&lt;BR /&gt;            Update the root volume group information:&lt;BR /&gt;&lt;BR /&gt;            lvlnboot -R /dev/vg00&lt;BR /&gt;   6.&lt;BR /&gt;&lt;BR /&gt;      Run vgcfgrestore to restore LVM configuration information to the added disk:&lt;BR /&gt;&lt;BR /&gt;      vgcfgrestore -n /dev/vol_group /dev/rdsk/cntndn&lt;BR /&gt;   7.&lt;BR /&gt;&lt;BR /&gt;      Run vgchange -a y to reactivate the volume group to which the disk belongs. Since the volume group is already currently active, no automatic synchronization occurs:&lt;BR /&gt;&lt;BR /&gt;      vgchange -a y /dev/vol_group&lt;BR /&gt;   8.&lt;BR /&gt;&lt;BR /&gt;      If any of the logical volumes on the disk had a nondefault timeout assigned, restore the previous timeout:&lt;BR /&gt;&lt;BR /&gt;      lvchange -t value /dev/vol_group/lvoln&lt;BR /&gt;   9.&lt;BR /&gt;&lt;BR /&gt;      Now run vgsync to manually synchronize all the extents in the volume group:&lt;BR /&gt;&lt;BR /&gt;      vgsync /dev/vol_group&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:09:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251485#M551706</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2010-08-16T10:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251486#M551707</link>
      <description>rariasn,&lt;BR /&gt;I have tried executing pvchange -a N on my 11.11, but it failed.&lt;BR /&gt;Daniel,&lt;BR /&gt;in my replacing steps, i move lvmtab so I could execute pvcreate -B, do you mean that I don't need to remove lvmtab to pvcreate -B if I run pvchange -a N?</description>
      <pubDate>Tue, 17 Aug 2010 14:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251486#M551707</guid>
      <dc:creator>stephen peng</dc:creator>
      <dc:date>2010-08-17T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251487#M551708</link>
      <description>There is never a need to remove lvmtab while replacing a bad disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There is also no need to pvcreate the new disk, because you have to use vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;In order to do this, you need to deactivate LVM access (pvchange -a n ...) first.</description>
      <pubDate>Tue, 17 Aug 2010 14:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251487#M551708</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-08-17T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251488#M551709</link>
      <description>Hi Torsten,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; There is never a need to remove lvmtab&lt;BR /&gt;&amp;gt; while replacing a bad disk.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; There is also no need to pvcreate the new&lt;BR /&gt;&amp;gt; disk, because you have to use &lt;BR /&gt;&amp;gt; vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In order to do this, you need to &lt;BR /&gt;&amp;gt; deactivate LVM access (pvchange -a n ...) &amp;gt; first.&lt;BR /&gt;The "pvchange -a n" is only true when the necessary "olr" patches were installed, PHCO_30698, PHKL_30218 and PHKL_31216, which got introduced on hp-ux 11.11.  &lt;BR /&gt;&lt;BR /&gt;Probably the above patches have allready been superseeded a number of times by newer patches.&lt;BR /&gt;&lt;BR /&gt;And from stephen reply, these patches, old as they are, doesnt seem to be installed on the system, so then the old and tried procedure of lvreduce and vgreduce is still the only valid one..&lt;BR /&gt;&lt;BR /&gt;Greetz,&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 17 Aug 2010 14:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251488#M551709</guid>
      <dc:creator>chris huys_4</dc:creator>
      <dc:date>2010-08-17T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251489#M551710</link>
      <description>You assume the patches are not installed.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I have tried executing pvchange -a N on my 11.11, but it failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;... but failed ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What exactly failed?&lt;BR /&gt;Any error message?&lt;BR /&gt;What was the command?</description>
      <pubDate>Tue, 17 Aug 2010 14:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251489#M551710</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-08-17T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251490#M551711</link>
      <description>&amp;gt; You assume the patches are not installed.&lt;BR /&gt;&lt;BR /&gt;Its occams? razor. ;)</description>
      <pubDate>Tue, 17 Aug 2010 15:26:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251490#M551711</guid>
      <dc:creator>chris huys_4</dc:creator>
      <dc:date>2010-08-17T15:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251491#M551712</link>
      <description>Torsten,&lt;BR /&gt;&amp;gt;&amp;gt;There is never a need to remove lvmtab while replacing a bad disk.&lt;BR /&gt;There is also no need to pvcreate the new disk, because you have to use vgcfgrestore&lt;BR /&gt;&lt;BR /&gt;you meant that vgcfgrestore would make the new disk bootable?&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;stephen</description>
      <pubDate>Thu, 19 Aug 2010 07:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251491#M551712</guid>
      <dc:creator>stephen peng</dc:creator>
      <dc:date>2010-08-19T07:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251492#M551713</link>
      <description>&amp;gt;you meant that vgcfgrestore would make the new disk bootable?&lt;BR /&gt;&lt;BR /&gt;no, vgcfgrestore only creates the LVM header on the disks. you should manually make it bootable.</description>
      <pubDate>Thu, 19 Aug 2010 10:33:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251492#M551713</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-08-19T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251493#M551714</link>
      <description>vgcfgrestore does the same as pvcreate does in this situation (and more). It restores the previous configuration to the disk.&lt;BR /&gt;&lt;BR /&gt;The boot area is still empty, so you need to do the mkboot and lvlnboot commands.</description>
      <pubDate>Thu, 19 Aug 2010 15:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251493#M551714</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-08-19T15:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem about faied disk replace</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251494#M551715</link>
      <description>thank you all!</description>
      <pubDate>Sat, 21 Aug 2010 12:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-about-faied-disk-replace/m-p/5251494#M551715</guid>
      <dc:creator>stephen peng</dc:creator>
      <dc:date>2010-08-21T12:35:43Z</dc:date>
    </item>
  </channel>
</rss>

