<?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: Difference between lvextend and lvsplit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552118#M622720</link>
    <description>Hi Matthew,&lt;BR /&gt;&lt;BR /&gt;ALL our HPUX-Minds given diff solutions for your requirement. what i feel is that most of those are very complex.&lt;BR /&gt;&lt;BR /&gt;i am giving very simple and safe solution.&lt;BR /&gt;&lt;BR /&gt;1,Check your all LV's are got properly mirrored and not spaning accross the disk's&lt;BR /&gt;&lt;BR /&gt;#lvdisplay -v /dev/vg00/l* |grep stale&lt;BR /&gt;&lt;BR /&gt;2,shutdown and boot the system using alternate disk for confirming second disk is able to boot properly.&lt;BR /&gt;&lt;BR /&gt;Main Menu&amp;gt; Bo Alt&lt;BR /&gt;ISL&amp;gt;hpux -lq&lt;BR /&gt;&lt;BR /&gt;3,Hard shutdown the system.&lt;BR /&gt;&lt;BR /&gt;4,Physically plug out any one of the disk.&lt;BR /&gt;  Ex: alternate disk.&lt;BR /&gt;&lt;BR /&gt;5, boot the system using Pri disk.&lt;BR /&gt;Main Menu&amp;gt; Bo Pri&lt;BR /&gt;ISL&amp;gt;hpux -lq&lt;BR /&gt;&lt;BR /&gt;6,complete your activity (upgradation )and test for 3 to 4 days.&lt;BR /&gt;&lt;BR /&gt;7,When ever you decided to re-sync simply plug the disk and run below command.&lt;BR /&gt;#ioscan -fnC disk&lt;BR /&gt;#vgchnage -a y vg00&lt;BR /&gt;#vgsync /dev/vg00&lt;BR /&gt;it will take little time and your system is ready.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In case of your upgrdation is fails or satuvation come for boot with old disk.&lt;BR /&gt;&lt;BR /&gt;shutdown the HPUX and plug the alt disk and boot with alt. disk. Now your system will got rollback.&lt;BR /&gt;&lt;BR /&gt;This i did severla time and i can assure it will work.&lt;BR /&gt;&lt;BR /&gt;if have any dobut, you can contact me directly ..&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Sivaji</description>
    <pubDate>Fri, 27 May 2005 03:57:42 GMT</pubDate>
    <dc:creator>sivaji.v</dc:creator>
    <dc:date>2005-05-27T03:57:42Z</dc:date>
    <item>
      <title>Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552112#M622714</link>
      <description>Dear All guru, I need some advice.&lt;BR /&gt;&lt;BR /&gt;Here's our situation, we have root disks mirrored(c0t12d0,c1t12d0), I would like to split it for migration usages, as following is my idea thinking. I know I can choose to boot from make_tape_recovery tape, but it's time consuming. &lt;BR /&gt;&lt;BR /&gt;Case_A,&lt;BR /&gt;"lvextend -m 0 /dev/vg00/lvolX /dev/dsk/c1t12d0" to remove mirror-copy of each root volume&lt;BR /&gt;2. start migration tasks, if migration fail, boot by /dev/dsk/c1t12d0, and use 'lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c1t12d0' to do the mirror-copy&lt;BR /&gt;&lt;BR /&gt;Case_B,&lt;BR /&gt;use "lvsplit" and "lvmrege" to do the same thing, if fails, sync from the /dev/vg00/lvolXb&lt;BR /&gt;&lt;BR /&gt;Case_C,&lt;BR /&gt;use -lq to bypass lvm quorm check when boot from c0t12d0, start migration tasks, if fail,&lt;BR /&gt;reboot from c1t12d0 without -lq, then resync the disks, if success, reboot from c0t12d0 and resync the disks</description>
      <pubDate>Wed, 25 May 2005 22:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552112#M622714</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-05-25T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552113#M622715</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvextend is not the command to reduce the mirror.  you have to use&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vg00/lvolx /dev/dsk/c1t12d0 for each logical volumes to reduce the mirror. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;--Naveej</description>
      <pubDate>Wed, 25 May 2005 23:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552113#M622715</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-25T23:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552114#M622716</link>
      <description>The procedure HP taught me at sysadmin school is thus:&lt;BR /&gt;&lt;BR /&gt;To mirror:&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 &lt;LVOLNAME&gt; &lt;DISK name=""&gt;&lt;BR /&gt;&lt;BR /&gt;lvsplit is used to break the mirrors.&lt;BR /&gt;&lt;BR /&gt;I've never used lvmerge to put mirrors back together.&lt;BR /&gt;&lt;BR /&gt;The risk is that the mirrors have changed in some way making the merged logical volume a heap of magnetic garbage.&lt;BR /&gt;&lt;BR /&gt;Hope this clarifies.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/DISK&gt;&lt;/LVOLNAME&gt;</description>
      <pubDate>Thu, 26 May 2005 00:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552114#M622716</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-26T00:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552115#M622717</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use 'lvsplit' instead of 'lvreduce -m 0' (and not lvextend -m 0) to break mirror; and 'lvextend -m 1' to mirror.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 26 May 2005 01:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552115#M622717</guid>
      <dc:creator>Suraj Singh_1</dc:creator>
      <dc:date>2005-05-26T01:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552116#M622718</link>
      <description>I think there is a lot of issues you shoud be in mind before upgrading. I think all your proposals have lacks that prevent you to recover your original system in case of failure of your upgrade:&lt;BR /&gt;&lt;BR /&gt;case A:&lt;BR /&gt;1) If you remove the copy mirror in your 2nd disk, you will not be able to boot from it because 2nd disk will have no PE of /dev/vg00/lvol3 (for example). In other words, you try to boot from a disk whose LVM header says that 2nd disk contains no PE of /dev/vg00/lvol3 (after removing disk mirror all PEs reside in 1st disk and, though PEs contains original data, they are seen as FREE PE).&lt;BR /&gt;&lt;BR /&gt;2) you suggested to run 'lvextend -m 1 /dev/vg00/lvolX /dev/dsk/c1t12d0'... after booting from c1t12d0... This will copy data from c0t12d0 (containing bad data) onto c1t12d0 (containing safe system)&lt;BR /&gt;&lt;BR /&gt;case C:&lt;BR /&gt;&lt;BR /&gt;Booting using -lq in order to bypass LVM quorum check will NOT split any mirror. This is useful only for disk failures. If both disks are fine and mirror haven't been brokern, data from upgrade will be written to both disks.&lt;BR /&gt;&lt;BR /&gt;case B: the most interesting (I had to use)&lt;BR /&gt;&lt;BR /&gt;1) /dev/vg00/lvol3 must be splitted in last 'lvsplit' command because it holds /etc/lvmtab file.&lt;BR /&gt;2) After splitting you MUST fsck /dev/vg00/lvol3b (and all other lvols containing FileSys), mount it on any trivial  dir (for example /m1), and CHANGE the logical volume names in this /m1/etc/fstab file (You must change lvol4 by lvol4b, lvol5 by lvol5b, and so on). If you plan to boot using OLD logical volumes (containing the pre-upgrade data) you must mount the /dev/vg00/lvolXb logical volumes, not the /dev/vg00/lvolX ones (containing bad data).&lt;BR /&gt;&lt;BR /&gt;3) In LVM headers of boot disks, lvol1 and lvol3 are set as BOOT and ROOT devices. In case of upgrade failure and reboot from safe disk, I think these setting should be changed to lvol1b and lvol3b (I guess). Read lvlnboot man pages.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please, read doc X1401978. It is a good guide for you.</description>
      <pubDate>Thu, 26 May 2005 04:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552116#M622718</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2005-05-26T04:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552117#M622719</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;Other people have posted parts of the answer; hopefully, this'll be all of it.  &lt;BR /&gt;&lt;BR /&gt;lvextend is used to extend lvs, not reduce them.  To reduce mirrors, you want lvreduce -m 0 ${lv}&lt;BR /&gt;&lt;BR /&gt;ISP&amp;gt; hpux -lq won't affect the mirrors either; that's not what you want.  &lt;BR /&gt;&lt;BR /&gt;In order to protect your operating system while upgrading your boot disk, do the following:&lt;BR /&gt;&lt;BR /&gt;1.  Use lvsplit to create new logical volumes of all vg00 based LVs.  Note the new LV names.&lt;BR /&gt;&lt;BR /&gt;2.  Mount the split lv for the root filesystem.  After creating a backup copy, update the split /mnt/etc/fstab to reflect all the split lvs instead of the originals.&lt;BR /&gt;&lt;BR /&gt;3.  Execute setboot to verify that the system sees the alternate boot disk as a valid boot path.&lt;BR /&gt;&lt;BR /&gt;4.  Upgrade; make damned sure you upgrade the correct disk.&lt;BR /&gt;&lt;BR /&gt;5.  If you need to eliminate the upgrade, boot from the alternate disk and execute&lt;BR /&gt;&lt;BR /&gt;lvmerge -A n ${upgraded_lvs} ${split_lvs}&lt;BR /&gt;&lt;BR /&gt;then restore the backed up copy of /etc/fstab&lt;BR /&gt;Then reboot to start using the old OS again.&lt;BR /&gt;&lt;BR /&gt;It is complex, but it's not rocket science.  Make sure you undestand what you're doing at each step.  You can email me directly, if you want more direct help.&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 26 May 2005 07:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552117#M622719</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2005-05-26T07:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552118#M622720</link>
      <description>Hi Matthew,&lt;BR /&gt;&lt;BR /&gt;ALL our HPUX-Minds given diff solutions for your requirement. what i feel is that most of those are very complex.&lt;BR /&gt;&lt;BR /&gt;i am giving very simple and safe solution.&lt;BR /&gt;&lt;BR /&gt;1,Check your all LV's are got properly mirrored and not spaning accross the disk's&lt;BR /&gt;&lt;BR /&gt;#lvdisplay -v /dev/vg00/l* |grep stale&lt;BR /&gt;&lt;BR /&gt;2,shutdown and boot the system using alternate disk for confirming second disk is able to boot properly.&lt;BR /&gt;&lt;BR /&gt;Main Menu&amp;gt; Bo Alt&lt;BR /&gt;ISL&amp;gt;hpux -lq&lt;BR /&gt;&lt;BR /&gt;3,Hard shutdown the system.&lt;BR /&gt;&lt;BR /&gt;4,Physically plug out any one of the disk.&lt;BR /&gt;  Ex: alternate disk.&lt;BR /&gt;&lt;BR /&gt;5, boot the system using Pri disk.&lt;BR /&gt;Main Menu&amp;gt; Bo Pri&lt;BR /&gt;ISL&amp;gt;hpux -lq&lt;BR /&gt;&lt;BR /&gt;6,complete your activity (upgradation )and test for 3 to 4 days.&lt;BR /&gt;&lt;BR /&gt;7,When ever you decided to re-sync simply plug the disk and run below command.&lt;BR /&gt;#ioscan -fnC disk&lt;BR /&gt;#vgchnage -a y vg00&lt;BR /&gt;#vgsync /dev/vg00&lt;BR /&gt;it will take little time and your system is ready.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In case of your upgrdation is fails or satuvation come for boot with old disk.&lt;BR /&gt;&lt;BR /&gt;shutdown the HPUX and plug the alt disk and boot with alt. disk. Now your system will got rollback.&lt;BR /&gt;&lt;BR /&gt;This i did severla time and i can assure it will work.&lt;BR /&gt;&lt;BR /&gt;if have any dobut, you can contact me directly ..&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Sivaji</description>
      <pubDate>Fri, 27 May 2005 03:57:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552118#M622720</guid>
      <dc:creator>sivaji.v</dc:creator>
      <dc:date>2005-05-27T03:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552119#M622721</link>
      <description>I have never used a mirror disk for migration, but it should work.  using lvsplit.&lt;BR /&gt;&lt;BR /&gt;I use split and merge all of time.  The secret for merge is to make sure you merge them back into the correct order.  &lt;BR /&gt;&lt;BR /&gt;I have never tried Option B but it should work.  &lt;BR /&gt; &lt;BR /&gt;I am going to give you a Case_D&lt;BR /&gt;what I use&lt;BR /&gt; 1. you have a tape backup (make_tape_recovery)&lt;BR /&gt; 2. boot disk are swapable.&lt;BR /&gt;&lt;BR /&gt; 3 lvreduce vg00 logical volumes and vgreduce c1t12d0.&lt;BR /&gt; 4. dd if=/dev/rdsk/c0t12d0 of=/dev/rdsk/c1t12d0 bs=64k&lt;BR /&gt; 5. you can now reboot and do your upgrade.&lt;BR /&gt; 6.0  it your migration fails&lt;BR /&gt;  a. swap disks c1t12d0 with c0t12d0&lt;BR /&gt;  b. boot up and you have your orginal up.&lt;BR /&gt; 7. After your migration is done &lt;BR /&gt;    do the normal mkboot, vgextend, lvextend, etc,etc to the c1t12d0 to make it boot mirror of the upgrade c0t12d0.&lt;BR /&gt; (At step five you might want to swap disk&lt;BR /&gt;  and boot off the copy and use it for the migration, that way you know&lt;BR /&gt;  that your copy is good.)&lt;BR /&gt;&lt;BR /&gt;Rory</description>
      <pubDate>Fri, 27 May 2005 09:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552119#M622721</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-05-27T09:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between lvextend and lvsplit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552120#M622722</link>
      <description>Matthew,&lt;BR /&gt;&lt;BR /&gt;Maybe you could explain, first, exactly what your migrating or hoping to do.&lt;BR /&gt;&lt;BR /&gt;It's a bit skewed...are you doing and upgrade on your server, or are you migrating from one server to another...&lt;BR /&gt;&lt;BR /&gt;Cause I'm hearing alot of folks saying what they 'think' you mean....but I'm not sure I heard it from you, what you mean.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Fri, 27 May 2005 09:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-lvextend-and-lvsplit/m-p/3552120#M622722</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2005-05-27T09:49:07Z</dc:date>
    </item>
  </channel>
</rss>

