<?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 Broken Mirror Disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756211#M71422</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just a thought :&lt;BR /&gt;1. you chould have run the vgcfgbackup command after the mirror harddisk was created earlier or after any changes were made to the root vg.&lt;BR /&gt;&lt;BR /&gt;2. the old mirror disk which failed had the same device file name /dev/dsk/c1t2d0 ??&lt;BR /&gt;&lt;BR /&gt;If not then try to set the SCSI ID of the harddisk as that of the old harddisk and you will be able to run the vgcfgrestore command.&lt;BR /&gt;&lt;BR /&gt;Check the contents of the /etc/lvmtab  by&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab and see the device files in the /dev/vg00 and set the new harddisk with the same ID.&lt;BR /&gt;&lt;BR /&gt;What is the output of lvlnboot -v&lt;BR /&gt;&lt;BR /&gt;Or else you will have to create a new mirror.&lt;BR /&gt;&lt;BR /&gt;Try using the pvcreate -B for making the disk as a boot disk.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
    <pubDate>Tue, 02 Jul 2002 12:21:13 GMT</pubDate>
    <dc:creator>PIYUSH D. PATEL</dc:creator>
    <dc:date>2002-07-02T12:21:13Z</dc:date>
    <item>
      <title>Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756209#M71420</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a disk configuration problem. I found that one of the mirror disks in my vg00 group had failed, and the mirror had become stale.&lt;BR /&gt;&lt;BR /&gt;I removed the disk and replace with a spare. However, I am unable to use the vgcfgretsore command with success. The process I am using is as follows:&lt;BR /&gt;&lt;BR /&gt;root : /# pvcreate -f /dev/rdsk/c1t2d0&lt;BR /&gt;Physical volume "/dev/rdsk/c1t2d0" has been successfully created.&lt;BR /&gt;&lt;BR /&gt;root : /# vgcfgrestore -n /dev/vg00 /dev/dsk/c1t2d0&lt;BR /&gt;vgcfgrestore: Couldn't query physical volume "/dev/dsk/c1t2d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;Configuration info for Physical Volume "/dev/dsk/c1t2d0" not found&lt;BR /&gt; in "/etc/lvmconf/vg00.conf" :&lt;BR /&gt;Character-special file for PV not supplied on command line, OR&lt;BR /&gt;PV did not belong to Volume Group /dev/vg00 when configuration file was created.&lt;BR /&gt;&lt;BR /&gt;Has anyone got any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian.</description>
      <pubDate>Tue, 02 Jul 2002 12:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756209#M71420</guid>
      <dc:creator>ian mcgrath</dc:creator>
      <dc:date>2002-07-02T12:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756210#M71421</link>
      <description>Hi Ian,&lt;BR /&gt;&lt;BR /&gt; Couple of things.&lt;BR /&gt;First if this is vg00 you'll need to &lt;BR /&gt;pvcreate -f -B /dev/rdsk/c1t2d0 as the -B reserves the boot space.&lt;BR /&gt;As to the vgcfgrestore, my guess would be that the .conf file was not accurate or up to date OR you have to use /dev/rdsk/c1t2d0 - the raw device.&lt;BR /&gt;If inaccurate .conf, that's not a problem though, just create the PV/VG/LVs &amp;amp; remirror them.&lt;BR /&gt;Don't forget the lvlnboot commands to set the disk for root, boot,primary swap &amp;amp; dump.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 02 Jul 2002 12:19:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756210#M71421</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-07-02T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756211#M71422</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just a thought :&lt;BR /&gt;1. you chould have run the vgcfgbackup command after the mirror harddisk was created earlier or after any changes were made to the root vg.&lt;BR /&gt;&lt;BR /&gt;2. the old mirror disk which failed had the same device file name /dev/dsk/c1t2d0 ??&lt;BR /&gt;&lt;BR /&gt;If not then try to set the SCSI ID of the harddisk as that of the old harddisk and you will be able to run the vgcfgrestore command.&lt;BR /&gt;&lt;BR /&gt;Check the contents of the /etc/lvmtab  by&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab and see the device files in the /dev/vg00 and set the new harddisk with the same ID.&lt;BR /&gt;&lt;BR /&gt;What is the output of lvlnboot -v&lt;BR /&gt;&lt;BR /&gt;Or else you will have to create a new mirror.&lt;BR /&gt;&lt;BR /&gt;Try using the pvcreate -B for making the disk as a boot disk.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Tue, 02 Jul 2002 12:21:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756211#M71422</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-02T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756212#M71423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To Create a new mirror disk,&lt;BR /&gt;&lt;BR /&gt;1) pvcreate -B /dev/rdsk/c1t2d0 &lt;BR /&gt;2)vgextend /dev/vg00 /dev/dsk/c1t2d0  &lt;BR /&gt;3)mkboot /dev/rdsk/c1t2d0  &lt;BR /&gt;4)mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c1t2d0 &lt;BR /&gt;5)lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0  &lt;BR /&gt;6)lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t2d0  &lt;BR /&gt;7) lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t2d0 &lt;BR /&gt;8)lvlnboot -b /dev/vg00/lvol1 &lt;BR /&gt;9)lvlnboot -s /dev/vg00/lvol2 &lt;BR /&gt;10)lvlnboot -r /dev/vg00/lvol3 &lt;BR /&gt;11)lvlnboot -d /dev/vg00/lvol2 &lt;BR /&gt;&lt;BR /&gt;12)lvlnboot -R /dev/vg00 &lt;BR /&gt;13)lvlnboot -v &lt;BR /&gt;Will show you both the disk. Reboot the system.&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 12:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756212#M71423</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-02T12:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756213#M71424</link>
      <description>First of all check if c1t2d0 is claimed. do an ioscan and see if the hardware is claimed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;then vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0&lt;BR /&gt;vgchange -a y /dev/vg00&lt;BR /&gt;mkboot /dev/rdsk/c1t2d0&lt;BR /&gt;mkboot -a "hpux" /dev/rdsk/c1t2d0&lt;BR /&gt;lvlnboot -R&lt;BR /&gt;vgsync vg00&lt;BR /&gt;&lt;BR /&gt;This is the procedure I use.&lt;BR /&gt;&lt;BR /&gt;check using "strings /etc/lvmtab" to see if c1t2d0 is actually a member of vg00.&lt;BR /&gt;&lt;BR /&gt;Be sure you are using the right device file and the charcater not blcok device&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Stefan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 12:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756213#M71424</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-07-02T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756214#M71425</link>
      <description>What Piyush is suggesting is only used when to create a mirror from scratch. In your case the mirror already existed and a disk failed. So with a good vgcfgbackup you do not need to re-mirror again.&lt;BR /&gt;&lt;BR /&gt;To do what Piyush is saying you need to reduce the mirrors to 0 before removing the disks. It works but is very long.&lt;BR /&gt;&lt;BR /&gt;Use vgsync to re-sync stale lvols.&lt;BR /&gt;&lt;BR /&gt;One last thing, I see no reason why to reboot. I've done it many times, never rebooted, what is the use to replace a mirror disks hot plug and STILL reboot..&lt;BR /&gt;&lt;BR /&gt;I do not agree&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 12:33:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756214#M71425</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-07-02T12:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756215#M71426</link>
      <description>Thanks for quick responses. I have run the following commands:&lt;BR /&gt;&lt;BR /&gt;root : /# ioscan -fnC disk&lt;BR /&gt;Class     I  H/W Path     Driver S/W State   H/W Type     Description&lt;BR /&gt;=====================================================================&lt;BR /&gt;disk      0  0/0/1/1.0.0  sdisk CLAIMED     DEVICE       IBM     DMVS18D&lt;BR /&gt;                         /dev/dsk/c1t0d0   /dev/rdsk/c1t0d0&lt;BR /&gt;disk      1  0/0/1/1.2.0  sdisk CLAIMED     DEVICE       HP 18.2GMAN3184MC&lt;BR /&gt;                         /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0....&lt;BR /&gt;&lt;BR /&gt;root : /# pvcreate -f -B /dev/rdsk/c1t2d0&lt;BR /&gt;Physical volume "/dev/rdsk/c1t2d0" has been successfully created.&lt;BR /&gt;&lt;BR /&gt;root : /# vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0&lt;BR /&gt;vgcfgrestore: Couldn't query physical volume "/dev/dsk/c1t2d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;Volume Group configuration has been restored to /dev/rdsk/c1t2d0&lt;BR /&gt;&lt;BR /&gt;However, even at this point a vgdisplay on the group does not show the new PV. I am thinking that it will be necessary to re-create the whole mirror configuration as per Piyush's suggestion.&lt;BR /&gt;&lt;BR /&gt;issuing a strings on the /etc/lvmtab displays the following:&lt;BR /&gt;&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;So the new disk is not part of the VG.&lt;BR /&gt;&lt;BR /&gt;I am a little nervous about issuing the vgchange -a y /dev/vg00 command as the system is online and very critcal. However, would it work with the new disk not showing in the VG?&lt;BR /&gt;&lt;BR /&gt;Trending carefully,&lt;BR /&gt;Ian.</description>
      <pubDate>Tue, 02 Jul 2002 13:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756215#M71426</guid>
      <dc:creator>ian mcgrath</dc:creator>
      <dc:date>2002-07-02T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756216#M71427</link>
      <description>Hi (again) Ian,&lt;BR /&gt;&lt;BR /&gt; What does /etc/lvmtab show for the vg00 VG?&lt;BR /&gt;If not c1t2d0 but another that's now gone.&lt;BR /&gt;Then vgreduce the nonexistent one &amp;amp; vgextend vg00 to include c1t2d0.&lt;BR /&gt;Then you can vgcfgrestore I believe.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 02 Jul 2002 13:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756216#M71427</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-07-02T13:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756217#M71428</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;don't worry, go in for creating the new mirror disk for vg00.&lt;BR /&gt;&lt;BR /&gt;If you have Ignite loaded on your system then take the Ignite tape backup using make_tape_recovery.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Tue, 02 Jul 2002 13:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756217#M71428</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-02T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756218#M71429</link>
      <description>The strings command for /etc/lvmtab is as follows:&lt;BR /&gt;&lt;BR /&gt;root : /# strings /etc/lvmtab&lt;BR /&gt;/dev/vg01&lt;BR /&gt;/dev/dsk/c1t0d0&lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;/dev/vg02&lt;BR /&gt;/dev/dsk/....&lt;BR /&gt;&lt;BR /&gt;Only the active disk is in VG00. I do have the original /etc/lvmtab, with both disks. When this is in place I am unable to use the pvcreate command.&lt;BR /&gt;&lt;BR /&gt;If I go about re-creating the mirror from scratch, do I need to remove anything first (e.g. vgreduce or lvremove)?&lt;BR /&gt;&lt;BR /&gt;Also, as this is VG00 can I do this work in multi-user with the file systems mounted?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ian.</description>
      <pubDate>Tue, 02 Jul 2002 13:41:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756218#M71429</guid>
      <dc:creator>ian mcgrath</dc:creator>
      <dc:date>2002-07-02T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756219#M71430</link>
      <description>It is always better to do it from scratch. You need not to remove anything. Do accordingly, as described by piyush. The only problem is that, the Server will be running slow when you do all these creation. And piyush had given only for 3 lvols, its better to do the mirror for all the lvols.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Tue, 02 Jul 2002 14:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756219#M71430</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-07-02T14:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756220#M71431</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Since the new disk is not in your lvmtab, you need not worry. Also execute the lvlnboot -v and check whether it shows only one disk.&lt;BR /&gt;&lt;BR /&gt;Also check vgdisplay -v /dev/vg00 and check whether there is only one harddisk in this vg.&lt;BR /&gt;&lt;BR /&gt;I recommend to do it after going to the single user mode.&lt;BR /&gt;&lt;BR /&gt;After all the steps for mirroring are over and you see both the disks by command lvlnboot -v&lt;BR /&gt;Give the command&lt;BR /&gt;#lvsync /dev/vg00 ( to sysncronize the mirror )&lt;BR /&gt;&lt;BR /&gt;and then # shutdown -r&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;Piyush&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 14:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756220#M71431</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-02T14:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a Broken Mirror Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756221#M71432</link>
      <description>Thankyou everyone for your help - espiecially Piyush. I will carrying out the work at the week when the system can be offline. Fingers crossed.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ian</description>
      <pubDate>Tue, 02 Jul 2002 14:31:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/replacing-a-broken-mirror-disk/m-p/2756221#M71432</guid>
      <dc:creator>ian mcgrath</dc:creator>
      <dc:date>2002-07-02T14:31:59Z</dc:date>
    </item>
  </channel>
</rss>

