<?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: Mirror disk and then vgimport only one in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296801#M565013</link>
    <description>hi,&lt;BR /&gt;what's kind of  storage do you have ?&lt;BR /&gt;EVA or MSA?  if EVA ,you can copy the data in storage level.&lt;BR /&gt;&lt;BR /&gt;And i am confused with these two steps &lt;BR /&gt;- Export VGs&lt;BR /&gt;- Break mirror&lt;BR /&gt;&lt;BR /&gt;when you export vg,how do you break mirror?&lt;BR /&gt;</description>
    <pubDate>Thu, 30 Oct 2008 00:51:04 GMT</pubDate>
    <dc:creator>chinadns</dc:creator>
    <dc:date>2008-10-30T00:51:04Z</dc:date>
    <item>
      <title>Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296797#M565009</link>
      <description>I have two servers and one storage. Server1 has LUNs with DataBase.&lt;BR /&gt;I need copy and present those LUNs to server2.&lt;BR /&gt;My plan was:&lt;BR /&gt;- Mirror Database LUNs to another LUNs (secondary LUNs)&lt;BR /&gt;- Export VGs&lt;BR /&gt;- Break mirror&lt;BR /&gt;- Present the secondary LUNs to Server2&lt;BR /&gt;- Create directories of VGs&lt;BR /&gt;- Make mknod&lt;BR /&gt;- Import LUNs on Server2&lt;BR /&gt;&lt;BR /&gt;But I get the following error:&lt;BR /&gt;#vgimport -v -s -m /tmp/vg/vg11.mapfile /dev/vg11&lt;BR /&gt;Beginning the imprt process on Volume Group "/dev/vg11".&lt;BR /&gt;Could't access the list of physical volumes for volume group "/dev/vg11"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any idea?</description>
      <pubDate>Wed, 29 Oct 2008 22:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296797#M565009</guid>
      <dc:creator>Fernando Boza</dc:creator>
      <dc:date>2008-10-29T22:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296798#M565010</link>
      <description>&amp;gt; Mirror Database LUNs to another LUNs (secondary LUNs)&lt;BR /&gt;I am guessing you used LVM to mirror the LUNs. If so then you should be using the first form of the vgimport command of the man pages not the second one (sharable). You leave out the -s option and specify the disk device file to the command. The mapfile contains a list of the logical volumes only there is no physical disk information in it. (When you exported the VGs you should not use the -s option either)</description>
      <pubDate>Wed, 29 Oct 2008 23:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296798#M565010</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-10-29T23:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296799#M565011</link>
      <description>you are right, the correct commadn is:&lt;BR /&gt;#vgimport -v -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0&lt;BR /&gt;&lt;BR /&gt;I get import... but now I get the following error at vgchange:&lt;BR /&gt;&lt;BR /&gt;# vgchange -a y vg11&lt;BR /&gt;vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t0d0":&lt;BR /&gt;Cross-device link&lt;BR /&gt;vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;vgchange: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;vgchange: Couldn't activate volume group "vg11":&lt;BR /&gt;Quorum not present, or some physical volume(s) are missing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Oct 2008 23:31:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296799#M565011</guid>
      <dc:creator>Fernando Boza</dc:creator>
      <dc:date>2008-10-29T23:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296800#M565012</link>
      <description>Could you provide ioscan -fnC disk pls?&lt;BR /&gt;&lt;BR /&gt;You can try:&lt;BR /&gt;&lt;BR /&gt;# vgsync vg11&lt;BR /&gt;# vgchange -a y vg11&lt;BR /&gt;# vgdisplay -v vg11&lt;BR /&gt;&lt;BR /&gt;It should works.&lt;BR /&gt;&lt;BR /&gt;Regards!</description>
      <pubDate>Thu, 30 Oct 2008 00:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296800#M565012</guid>
      <dc:creator>Andres_13</dc:creator>
      <dc:date>2008-10-30T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296801#M565013</link>
      <description>hi,&lt;BR /&gt;what's kind of  storage do you have ?&lt;BR /&gt;EVA or MSA?  if EVA ,you can copy the data in storage level.&lt;BR /&gt;&lt;BR /&gt;And i am confused with these two steps &lt;BR /&gt;- Export VGs&lt;BR /&gt;- Break mirror&lt;BR /&gt;&lt;BR /&gt;when you export vg,how do you break mirror?&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Oct 2008 00:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296801#M565013</guid>
      <dc:creator>chinadns</dc:creator>
      <dc:date>2008-10-30T00:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296802#M565014</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Quorum not present, or some physical volume(s) are missing.&lt;BR /&gt;&lt;BR /&gt;Import the volume group without quroum checking.&lt;BR /&gt; &lt;BR /&gt;#vgimport -v -q n -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Thu, 30 Oct 2008 09:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296802#M565014</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2008-10-30T09:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296803#M565015</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could not activate the VG Since the LVM info on the new LUNS contains the no of PV's is double and 50% of LUN's are not available when you activate the VG on new server.&lt;BR /&gt;&lt;BR /&gt;Try the below steps.&lt;BR /&gt;&lt;BR /&gt;Active the VG with  quorum overide.&lt;BR /&gt;&lt;BR /&gt;#vgchange -q n -a y vg11&lt;BR /&gt;&lt;BR /&gt;Then use vgreduce -f command to remove the missing pv's&lt;BR /&gt;&lt;BR /&gt;Force reduction of missing PVs from volume group: vg11&lt;BR /&gt;&lt;BR /&gt;          # vgreduce -f /dev/vg11&lt;BR /&gt;&lt;BR /&gt;The following messages will appear after missing PVs has been removed successfully:&lt;BR /&gt;&lt;BR /&gt;PV with key 0 successfully deleted from vg /dev/vg11&lt;BR /&gt;&lt;BR /&gt;Repair done, please do the following steps.....:&lt;BR /&gt;&lt;BR /&gt;1.  Save /etc/lvmtab to another file.&lt;BR /&gt;&lt;BR /&gt;2.  Remove /etc/lvmtab.&lt;BR /&gt;&lt;BR /&gt;3.  Use vgscan -v to recreate /etc/lvmtab.&lt;BR /&gt;&lt;BR /&gt;4.  NOW use vgcfgbackup to save the LVM setup.</description>
      <pubDate>Thu, 30 Oct 2008 10:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296803#M565015</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-10-30T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296804#M565016</link>
      <description>thanks to all comments... but I have the same problem:&lt;BR /&gt;&lt;BR /&gt;# 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/0/3/0.5.0   sdisk    CLAIMED     DEVICE       HP 73.4GST373405LC&lt;BR /&gt;                            /dev/dsk/c0t5d0   /dev/rdsk/c0t5d0&lt;BR /&gt;disk      1  0/0/0/3/0.6.0   sdisk    CLAIMED     DEVICE       HP 73.4GST373405LC&lt;BR /&gt;                            /dev/dsk/c0t6d0   /dev/rdsk/c0t6d0&lt;BR /&gt;disk      5  0/0/10/0/0.8.0.255.0.0.0  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d0   /dev/rdsk/c8t0d0&lt;BR /&gt;disk      6  0/0/10/0/0.8.0.255.0.0.1  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d1   /dev/rdsk/c8t0d1&lt;BR /&gt;disk      7  0/0/10/0/0.8.0.255.0.0.2  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d2   /dev/rdsk/c8t0d2&lt;BR /&gt;disk      8  0/0/10/0/0.8.0.255.0.0.3  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d3   /dev/rdsk/c8t0d3&lt;BR /&gt;disk      9  0/0/10/0/0.8.0.255.0.0.4  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d4   /dev/rdsk/c8t0d4&lt;BR /&gt;disk     10  0/0/10/0/0.8.0.255.0.0.5  sdisk    CLAIMED     DEVICE       HITACHI DF600F&lt;BR /&gt;                            /dev/dsk/c8t0d5   /dev/rdsk/c8t0d5&lt;BR /&gt;disk      2  1/0/0/3/0.6.0   sdisk    CLAIMED     DEVICE       HP 73.4GST373307LC&lt;BR /&gt;                            /dev/dsk/c4t6d0   /dev/rdsk/c4t6d0&lt;BR /&gt;disk      3  1/0/0/3/1.2.0   sdisk    CLAIMED     DEVICE       HP      DVD-ROM 305&lt;BR /&gt;                            /dev/dsk/c5t2d0   /dev/rdsk/c5t2d0&lt;BR /&gt;disk      4  1/0/1/0/0/1/1.6.0         sdisk    CLAIMED     DEVICE       HP 73.4GST373307LC&lt;BR /&gt;                            /dev/dsk/c7t6d0   /dev/rdsk/c7t6d0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vgsync vg11&lt;BR /&gt;vgsync: Couldn't query logical volume "/dev/vg11/BK_Migracion_01":&lt;BR /&gt;Volume group not activated.&lt;BR /&gt;&lt;BR /&gt;vgsync: Couldn't query the list of logical volumes.&lt;BR /&gt;vgsync: Couldn't access the list of logical volumes for volume group "vg11".&lt;BR /&gt;vgsync: Couldn't resynchronize volume group "vg11".&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vgimport -v -q n -m /tmp/maint/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0&lt;BR /&gt;Usage: vgimport&lt;BR /&gt;        [-p]&lt;BR /&gt;        [-v]&lt;BR /&gt;        [-s]&lt;BR /&gt;        [-m MapFile]&lt;BR /&gt;        VolumeGroupName PhysicalVolumePath...&lt;BR /&gt;or: vgimport [-p] [-v] [-m MapFile] -f InFile     VolumeGroupName&lt;BR /&gt;"q": Illegal option.&lt;BR /&gt;&lt;BR /&gt;# vgchange -q n -a y vg11&lt;BR /&gt;vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c8t0d0":&lt;BR /&gt;Cross-device link&lt;BR /&gt;vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;vgchange: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;vgchange: Couldn't activate volume group "vg11":&lt;BR /&gt;Quorum not present, or some physical volume(s) are missing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Oct 2008 13:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296804#M565016</guid>
      <dc:creator>Fernando Boza</dc:creator>
      <dc:date>2008-10-30T13:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296805#M565017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;vgchange command fails because you have not imported the VG yet. I will start from the beginning assuming that /etc/lvmtab does not contain the vg11 informations(confirm once)&lt;BR /&gt;&lt;BR /&gt;1.First step is create the VG directory.&lt;BR /&gt;&lt;BR /&gt;  #mkdir /dev/vg11&lt;BR /&gt;&lt;BR /&gt;2. create the group file&lt;BR /&gt;&lt;BR /&gt;  #mknod /dev/vg11/group c 64 0x0n0000&lt;BR /&gt;&lt;BR /&gt;3.Now import the VG by specifing all of its PV's in the command line. Note you need to specify all the disks which is presented to the new server.&lt;BR /&gt;&lt;BR /&gt;  #vgimport -v -m &lt;MAP file=""&gt; /dev/vg11 &lt;PV1&gt; &lt;PV2&gt; ....&lt;BR /&gt;&lt;BR /&gt;4.Now we need to activate the VG with quorum overide option since we have only 50% disks available.&lt;BR /&gt;&lt;BR /&gt;#vgchange -a y -q n /dev/vg11&lt;BR /&gt;&lt;BR /&gt;5.At this stage all the logical volume will show one mirror copy. but we have only one set of disks available.So we need to reduce the the mirror copy from missed physical volume.&lt;BR /&gt;Use lvdisplay command to find the pvkey corresponding to the missed pv.&lt;BR /&gt;&lt;BR /&gt;#lvdisplay -k &lt;LVNAME&gt;&lt;BR /&gt;Note down the pvkey where pv name column shows ???. Then use lvreduce command to reduce the mirror&lt;BR /&gt;#lvreduce -m 0 -k &lt;LVNAME&gt; &lt;MISSED pv="" key=""&gt;&lt;BR /&gt;Ex:lvreduce -m 0 -k /dev/vg11/lvol1 0&lt;BR /&gt;Use above step for all the lv's&lt;BR /&gt;&lt;BR /&gt;Now use vgreduce -f command to forcefully remove the missed pv's&lt;BR /&gt;&lt;BR /&gt;#vgreduce -f /dev/vg11&lt;BR /&gt;&lt;BR /&gt;#mv /etc/lvmtab /etc/lvmtab.old&lt;BR /&gt;&lt;BR /&gt;#vgscan -v&lt;BR /&gt;&lt;BR /&gt;#vgchange -a n /dev/vg11&lt;BR /&gt;#vgchange -a y /dev/vg11&lt;BR /&gt;&lt;BR /&gt;Try the above steps and let us know the result.&lt;BR /&gt;&lt;BR /&gt;&lt;/MISSED&gt;&lt;/LVNAME&gt;&lt;/LVNAME&gt;&lt;/PV2&gt;&lt;/PV1&gt;&lt;/MAP&gt;</description>
      <pubDate>Thu, 30 Oct 2008 14:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296805#M565017</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-10-30T14:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296806#M565018</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;1. vgimport -v -m /tmp/vg/vg11.mapfile /dev/vg11 /dev/dsk/c8t0d0&lt;BR /&gt;&lt;BR /&gt;2. vgchange -a y -q n /dev/vg11&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Thu, 30 Oct 2008 14:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296806#M565018</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2008-10-30T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk and then vgimport only one</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296807#M565019</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How many disks are there in the original vg (/dev/vg11) ??&lt;BR /&gt;How did you create the map file? Used -s option or not?&lt;BR /&gt;At what stage u export the VG? Before OR after break the VG??&lt;BR /&gt;Where you are trying to import the VG?? Server 1 OR server 2?? If its on server 2, did you confirm the device file using the LUN ID??&lt;BR /&gt;&lt;BR /&gt;And one more thought...... Why do you want make the task this much complicate????&lt;BR /&gt;Avoid mirroring and create a fresh vg&lt;BR /&gt;1. Present LUNs from XP to server 1&lt;BR /&gt;2. Create VG, LV, File system.&lt;BR /&gt;3. Copy data from Source to destination.&lt;BR /&gt;4. Export using -s option (# vgexport -p -v -s -m /tmp/vg11.map /dev/vg11).&lt;BR /&gt;5. Create VG in server 2.&lt;BR /&gt;6. mknod&lt;BR /&gt;7. Copy the map file from server1 to server2.&lt;BR /&gt;8. import VG (vgimport -v -s -m /tmp/vg11.map /dev/vg11&lt;BR /&gt;&lt;BR /&gt;OR...... you can copy entire data using rcp, scp, nfs.....&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Sreekanth</description>
      <pubDate>Thu, 30 Oct 2008 15:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-and-then-vgimport-only-one/m-p/4296807#M565019</guid>
      <dc:creator>sreekanthtm</dc:creator>
      <dc:date>2008-10-30T15:10:19Z</dc:date>
    </item>
  </channel>
</rss>

