<?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: moving PVs between systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758601#M636710</link>
    <description>Disclaimer... the vgcfgbackup on frog and vgcfgrestore on toad commands will only provide the wright results if mirroring was exact, e.g. lvol1 was mirrored first, lvol2 second, etc. else if the mapping of logical extends in the lvol and the Physical extends on A1 and B1 where not the same, this is not going to work.&lt;BR /&gt;George</description>
    <pubDate>Tue, 30 Jul 2002 11:49:21 GMT</pubDate>
    <dc:creator>George Petrides_1</dc:creator>
    <dc:date>2002-07-30T11:49:21Z</dc:date>
    <item>
      <title>moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758592#M636701</link>
      <description>i have 2 L2000s. frog is a production system and toad is a new system. frog has vg00 using all 4 internal drives with A0 mirrored to B0 and A1 to B1. how can i remove B0 (also a boot drive) and B1 from frog and use it to build toad to be an exact copy.&lt;BR /&gt;&lt;BR /&gt;1) i know about Ignite ...do not want to use it for the stake of learning something here about LVM and L2000s&lt;BR /&gt;2) i tried the following and it did not work&lt;BR /&gt;    a) lvreduce mirrors off of B0 and B1 on frog&lt;BR /&gt;    b) vgreduce the 2 disks and remove the drives physically from frog ...frog online whole time&lt;BR /&gt;    c) added new drives from toad into frog and rebuilt the mirrors on frog ...frog 100% again&lt;BR /&gt;    d) put B0 and B1 in their correct slots on toad and booted to "hpux -lm" on B0 OK&lt;BR /&gt;    e) could not activate vg00 ...so neve got to the point of changing netconf and building the mirrors on A0 and A1&lt;BR /&gt;&lt;BR /&gt;any suggestions would be greatly appreciated&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jul 2002 16:37:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758592#M636701</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2002-07-05T16:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758593#M636702</link>
      <description>Have you run fsck on the file systems to verify that they are ok?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 05 Jul 2002 17:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758593#M636702</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-07-05T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758594#M636703</link>
      <description>Do you need -lq in addition to -lm? Are you getting a quorum error?</description>
      <pubDate>Fri, 05 Jul 2002 17:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758594#M636703</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-05T17:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758595#M636704</link>
      <description>I assume that all of these are identical drives (or at least your mirror pairs are identical). &lt;BR /&gt;&lt;BR /&gt;I suggest that you alter the boot string to override LVM quorum. e.g.&lt;BR /&gt;mkboot -a "hpux -lq (;0)/stand/vmunix /dev/rdsk/c1t6d0" using your correct raw disk device.&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Now lvreduce/vgreduce your mirrors so that only the original's remain. We are now going to make a rawdisk copy of your boot disks. This should be done while the system is rather quiescent. Because we are copying active filesystems, you will not get an absolutely clean system but the system will automatically run fsck's and your clone will be good to go. I've never had a 'lifeboat' to fail. I'm attaching a 'copy_boot.sh' script. Make sure that you set the SRC and DEST entries to match your system. The first defined SRC entry is copied to the first defined DEST entry and likewise for any addition entries.&lt;BR /&gt;&lt;BR /&gt;I actually run this script on all my boxes during the weekend, in addition to mirroring.&lt;BR /&gt;The 'lifeboat' can protect you from two things that mirrors alone cannot: 1) really bad patches 2) your own stupidity.&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Be aware that because this is a clone, you are instantly going to have duplicate IP's on your network.&lt;BR /&gt;&lt;BR /&gt;All you have to do is run the copy_boot.sh script and then move the copied disks into the original boot slots on the clone machine and then boot. Again, expect the cloned box to fsck the first time you boot but subsequent boots will be perfectly normal.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jul 2002 17:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758595#M636704</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-05T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758596#M636705</link>
      <description>i think the problem is how i am vgreducing the two disks on frog. maybe i need to vgreduce both disks at the same time instead of removing one drive at a time. just feel i can use LVM commands to make toad.&lt;BR /&gt;&lt;BR /&gt;Clay, i just want to let you know that i used "dd" to make toad. your "lifeboat" approach worked fine. i knew that would work (and had to use it to get toad to my users quickly), but really wanted to try a pure LVM approach. think i am doing something wrong on frog when removing the disks that prevents me from making toad from those removed PVs.</description>
      <pubDate>Mon, 29 Jul 2002 17:15:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758596#M636705</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2002-07-29T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758597#M636706</link>
      <description>Just curious at e) when you activate it what error message did you get ? Did you try with..&lt;BR /&gt;# vgchange -a y -q n /dev/vg00&lt;BR /&gt;Have you also try recreating the LVM device file and use vgimport before activating it ?&lt;BR /&gt;Side note ..another technique that has worked quite well for me is manually duplicating the root disk (without using MirrorUX). You might want to try that if you have the time.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x37204b3ef09fd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x37204b3ef09fd611abdb0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Mon, 29 Jul 2002 20:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758597#M636706</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-29T20:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758598#M636707</link>
      <description>S.K. i went to the link u gave and that is not what i want. below is what i have done on toad and the problem i get with these two PVs that i took from frog and want to use to make toad, then mirror them to the other 2 blank drives on toad&lt;BR /&gt;&lt;BR /&gt;ISL&amp;gt; hpux -lm -lq&lt;BR /&gt;unknown:[/]# vgchange -a y /dev/vg00&lt;BR /&gt;      still cannot activate vg00&lt;BR /&gt;unknown:[/]# mount -p&lt;BR /&gt;      all 7 LVs that are to be mounted appear to have been mounted ...strange&lt;BR /&gt;unknown:[/]# ls -al /usr/bin/vi&lt;BR /&gt;      /usr/bin/vi not found&lt;BR /&gt;unknown:[/]# mount /usr&lt;BR /&gt;      mount - Cannot open /dev/vg00/lvol7: No such device or address&lt;BR /&gt;unknown:[/]# mount -v&lt;BR /&gt;      only /dev/root on /&lt;BR /&gt;unknown:[/]# vgchange -a y -q n /dev/vg00&lt;BR /&gt;      still cannot activate vg00&lt;BR /&gt;unknown:[/]# mount -p&lt;BR /&gt;      only /dev/root on / ...changed!?!&lt;BR /&gt;unknown:[/]# vgimport -p -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0&lt;BR /&gt;      says /dev/vg00 already exists in /etc/lvmtab&lt;BR /&gt;unknown:[/]# ioscan -fnkC disk //OK&lt;BR /&gt;unknown:[/]# mv /etc/lvmtab /etc/lvmtab.last&lt;BR /&gt;unknown:[/]# vgscan -v&lt;BR /&gt;      sees that c1t0d0 and c2t2d0 belong to an unknown VG&lt;BR /&gt;      sees that c1t2d0 and c2t0d0 belong to an unknown VG&lt;BR /&gt;      makes an empty /etc/lvmtab&lt;BR /&gt;unknown:[/]# vgimport -p -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0&lt;BR /&gt;      looked like it may work&lt;BR /&gt;unknown:[/]# vgimport -v /dev/vg00 /dev/dsk/c1t0d0 /dev/dsk/c2t2d0&lt;BR /&gt;unknown:[/]# vgchange -a y -q n /dev/vg00&lt;BR /&gt;      still cannot activate vg00&lt;BR /&gt;unknown:[/]# ls -al /etc/lvmconf/vg00*&lt;BR /&gt;      /etc/lvmconf/vg00.conf had 0 bytes&lt;BR /&gt;      /etc/lvmconf/vg00.conf.old&lt;BR /&gt;unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old -l&lt;BR /&gt;      looks good ...yet has all 4 PVs&lt;BR /&gt;unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old /dev/rdsk/c1t0d0 //OK&lt;BR /&gt;unknown:[/]# vgcfgrestore -f /etc/lvmconf/vg00.conf.old /dev/rdsk/c2t2d0 //OK&lt;BR /&gt;unknown:[/]# vgchange -a y -q n /dev/vg00&lt;BR /&gt;      activated but complained about re-synchronizing stale partitions ...OK, since no mirrors yet&lt;BR /&gt;NEVER could get any fsck's to work ...couldn't open the LVs even though vgdisplay works</description>
      <pubDate>Mon, 29 Jul 2002 21:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758598#M636707</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2002-07-29T21:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758599#M636708</link>
      <description>I have a feeling that you cannot use B0 and B1 on the new system cause you executed the lvreduce and vgreduce commands therefore the LVM info on the disks do not reflect the state that you are looking for (e.g. I belong to a group with another disk, I am a mirror, etc).  This would work if you shutdown frog, take away the disks (without executing any LVM commands) and then use them to boot on the new server but you'll need the -q to disable the quorum.  The problem however, is that frog will complain that it's missing disks and you will have to boot frog with no quorum as well.  Now, I am not sure if you can reduce the VGs on frog since the drives will not be there.&lt;BR /&gt;Also, keep in mind that all the VG/LVM info is kept on the disks on a special area and (created with the pvcreate) command.  When you execute the vgscan or vgimport command all it does is place an entry in the lvmtab file, mostly for the vgchange command, and create the /dev/vg.../lvol1,2... in order to access the volumes.  Therefore, when you execute the vgscan command it does not 'see' any volume groups on the VG label of the disks since you executed the lvreduce/vgreduce command on frog that cleared the disks from any volume group.&lt;BR /&gt;Hope this helps.&lt;BR /&gt;George</description>
      <pubDate>Tue, 30 Jul 2002 11:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758599#M636708</guid>
      <dc:creator>George Petrides_1</dc:creator>
      <dc:date>2002-07-30T11:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758600#M636709</link>
      <description>What might also work on toad now, is to save the LVM config of FROG by using the vgcfgbackup command, then copy the file to TOAD and recover the LVM info by specifying a restore of A1 info to B1.  Make sure that you do a vgcfgbackup on toad before you attempt this, just in case, and also check the boot info with the lvlnboot command before and after you recover the A1 info with the vgcfgrestore command.  If lvlnboot shows the wrong disk, then use the same command with different options to correct the information.&lt;BR /&gt;George</description>
      <pubDate>Tue, 30 Jul 2002 11:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758600#M636709</guid>
      <dc:creator>George Petrides_1</dc:creator>
      <dc:date>2002-07-30T11:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: moving PVs between systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758601#M636710</link>
      <description>Disclaimer... the vgcfgbackup on frog and vgcfgrestore on toad commands will only provide the wright results if mirroring was exact, e.g. lvol1 was mirrored first, lvol2 second, etc. else if the mapping of logical extends in the lvol and the Physical extends on A1 and B1 where not the same, this is not going to work.&lt;BR /&gt;George</description>
      <pubDate>Tue, 30 Jul 2002 11:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-pvs-between-systems/m-p/2758601#M636710</guid>
      <dc:creator>George Petrides_1</dc:creator>
      <dc:date>2002-07-30T11:49:21Z</dc:date>
    </item>
  </channel>
</rss>

