<?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 Disk (PV/VG/LV) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736793#M618309</link>
    <description>Hello,&lt;BR /&gt;I must replace a disk on a HP-UX Name B.11.00 U 9000/800.&lt;BR /&gt;The disk is the c7t1d0.&lt;BR /&gt;It's a member of the PVGroup PVG1B. This PVG1B is member of the unique VG VG01.&lt;BR /&gt;Some logical volumes are stale. (Volumes integrating c7t1d0). LVOL stale have a mirror copie.&lt;BR /&gt;&lt;BR /&gt;After having replaced the disk, which are the operations to be made ? pvXXX, vgXXX, lvXXX ?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt; # vgdisplay -v&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg01&lt;BR /&gt;...&lt;BR /&gt;Total PVG                   4&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;        --- Logical volumes ---&lt;BR /&gt;   LV Name                     /dev/vg01/lvol1&lt;BR /&gt;   LV Status                   available/syncd&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     2&lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg01/lvol2&lt;BR /&gt;   LV Status                   available/stale&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     20&lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg01/lvol3&lt;BR /&gt;   LV Status                   available/stale&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     20&lt;BR /&gt;&lt;BR /&gt; --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    PVG1&lt;BR /&gt;   ...&lt;BR /&gt;   PVG Name                    PVG1b&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t2d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t3d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t4d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t5d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t6d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t7d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t8d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t9d0&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/vg01/lvol2&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                    /dev/vg01/lvol2&lt;BR /&gt;VG Name                    /dev/vg01&lt;BR /&gt;. &lt;BR /&gt;LV Status                  available/stale&lt;BR /&gt;Mirror copies              1&lt;BR /&gt;Consistency Recovery       MWC&lt;BR /&gt;Schedule                   parallel&lt;BR /&gt;...&lt;BR /&gt;Stripes                    0&lt;BR /&gt;Stripe Size (Kbytes)       0&lt;BR /&gt;Bad block                  on&lt;BR /&gt;Allocation             PVG-strict/distributed</description>
    <pubDate>Wed, 22 Feb 2006 05:05:26 GMT</pubDate>
    <dc:creator>Laurent Paumier</dc:creator>
    <dc:date>2006-02-22T05:05:26Z</dc:date>
    <item>
      <title>Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736793#M618309</link>
      <description>Hello,&lt;BR /&gt;I must replace a disk on a HP-UX Name B.11.00 U 9000/800.&lt;BR /&gt;The disk is the c7t1d0.&lt;BR /&gt;It's a member of the PVGroup PVG1B. This PVG1B is member of the unique VG VG01.&lt;BR /&gt;Some logical volumes are stale. (Volumes integrating c7t1d0). LVOL stale have a mirror copie.&lt;BR /&gt;&lt;BR /&gt;After having replaced the disk, which are the operations to be made ? pvXXX, vgXXX, lvXXX ?&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt; # vgdisplay -v&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name                     /dev/vg01&lt;BR /&gt;...&lt;BR /&gt;Total PVG                   4&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;        --- Logical volumes ---&lt;BR /&gt;   LV Name                     /dev/vg01/lvol1&lt;BR /&gt;   LV Status                   available/syncd&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     2&lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg01/lvol2&lt;BR /&gt;   LV Status                   available/stale&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     20&lt;BR /&gt;&lt;BR /&gt;   LV Name                     /dev/vg01/lvol3&lt;BR /&gt;   LV Status                   available/stale&lt;BR /&gt;   ...&lt;BR /&gt;   Used PV                     20&lt;BR /&gt;&lt;BR /&gt; --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    PVG1&lt;BR /&gt;   ...&lt;BR /&gt;   PVG Name                    PVG1b&lt;BR /&gt;   PV Name                     /dev/dsk/c7t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t2d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t3d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t4d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t5d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t6d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t7d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t8d0&lt;BR /&gt;   PV Name                     /dev/dsk/c7t9d0&lt;BR /&gt;&lt;BR /&gt;# lvdisplay /dev/vg01/lvol2&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                    /dev/vg01/lvol2&lt;BR /&gt;VG Name                    /dev/vg01&lt;BR /&gt;. &lt;BR /&gt;LV Status                  available/stale&lt;BR /&gt;Mirror copies              1&lt;BR /&gt;Consistency Recovery       MWC&lt;BR /&gt;Schedule                   parallel&lt;BR /&gt;...&lt;BR /&gt;Stripes                    0&lt;BR /&gt;Stripe Size (Kbytes)       0&lt;BR /&gt;Bad block                  on&lt;BR /&gt;Allocation             PVG-strict/distributed</description>
      <pubDate>Wed, 22 Feb 2006 05:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736793#M618309</guid>
      <dc:creator>Laurent Paumier</dc:creator>
      <dc:date>2006-02-22T05:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736794#M618310</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Replace the disk and add another disk at the same ID/controller so that the device file is same and obviously the disk size also should be same only.&lt;BR /&gt;&lt;BR /&gt;#vgcfgrestore -n /dev/vg01 /dev/rdsk/c7t1d0&lt;BR /&gt;#vgsync vg01&lt;BR /&gt;&lt;BR /&gt;This should be able to do this.&lt;BR /&gt;&lt;BR /&gt;Also have a lokk at this disk-replacement guide&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;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 05:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736794#M618310</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2006-02-22T05:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736795#M618311</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;Check these threads for more information.. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=763059" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=763059&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=124025" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=124025&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 22 Feb 2006 05:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736795#M618311</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T05:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736796#M618312</link>
      <description>Thanks for the answer and the pdf. ;)</description>
      <pubDate>Wed, 22 Feb 2006 05:19:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736796#M618312</guid>
      <dc:creator>Laurent Paumier</dc:creator>
      <dc:date>2006-02-22T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736797#M618313</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;    Devender reply is spot on.&lt;BR /&gt;&lt;BR /&gt;    Just a point adder, in case you have added the disk to different scsi controller or its target ID was different, and the system recognizes it as a differnt device file(say c8t2d0), just do the following&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore -n /dev/vg01 -o /dev/rdsk/c7t1d0 /dev/rdsk/c8t2d0&lt;BR /&gt;&lt;BR /&gt;Then syncronize the mirror,&lt;BR /&gt;&lt;BR /&gt;vgsync vg01&lt;BR /&gt;&lt;BR /&gt;The document which devender linked in the previous response, is indeed best, that could help you in such situations.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 05:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736797#M618313</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T05:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Disk (PV/VG/LV)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736798#M618314</link>
      <description>Laurent,&lt;BR /&gt;&lt;BR /&gt;As already suggested in the previous reply to do a vgcfgrestore, just an addon to it. &lt;BR /&gt;&lt;BR /&gt;Preferably, the volume group should be made unavailable before executing vgcfgrestore by executing the command&lt;BR /&gt;&lt;BR /&gt;           vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Force to restore the LVM configuration data when volume group is still active&lt;BR /&gt;vgcfgrestore -R -n /dev/vg01 /dev/rdsk/c7t1d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;&lt;BR /&gt;Ajit</description>
      <pubDate>Wed, 22 Feb 2006 06:31:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replace-disk-pv-vg-lv/m-p/3736798#M618314</guid>
      <dc:creator>Ajitkumar Rane</dc:creator>
      <dc:date>2006-02-22T06:31:46Z</dc:date>
    </item>
  </channel>
</rss>

