<?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: lvextend &amp;amp; lvreduce questions. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870977#M636161</link>
    <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;even if you don't have online JFS, you don't have to do a shutdown after reducing or extending Filesystems.&lt;BR /&gt;&lt;BR /&gt;Claus</description>
    <pubDate>Sat, 28 Dec 2002 14:40:38 GMT</pubDate>
    <dc:creator>Rammig Claus</dc:creator>
    <dc:date>2002-12-28T14:40:38Z</dc:date>
    <item>
      <title>lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870973#M636157</link>
      <description>Seasonings Greetings!&lt;BR /&gt;&lt;BR /&gt;I'm new to the HP-UX world &amp;amp; would appreciate some help in validating my plan to reduce a lv &amp;amp; extend a lv.&lt;BR /&gt;&lt;BR /&gt;Running: B.11.00&lt;BR /&gt;&lt;BR /&gt;I need to reduce lvol202 (demo side of our production system) &amp;amp; extend lvol201 (production side).  Both lv are 8 GB &amp;amp; I plan to reduce lvol202 by 250MB (2.5GB) &amp;amp; extend lvol201 by 250MB&lt;BR /&gt;&lt;BR /&gt;/dev/vg02/lvol202  8888320 4772378 3988202   54% /demo2&lt;BR /&gt;/dev/vg02/lvol201  8888320 7882494  974682   89% /z&lt;BR /&gt;&lt;BR /&gt;I plan to run:&lt;BR /&gt;&lt;BR /&gt;unmount /demo&lt;BR /&gt;unmount /z&lt;BR /&gt;lvreduce -L 250 /dev/vg02/lv202&lt;BR /&gt;lvextend -L 250 /dev/vg02/lv201&lt;BR /&gt;shutdown -r 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Question?&lt;BR /&gt;&lt;BR /&gt;Do I need to extend/create file system somewhere in this process?&lt;BR /&gt;&lt;BR /&gt;Would it be easier to use SAM?  I don't see an option to reduce, but I can always remove &amp;amp; recreate lvol202?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yes...  I have full backups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 17:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870973#M636157</guid>
      <dc:creator>James Pethigal_1</dc:creator>
      <dc:date>2002-12-27T17:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870974#M636158</link>
      <description>You will need to run extendfs on lv201 to use the new space.&lt;BR /&gt;&lt;BR /&gt;Doing the lvreduce may or may not corrupt your data, depending on whether it is a Journaled File System and how much free space is available.&lt;BR /&gt;&lt;BR /&gt;If I were you, I would just remove and recreate lvol202. (and restore from backup) Either manually or with SAM.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 27 Dec 2002 17:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870974#M636158</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-12-27T17:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870975#M636159</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;   You're close to getting it done.  Though it is recommended to recreate a logical volume in it sentirety rather than reduce it, it is still possible to accomplish what you want to do this way. &lt;BR /&gt;&lt;BR /&gt;1) If you can umount your file systems, you won't need to reboot at all. &lt;BR /&gt;&lt;BR /&gt;2) your commands should show :&lt;BR /&gt;lvreduce -L 8500 /dev/vg02/lv202&lt;BR /&gt;and&lt;BR /&gt;lvextend -L 9130 /dev/vg02/lv201&lt;BR /&gt;&lt;BR /&gt;the -L option is always the TOTAL amount of space after the change. So, since you want to reduce by 250 Megs from 8.88 Gigs, you'll get about 8.5 Gigs left. Same goes with the amount you want to add. &lt;BR /&gt;&lt;BR /&gt;3) Rather than reboot, you can then just :&lt;BR /&gt;extendfs /dev/vg02/lv201&lt;BR /&gt;and then mount your file system again.&lt;BR /&gt;&lt;BR /&gt;Again, it is recommended to recreate the logical volume that you want to decrease rather than lvreduce it.  So it would give something like this : &lt;BR /&gt;umount /dev/vg02/lv202&lt;BR /&gt;umount /dev/vg02/lv201&lt;BR /&gt;lvremove /dev/vg02/lv202&lt;BR /&gt;lvextend -L 9130 /dev/vg02/lv201&lt;BR /&gt;extendfs /dev/vg02/lv201&lt;BR /&gt;mount /dev/vg02/lv201 /z&lt;BR /&gt;lvcreate -n lv202 -L 8500 vg02&lt;BR /&gt;newfs -F vxfs /dev/vg02/lv202&lt;BR /&gt;Restore your file system /dev/vg02/lv202&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 17:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870975#M636159</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2002-12-27T17:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870976#M636160</link>
      <description>If you have online JFS then &lt;BR /&gt;you can use fsadm command to extend file system without unmounting file system.&lt;BR /&gt;&lt;BR /&gt;Or else you have to unmount file system.&lt;BR /&gt;Before doing anything please take filesystem backup.&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 17:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870976#M636160</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-12-27T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870977#M636161</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;even if you don't have online JFS, you don't have to do a shutdown after reducing or extending Filesystems.&lt;BR /&gt;&lt;BR /&gt;Claus</description>
      <pubDate>Sat, 28 Dec 2002 14:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870977#M636161</guid>
      <dc:creator>Rammig Claus</dc:creator>
      <dc:date>2002-12-28T14:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: lvextend &amp; lvreduce questions.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870978#M636162</link>
      <description>I'd think it useful to lvremove any volumes you want to totally eliminate.&lt;BR /&gt;&lt;BR /&gt;I'm also assuming you have a fbackup handy in case you hit data on the volume you are reducing.&lt;BR /&gt;&lt;BR /&gt;It would be easier to use SAM but sometimes it makes mistakes.&lt;BR /&gt;&lt;BR /&gt;Here is the Steve guide on how to use SAM.&lt;BR /&gt;&lt;BR /&gt;Use, it then view the commands it used.  Save them as a script and look them over.  Get rid of the display commands and then you see how to do it on the command line next time.&lt;BR /&gt;&lt;BR /&gt;Why?  Because you have no SAM in single user mode or lm mode.  Thats when you need the command line knowledge.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sun, 29 Dec 2002 20:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lvextend-amp-lvreduce-questions/m-p/2870978#M636162</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-29T20:58:09Z</dc:date>
    </item>
  </channel>
</rss>

