<?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 vg00`s boot disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612065#M376702</link>
    <description>As long as you have one current mirror copy on one disk, you can use replace.&lt;BR /&gt;&lt;BR /&gt;You can check the case scenarios, case number 1 on the when good di... document.&lt;BR /&gt;&lt;BR /&gt;HP support techs normally just replace the disk,sync,mkboot part. It's much faster this way.</description>
    <pubDate>Mon, 05 Apr 2010 14:22:17 GMT</pubDate>
    <dc:creator>likid0</dc:creator>
    <dc:date>2010-04-05T14:22:17Z</dc:date>
    <item>
      <title>Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612056#M376693</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am writing a standard procedure for replacing vg00's boot disks (mirrored and hot swappable). Based on the HP's doc "When good disks go bad" I have the following (for 11.11):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1º  lvreduce -m 0 -A n /dev/vg00/lvol1 /dev/dsk/cXtXdX&lt;BR /&gt;    &lt;THE same="" for="" the="" remaining="" vg00=""&gt;&lt;BR /&gt;&lt;BR /&gt;2º  vgreduce /dev/vg00 /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;3º  pvchange -a N /dev/dsk/cXtXdX --&amp;gt; Is it necessary?&lt;BR /&gt;&lt;BR /&gt;4º  Replace disk and find it with ioscan&lt;BR /&gt;&lt;BR /&gt;5º  vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;6º  pvchange -a y /dev/dsk/cXtXdX or vgchange -a y /dev/vg00 ?&lt;BR /&gt;&lt;BR /&gt;7º  mkboot /dev/rdsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;8º  mkboot -a "hpux -lq" /dev/rdsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;9º  lvlnboot -R /dev/vg00&lt;BR /&gt;&lt;BR /&gt;10º Check with lvlnboot –v&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have some doubts:&lt;BR /&gt;&lt;BR /&gt;3º  pvchange -a N /dev/dsk/cXtXdX --&amp;gt; Is it necessary? I think it is not, because you have stopping LVM access to the disk by reducing its mirror copies and reducing the vg00....&lt;BR /&gt;&lt;BR /&gt;5º  vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX  --&amp;gt; Will this add the disk to vg00 and recreate the mirror copies? I think so, but need confirmation (i.e. I do not need to do vgextend nor lvextend -m 1 .... again for each logical volume)&lt;BR /&gt;&lt;BR /&gt;6º  pvchange -a y /dev/dsk/cXtXdX or vgchange -a y /dev/vg00 ? --&amp;gt; Which I have to use? Have I to wait until mirror copies are synchronized?&lt;BR /&gt;&lt;BR /&gt;And for boot headers and the whole procedure, are all the needed steps in this procedure?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/THE&gt;</description>
      <pubDate>Mon, 05 Apr 2010 10:30:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612056#M376693</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-05T10:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612057#M376694</link>
      <description>3 - for stopping LVM access to that disk. &lt;BR /&gt;&lt;BR /&gt;N    Detach the given path and all other&lt;BR /&gt;paths to the physical volume.  The&lt;BR /&gt;system administrator should always&lt;BR /&gt;presume that all the disks that&lt;BR /&gt;belong to an active volume group&lt;BR /&gt;are attached and may be used by LVM&lt;BR /&gt;at any time, unless LVM has been&lt;BR /&gt;specifically notified to detach&lt;BR /&gt;them. Prior to replacing or&lt;BR /&gt;repairing any disk belonging to an&lt;BR /&gt;active volume group, the&lt;BR /&gt;administrator must first detach the&lt;BR /&gt;PV using this command.  When a PV&lt;BR /&gt;is detached, LVM closes all the&lt;BR /&gt;paths to the PV and no longer&lt;BR /&gt;directs any I/O operations to it.&lt;BR /&gt;If a suitable spare PV is available&lt;BR /&gt;in the volume group, LVM will use&lt;BR /&gt;it to reconstruct the detached&lt;BR /&gt;disk.  The given path must be an&lt;BR /&gt;attached path to the PV, otherwise,&lt;BR /&gt;the command will fail and display&lt;BR /&gt;an error message indicating the&lt;BR /&gt;problem.  If for any reason the use&lt;BR /&gt;of the -N N opton fails, the&lt;BR /&gt;physical volume can still be&lt;BR /&gt;detached from the volume group by&lt;BR /&gt;individually detaching each of the&lt;BR /&gt;paths to the physical volume using&lt;BR /&gt;the -a n option instead.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;5Âº vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX --&amp;gt; Will this add the disk to vg00 and recreate the mirror copies? I think so, but need confirmation (i.e. I do not need to do vgextend nor lvextend -m 1 .... again for each logical volume)==&amp;gt; yes it will ,only thing you need to run vgsynch and lvsynch .&lt;BR /&gt;&lt;BR /&gt;pvchange -a y /dev/dsk/cXtXdX or vgchange -a y /dev/vg00 ? --&amp;gt; Which I have to use? Have I to wait until mirror copies are synchronized?&lt;BR /&gt;&lt;BR /&gt;with out changing it you will not be able to resynch it !!!&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 11:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612057#M376694</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2010-04-05T11:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612058#M376695</link>
      <description>If you are replacing and internal scsi disc, and it's HDW/path is not going to change you can skip reducing the mirror.&lt;BR /&gt;&lt;BR /&gt;You can:&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt; Replace de disk&lt;BR /&gt; ioscan the disk&lt;BR /&gt; vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX&lt;BR /&gt; vgsync /dev/vg00&lt;BR /&gt; mkboot...etc.&lt;BR /&gt;&lt;BR /&gt;because in your procedure, you are making a backup of the vg00 here:&lt;BR /&gt;&lt;BR /&gt;vgreduce /dev/vg00 /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;and when you restore it it's going to only have one disk, you need to:&lt;BR /&gt;&lt;BR /&gt;vgreduce -A n /dev/vg00 /dev/dsk/cXtXdX&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3Âº pvchange -a N /dev/dsk/cXtXdX --&amp;gt; Is it necessary?  If you reduce the mirror, you don't need it.&lt;BR /&gt;&lt;BR /&gt;5Âº vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX --&amp;gt; Will this add the disk to vg00 and recreate the mirror copies?&lt;BR /&gt;only if the lvm backup copy had the 2 disks with a mirror&lt;BR /&gt;to sync:&lt;BR /&gt;vgsync /dev/vg00 just in case&lt;BR /&gt;&lt;BR /&gt;6Âº pvchange -a y /dev/dsk/cXtXdX or vgchange -a y /dev/vg00 ? --&amp;gt; Which I have to use? &lt;BR /&gt;If you use pvchange -a N, then you need to use pvchange -a y once the disk has been replaced&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 11:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612058#M376695</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2010-04-05T11:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612059#M376696</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I understand what you say about "vgreduce -A n /dev/vg00 /dev/dsk/cXtXdX" but then the document "When good disks go bad" (lots of people point to this docs when questioned about replacing disks) is wrong ! Is it possible ? In this doc they tell you to "vgreduce /dev/vg00 /dev/dsk/cXtXdX" and afterwards, "vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX"&lt;BR /&gt;Also, this doc do not say anything about "vgsync" or "lvsync". It only talks about "pvchange -a y" and "vgchange -a y". I am getting a bit confused.</description>
      <pubDate>Mon, 05 Apr 2010 12:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612059#M376696</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-05T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612060#M376697</link>
      <description>In this doc they tell you to "vgreduce /dev/vg00 /dev/dsk/cXtXdX" and afterwards, "vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX"&lt;BR /&gt;Nah, in the doc it can't be wrong, i'll test it out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this doc do not say anything about "vgsync" or "lvsync". It only talks about "pvchange -a y" and "vgchange -a y". I am getting a bit confused.&lt;BR /&gt;&lt;BR /&gt;pvchange -a y   &amp;lt;--- you activate access to the pv, if you previously did a pvchange -a N&lt;BR /&gt;&lt;BR /&gt;vgchange -a y   &amp;lt;---- does a backgroung vgsync, so if you do a vgchange -a y vg00 you don't need to also do a vgsync</description>
      <pubDate>Mon, 05 Apr 2010 13:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612060#M376697</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2010-04-05T13:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612061#M376698</link>
      <description>"In this doc they tell you to "vgreduce /dev/vg00 /dev/dsk/cXtXdX" and afterwards, "vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX"&lt;BR /&gt;Nah, in the doc it can't be wrong, i'll test it out."&lt;BR /&gt;&lt;BR /&gt;Ok, I cannot do such test, if you can do it, please, let me know the results. I think it will work...&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Mon, 05 Apr 2010 13:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612061#M376698</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-05T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612062#M376699</link>
      <description>This document is correct .&lt;BR /&gt;There is no chance of doubt,&lt;BR /&gt;You can proceed with the procedure ..</description>
      <pubDate>Mon, 05 Apr 2010 13:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612062#M376699</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2010-04-05T13:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612063#M376700</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Reducing the mirror is required when your disk not completely dead bcz to avoid data corruption.If disk is completely dead then you can directly replace the disk.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ankit</description>
      <pubDate>Mon, 05 Apr 2010 13:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612063#M376700</guid>
      <dc:creator>ankitj1983</dc:creator>
      <dc:date>2010-04-05T13:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612064#M376701</link>
      <description>So, if the disk is not dead, Can I use this?:&lt;BR /&gt;&lt;BR /&gt;# pvchange -a N /dev/dsk/cXtXdX &lt;BR /&gt;- Replace disk and find it with ioscan&lt;BR /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXdX&lt;BR /&gt;# pvchange -a y pvname&lt;BR /&gt;&lt;BR /&gt;or it is better to reduce mirror and vg?&lt;BR /&gt;This is my doubt, because there are these two methods and the first one is easier and faster.</description>
      <pubDate>Mon, 05 Apr 2010 13:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612064#M376701</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-05T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612065#M376702</link>
      <description>As long as you have one current mirror copy on one disk, you can use replace.&lt;BR /&gt;&lt;BR /&gt;You can check the case scenarios, case number 1 on the when good di... document.&lt;BR /&gt;&lt;BR /&gt;HP support techs normally just replace the disk,sync,mkboot part. It's much faster this way.</description>
      <pubDate>Mon, 05 Apr 2010 14:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612065#M376702</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2010-04-05T14:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing vg00`s boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612066#M376703</link>
      <description>Yes, the "Disk replacement flowchart" of the doc clarify the thing: if the disk is hot-swappable, all the lvols are mirrored and there is "LVM OLR", it directly drives you to  "pvchange -a N" and "vgcfgrestore". Only if "LVM OLR" is not present, it tells you to "lvreduce/vgreduce". I think I should have read this flowchart before posting my doubts ;)&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your time and best regards !</description>
      <pubDate>Mon, 05 Apr 2010 14:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-vg00-s-boot-disk/m-p/4612066#M376703</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-05T14:35:02Z</dc:date>
    </item>
  </channel>
</rss>

