<?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 bad mirror disk - pvcreate -f error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445092#M656847</link>
    <description>Well, I  have taken a very slightly approach when I have had to replace and resync either the main drive or the mirror drive. And I've had them fail either way.&lt;BR /&gt;If I am understanding your issue, your mirror drive went bad and you needed to replace it and resync the data back to the mirror from the primary.....&lt;BR /&gt;&lt;BR /&gt;This is what I normally do...&lt;BR /&gt;&lt;BR /&gt;Take down my system ( single user is up to you..I just take down the apps and vg affected)&lt;BR /&gt;&lt;BR /&gt;1. Replace the bad drive with the new drive.&lt;BR /&gt;2. pvcreate -f /dev/rdsk/c_t_d_&lt;BR /&gt;3. vgcfgrestore /dev/vol_grp /dev/dsk/c_t_d_&lt;BR /&gt;4. vgchange -a y /dev/vol_grp&lt;BR /&gt;5. Either run:&lt;BR /&gt;     vgsync /dev/vol_grp         &lt;IF you="" have="" multiple="" lvols=""&gt;&lt;BR /&gt;                OR&lt;BR /&gt;     lvsync /dev/vol_grp/lvol_   &lt;BR /&gt;&lt;BR /&gt;Then I usually just bring it all back up....so far this has worked ok for me.&lt;/IF&gt;</description>
    <pubDate>Wed, 13 Sep 2000 13:02:11 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2000-09-13T13:02:11Z</dc:date>
    <item>
      <title>Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445088#M656839</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I ran into a problem replacing a bad mirror disk and would appreciate some insights.&lt;BR /&gt;&lt;BR /&gt;System: &lt;BR /&gt;9000/898/K370&lt;BR /&gt;Number of CPUs: 1&lt;BR /&gt;CPU Speed: 200 MHz&lt;BR /&gt;HP-UX B.10.20 E 9000/898&lt;BR /&gt;&lt;BR /&gt;I swapped out the bad physical disk with a new one and issued the pvcreate -f command to initialize the disk.&lt;BR /&gt;&lt;BR /&gt;I got the message:&lt;BR /&gt;pvcreate: The physical volume "/dev/dsk/c0t4d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;&lt;BR /&gt;So I used lvreduce to remove the disk entries from the 2 logical volumes that were on the bad mirror disk. I had to use the key paramter, but it processed the command OK.&lt;BR /&gt;&lt;BR /&gt;Then I tried to use the vgreduce command to remove the old disk entries from lvmtab.&lt;BR /&gt;I get the message:&lt;BR /&gt;vgreduce: Couldn't query physical volume "/dev/dsk/c0t4d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;&lt;BR /&gt;Ok - so I use the vgreduce -f option to force a rescan of the volume group and get the same message:&lt;BR /&gt;vgreduce: Couldn't query physical volume "/dev/dsk/c0t4d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;&lt;BR /&gt;Are there any patch sets that address the failures of pvcreate and vgreduce to remove the missing disk?&lt;BR /&gt;&lt;BR /&gt;The latest LVM patches I show on the system is:&lt;BR /&gt;PHCO_15895            B.10.00.00.AA  LVM commands cumulative patch&lt;BR /&gt;PHKL_14491            B.10.00.00.AA  VM,LVM,I/O,JFS,mprotect,SCSI,PM cumulative patch&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2000 12:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445088#M656839</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2000-09-13T12:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445089#M656841</link>
      <description>&lt;BR /&gt;The problem is you replaced the disk without vgreducing it first. No worries, just forget using pvcreate, use vgcfgrestore on it and you should be back in business.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2000 12:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445089#M656841</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-13T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445090#M656843</link>
      <description>William:&lt;BR /&gt;&lt;BR /&gt;A more recent set of LVM cumulative patches is PHCO_18563.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 13 Sep 2000 12:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445090#M656843</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-13T12:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445091#M656845</link>
      <description>William:&lt;BR /&gt;&lt;BR /&gt;A more recent set of LVM cumulative patches is PHCO_18563.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 13 Sep 2000 12:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445091#M656845</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-09-13T12:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445092#M656847</link>
      <description>Well, I  have taken a very slightly approach when I have had to replace and resync either the main drive or the mirror drive. And I've had them fail either way.&lt;BR /&gt;If I am understanding your issue, your mirror drive went bad and you needed to replace it and resync the data back to the mirror from the primary.....&lt;BR /&gt;&lt;BR /&gt;This is what I normally do...&lt;BR /&gt;&lt;BR /&gt;Take down my system ( single user is up to you..I just take down the apps and vg affected)&lt;BR /&gt;&lt;BR /&gt;1. Replace the bad drive with the new drive.&lt;BR /&gt;2. pvcreate -f /dev/rdsk/c_t_d_&lt;BR /&gt;3. vgcfgrestore /dev/vol_grp /dev/dsk/c_t_d_&lt;BR /&gt;4. vgchange -a y /dev/vol_grp&lt;BR /&gt;5. Either run:&lt;BR /&gt;     vgsync /dev/vol_grp         &lt;IF you="" have="" multiple="" lvols=""&gt;&lt;BR /&gt;                OR&lt;BR /&gt;     lvsync /dev/vol_grp/lvol_   &lt;BR /&gt;&lt;BR /&gt;Then I usually just bring it all back up....so far this has worked ok for me.&lt;/IF&gt;</description>
      <pubDate>Wed, 13 Sep 2000 13:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445092#M656847</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-09-13T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445093#M656848</link>
      <description>&lt;BR /&gt;Take a look at the following link, it contains exact steps on replacing a mirror disk or a non-mirror disk or a boot disk.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://europe-support.external.hp.com/cki/bin/doc.pl/sid=17b41b171db01f8983/screen=ckiDisplayDocument?docId=200000049436442" target="_blank"&gt;http://europe-support.external.hp.com/cki/bin/doc.pl/sid=17b41b171db01f8983/screen=ckiDisplayDocument?docId=200000049436442&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You dont need to use pvcreate, vgcfgrestore is enough.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2000 13:07:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445093#M656848</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-13T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445094#M656849</link>
      <description>I'll agree w/ Stefan. You don't need to pvcreate a replaced LVM Disk, the system already knows it belongs to the vg. Just restore the info to the header of the disk so it knows it belongs to the vg.&lt;BR /&gt;&lt;BR /&gt;Here are some commands to help if you are unable to access that doc.&lt;BR /&gt;&lt;BR /&gt;Restore lvm info:&lt;BR /&gt;# vgcfgrestore -n /dev/vg00 /dev/rdsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;Make changes known:&lt;BR /&gt;# vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Resync mirror copy:&lt;BR /&gt;# vgsync /dev/vg00&lt;BR /&gt;&lt;BR /&gt;Make it bootable:&lt;BR /&gt;# mkboot /dev/rdsk/c?t?d?&lt;BR /&gt;# mkboot "hpux -lq" /dev/rdsk/c?t?d?</description>
      <pubDate>Wed, 13 Sep 2000 14:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445094#M656849</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-09-13T14:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing bad mirror disk - pvcreate -f error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445095#M656850</link>
      <description>Thanks to all for your help! (points awarded)&lt;BR /&gt;I was amazed at how quickly I got responses.&lt;BR /&gt;&lt;BR /&gt;I was missing the vgchange command step to make the changes active. All bad drives have since been replaced and all mirrors resynched. Now I can sleep at night again :)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Sep 2000 17:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-bad-mirror-disk-pvcreate-f-error/m-p/2445095#M656850</guid>
      <dc:creator>William Baines</dc:creator>
      <dc:date>2000-09-14T17:11:48Z</dc:date>
    </item>
  </channel>
</rss>

