<?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: lvreduce and lvextend in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096019#M145877</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvreduce is to reduce lvols and online jfs works with filesystems.&lt;BR /&gt;&lt;BR /&gt;1 add the now disk to the volumegroup&lt;BR /&gt;pvcreate /dev/rdsk/c?t?d? &amp;amp;&amp;amp; vgextend /dev/vg?? /dev/dsk/c?t?d?&lt;BR /&gt;2 add a mirrorcopy to the lvols &lt;BR /&gt;lvextend -m1 /dev/vg??/lvol? /dev/dsk/c?t?d?&lt;BR /&gt;3. lvreduce the old disk&lt;BR /&gt;lvreduce -m0 /dev/vg??/lvol? /dev/dsk/c?t?d?&lt;BR /&gt;4. remove the disk out of the volume group&lt;BR /&gt;vgreduce /dev/vg?? /dev/dsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;There is no need voor onlinejfs.&lt;BR /&gt;&lt;BR /&gt;If you do need to use it just fsadm -F vxfs -b &lt;SIZE in="" bytes=""&gt; /mountpoint is safe if you have enough free space.&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is safe to use lvreduce&lt;/SIZE&gt;</description>
    <pubDate>Fri, 17 Oct 2003 09:09:52 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2003-10-17T09:09:52Z</dc:date>
    <item>
      <title>lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096016#M145874</link>
      <description>I am moving lvs from one disk to another using lvextend newdisk and lvreduce olddisk/primary mirror.  A HP engineer told me that I would have to umount the lvs prior to lvreduce or I would risk filesystem corruption.  I trust the HP engineer but my response was, "what good is OnlineJFS"?&lt;BR /&gt;&lt;BR /&gt;I don't have to do this on AIX ;-&amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Is this an old lvm bug or just a design feature?  Has anyone else heard of this feature/recommendation?&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 08:57:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096016#M145874</guid>
      <dc:creator>john schiwitz</dc:creator>
      <dc:date>2003-10-17T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096017#M145875</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I don't see where OnlineJFS comes into this.  You're adding a mirror with lvextend, then using lvreduce to get rid of the original primary?  That involves MirrorDisk/UX, not OnlineJFS - and I may be wrong, but I don't think you have to unmount the filesystem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 09:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096017#M145875</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-17T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096018#M145876</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would have to agree with Pete, I don't see where umounting or the use of OnlineJFS has anything to do with this. &lt;BR /&gt;&lt;BR /&gt;Say these are your disks:&lt;BR /&gt;&lt;BR /&gt;c0t1d0  old disk&lt;BR /&gt;c0t2d0  new disk&lt;BR /&gt;&lt;BR /&gt;You should be able to do this:&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/c0t2d0&lt;BR /&gt;&lt;BR /&gt;Then do:&lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vgXX/lvolX /dev/dsk/c0t1d0&lt;BR /&gt;&lt;BR /&gt;I would think that would be all you need to do.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;-Bryan</description>
      <pubDate>Fri, 17 Oct 2003 09:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096018#M145876</guid>
      <dc:creator>Bryan D. Quinn</dc:creator>
      <dc:date>2003-10-17T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096019#M145877</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lvreduce is to reduce lvols and online jfs works with filesystems.&lt;BR /&gt;&lt;BR /&gt;1 add the now disk to the volumegroup&lt;BR /&gt;pvcreate /dev/rdsk/c?t?d? &amp;amp;&amp;amp; vgextend /dev/vg?? /dev/dsk/c?t?d?&lt;BR /&gt;2 add a mirrorcopy to the lvols &lt;BR /&gt;lvextend -m1 /dev/vg??/lvol? /dev/dsk/c?t?d?&lt;BR /&gt;3. lvreduce the old disk&lt;BR /&gt;lvreduce -m0 /dev/vg??/lvol? /dev/dsk/c?t?d?&lt;BR /&gt;4. remove the disk out of the volume group&lt;BR /&gt;vgreduce /dev/vg?? /dev/dsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;There is no need voor onlinejfs.&lt;BR /&gt;&lt;BR /&gt;If you do need to use it just fsadm -F vxfs -b &lt;SIZE in="" bytes=""&gt; /mountpoint is safe if you have enough free space.&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is safe to use lvreduce&lt;/SIZE&gt;</description>
      <pubDate>Fri, 17 Oct 2003 09:09:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096019#M145877</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-10-17T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096020#M145878</link>
      <description>The way you are diong it will work.  But an easier way is to use pvmove.  pvmove will do what you are doing automatically.&lt;BR /&gt;&lt;BR /&gt;There isn't any reason to unmount the LV prior to lvreducing.</description>
      <pubDate>Fri, 17 Oct 2003 09:35:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096020#M145878</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-17T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096021#M145879</link>
      <description>I am inclined to go with the mirroring solution... more straight forward IMHO.&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vgXX /dev/dsk/cXtXdX for new mirror on new disk&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;lvreduce -m 0 /dev/vgXX /dev/dsk/cXtXdX  for removal of old disk&lt;BR /&gt; &lt;BR /&gt;Then remove the old disk from the VG or reallocate it.</description>
      <pubDate>Fri, 17 Oct 2003 10:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096021#M145879</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-17T10:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: lvreduce and lvextend</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096022#M145880</link>
      <description>oops I meant mirrorux not onlinejfs.&lt;BR /&gt;&lt;BR /&gt;I've lvextended and lvreduced hundreds of times without any problems.&lt;BR /&gt;&lt;BR /&gt;But the HP support team says I quote:&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;It is critical to ensure that all I/O has been flushed to both copies of&lt;BR /&gt;the mirrored logical volume(s) before reducing one of the mirror copies;&lt;BR /&gt;the only way to guarantee this is to stop the application, unmount the &lt;BR /&gt;filesystems or raw volumes, and deactivate the volume groups that are &lt;BR /&gt;affected&lt;BR /&gt;&lt;BR /&gt;NOTE: these steps need to be done on all 9 systems, however they can&lt;BR /&gt;be performed one system at a time if desired&lt;BR /&gt;&lt;BR /&gt;a) Confirm mirrors are sync'd before proceeding&lt;BR /&gt;&lt;BR /&gt;# vgdisplay -v (ensure all LVs are sync'd)&lt;BR /&gt;&lt;BR /&gt;b) Ensure the I/O is flushed to each logical volume&lt;BR /&gt;&lt;BR /&gt;Stop application&lt;BR /&gt;umount filesystems&lt;BR /&gt;deactivate VGs&lt;BR /&gt;&lt;BR /&gt;# vgdisplay (only vg00 should be active)&lt;BR /&gt;&lt;BR /&gt;c) Reduce a mirror from each logical volume&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# vgchange -a y /dev/vgxx&lt;BR /&gt;# vgdisplay -v &lt;BR /&gt;&lt;BR /&gt;# lvreduce -m 0 /dev/VGxx/LVx /dev/dsk/...&lt;BR /&gt;# lvdisplay -v /dev/VGxx/LVx&lt;BR /&gt;&lt;BR /&gt;# vgreduce /dev/VGxx /dev/dsk/... (alternate link)&lt;BR /&gt;# vgreduce /dev/VGxx /dev/dsk/... (primary link)&lt;BR /&gt;# vgdisplay -v /dev/VG&lt;BR /&gt;# strings /etc/lvmtab&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;They say if you really want to do this with your filesystems active you need to buy vxvm.&lt;BR /&gt;&lt;BR /&gt;Just wondered if anyone else had heard this feature with lvreduce/lvextend?&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 12:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvreduce-and-lvextend/m-p/3096022#M145880</guid>
      <dc:creator>john schiwitz</dc:creator>
      <dc:date>2003-10-17T12:48:46Z</dc:date>
    </item>
  </channel>
</rss>

