<?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: Using the Mirror Copy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491304#M654750</link>
    <description>Thanks to both,&lt;BR /&gt;&lt;BR /&gt;  Fine patrice,Thanks ..&lt;BR /&gt;&lt;BR /&gt;  I am having one more thing to ask on &lt;BR /&gt;&lt;BR /&gt;vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;  If the disk with scsi id say 2 failed,then&lt;BR /&gt;&lt;BR /&gt;I am replacing the disk and using the&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore..&lt;BR /&gt;&lt;BR /&gt;   then what are all the steps I have to take &lt;BR /&gt;&lt;BR /&gt;care...&lt;BR /&gt;&lt;BR /&gt;  I) is the new hard disk that will replace&lt;BR /&gt;&lt;BR /&gt;the bad one need to have the same SCSI id??&lt;BR /&gt;&lt;BR /&gt; II) Do we need to run pvcreate,vgextend&lt;BR /&gt;&lt;BR /&gt;lvcreate,newfs,lvextend..&lt;BR /&gt;&lt;BR /&gt;     I guess pvcreate and newfs should be&lt;BR /&gt;&lt;BR /&gt;necessary..but what are all the commands&lt;BR /&gt;&lt;BR /&gt;that we need to run if we use vgcfgrestore to&lt;BR /&gt;&lt;BR /&gt;restore the volume group.&lt;BR /&gt;&lt;BR /&gt;     Clear me please...&lt;BR /&gt;&lt;BR /&gt;Sundar&lt;BR /&gt;&lt;BR /&gt;and if anyone finds time,pls mail me at&lt;BR /&gt;&lt;BR /&gt;   sundar_hp@indiatimes.com&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Feb 2001 10:41:15 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2001-02-08T10:41:15Z</dc:date>
    <item>
      <title>Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491300#M654746</link>
      <description>Hi Experts,&lt;BR /&gt;   &lt;BR /&gt;   I am having one doubt..&lt;BR /&gt;&lt;BR /&gt;   If I am having a non-root volume and&lt;BR /&gt;&lt;BR /&gt;having it mirrored to some other volume.&lt;BR /&gt;&lt;BR /&gt;   and if one of these hard disks fails,is it&lt;BR /&gt;&lt;BR /&gt;possible for us to use the data in the other&lt;BR /&gt;&lt;BR /&gt;hard disk as such ...or what are the steps&lt;BR /&gt;&lt;BR /&gt;to break the mirror and use the mirror copy.&lt;BR /&gt;&lt;BR /&gt;   Do we use lvreduce or lvremove ??&lt;BR /&gt;&lt;BR /&gt;   Help me out please&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
      <pubDate>Thu, 08 Feb 2001 09:22:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491300#M654746</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2001-02-08T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491301#M654747</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Supposing that lvol from /dev/dsk/c1t1d0 are mirrored on /dev/dsk/c2t2d0.&lt;BR /&gt;&lt;BR /&gt;If c1t1d0 failed :&lt;BR /&gt;&lt;BR /&gt;- Your data are still available from /dev/dsk/c2t2d0. Perharps you will not see that c1t1d0 is failed.&lt;BR /&gt;- To check if mirror copy is OK, via cron, write a script which for each logical volume do :&lt;BR /&gt;lvdisplay -v /dev/vgXX/lvolname |grep stale |wc -l&lt;BR /&gt;If answer is not 0 then your is bad !&lt;BR /&gt;&lt;BR /&gt;- What you need to do if c1t1d0 failed :&lt;BR /&gt;&lt;BR /&gt;DO NOT USE lvremove ! This will remove your lvol from c1t1d0 AND c2t2d0.&lt;BR /&gt;&lt;BR /&gt;You can do a : &lt;BR /&gt;lvreduce -m 0 /dev/vgXX/lvolname /dev/dsk/c1t1d0&lt;BR /&gt;(or each lvol on c1t1d0)&lt;BR /&gt;vgreduce /dev/vgXX /dev/dsk/c1t1d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then when the failed disk will be replaced :&lt;BR /&gt;pvcreate -d /dev/rdsk/c1t1d0&lt;BR /&gt;vgextend /dev/vgXX /dev/dsk/vgXX&lt;BR /&gt;lvextend -m 1 /dev/vgXX/lvolname /dev/dsk/c1t1d0&lt;BR /&gt;(for each lvol)&lt;BR /&gt;&lt;BR /&gt;An other method is using vgcfgrestore command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Patrice.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 09:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491301#M654747</guid>
      <dc:creator>MARTINACHE</dc:creator>
      <dc:date>2001-02-08T09:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491302#M654748</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;IF You ha hotplug disks replace the bad disk and &lt;BR /&gt;restore LVM data to new disk&lt;BR /&gt;vgcfgrestore -n vgxx /dev/rdsk/.......&lt;BR /&gt;&lt;BR /&gt;and activate vg &lt;BR /&gt;vgchange -a y -s vgxx&lt;BR /&gt;&lt;BR /&gt;syncronize VG &lt;BR /&gt;vgsync vgxx&lt;BR /&gt;&lt;BR /&gt;regards, Saa&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 10:26:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491302#M654748</guid>
      <dc:creator>Sandor Horvath_2</dc:creator>
      <dc:date>2001-02-08T10:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491303#M654749</link>
      <description>You can use SAM to break the mirror, that is easier than line commands.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3a7854994d9d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3a7854994d9d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x56f25f260cafd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x56f25f260cafd4118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Thu, 08 Feb 2001 10:31:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491303#M654749</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2001-02-08T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491304#M654750</link>
      <description>Thanks to both,&lt;BR /&gt;&lt;BR /&gt;  Fine patrice,Thanks ..&lt;BR /&gt;&lt;BR /&gt;  I am having one more thing to ask on &lt;BR /&gt;&lt;BR /&gt;vgcfgrestore.&lt;BR /&gt;&lt;BR /&gt;  If the disk with scsi id say 2 failed,then&lt;BR /&gt;&lt;BR /&gt;I am replacing the disk and using the&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore..&lt;BR /&gt;&lt;BR /&gt;   then what are all the steps I have to take &lt;BR /&gt;&lt;BR /&gt;care...&lt;BR /&gt;&lt;BR /&gt;  I) is the new hard disk that will replace&lt;BR /&gt;&lt;BR /&gt;the bad one need to have the same SCSI id??&lt;BR /&gt;&lt;BR /&gt; II) Do we need to run pvcreate,vgextend&lt;BR /&gt;&lt;BR /&gt;lvcreate,newfs,lvextend..&lt;BR /&gt;&lt;BR /&gt;     I guess pvcreate and newfs should be&lt;BR /&gt;&lt;BR /&gt;necessary..but what are all the commands&lt;BR /&gt;&lt;BR /&gt;that we need to run if we use vgcfgrestore to&lt;BR /&gt;&lt;BR /&gt;restore the volume group.&lt;BR /&gt;&lt;BR /&gt;     Clear me please...&lt;BR /&gt;&lt;BR /&gt;Sundar&lt;BR /&gt;&lt;BR /&gt;and if anyone finds time,pls mail me at&lt;BR /&gt;&lt;BR /&gt;   sundar_hp@indiatimes.com&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2001 10:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491304#M654750</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2001-02-08T10:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491305#M654751</link>
      <description>HP has an excellent document describing what and how of disk failure in a LVM, mirror and unmirrored environment.  It is:&lt;BR /&gt;Title       : procedure for replacing an LVM disk&lt;BR /&gt;Date        : 19971211&lt;BR /&gt;Type        : EN&lt;BR /&gt;Document ID : UNX1001086&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Feb 2001 14:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491305#M654751</guid>
      <dc:creator>Philip P. Hartl</dc:creator>
      <dc:date>2001-02-09T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Mirror Copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491306#M654752</link>
      <description>The lvcreate and newfs commands are not required and should not be used.  The logical volume and file system already exist.  Assuming you use the method that Patrice mentioned: pvcreate prepares the disk, vgextend adds the new disk to the volume group, and lvextend mirrors the existing logical volume/file system on the new drive.  The lvdisplay command with the -v option will give you a better picture of what is going on (using another window session is best for this).  Before you remirror the drive lvdisplay -v &lt;LOGICAL volume="" id=""&gt; will display the physical extents that are associated with the logical volume.  When you invoke the lvextend -m 1 command, you will see a side by side extent relationship at the physical level.  Initially all the mirrored extents will show as being stale until the lvextend command cycles through all the extents and copies the data over to the new drive.  After lvextend is complete, the operating system takes over to maintain both these copies current.&lt;BR /&gt;&lt;BR /&gt;I have never tried to use the method that Sandor mentions.  Part of the idea with mirroring is to avoid any downtime and deactivating the group requires that it not be mounted.  Also, the physical scsi id (bus and target) controls the device address location.  Using Patrice's method allows you to remirror any drive connected to the system.  This means that you could use a spare drive in a totally different location.  Mirrordisk allows you to have up to three copies of the data.  You could mirror the spare immediately and then when the failed drive gets replaced you can mirror it into the arrangement and afterward break down the mirror to the spare drive.  This  is a better method to use (if you have a spare drive) where the primary drive is protected with a mirror during the entire recovery evolution and the i/o required to copy the extents has much less contention with any other processes accessing data from the drives at the same time.&lt;/LOGICAL&gt;</description>
      <pubDate>Fri, 09 Feb 2001 15:32:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-mirror-copy/m-p/2491306#M654752</guid>
      <dc:creator>Tim Malnati</dc:creator>
      <dc:date>2001-02-09T15:32:18Z</dc:date>
    </item>
  </channel>
</rss>

