<?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: Reducing a logical volume . in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624034#M631552</link>
    <description>I just did this yesterday,&lt;BR /&gt;&lt;BR /&gt;create a new lvol the size you want.&lt;BR /&gt;&lt;BR /&gt;cp -rp /orig /new&lt;BR /&gt;&lt;BR /&gt;vi /etc/fstab&lt;BR /&gt;change the lvol mount info&lt;BR /&gt;&lt;BR /&gt;reboot&lt;BR /&gt;remove the orig_lvol&lt;BR /&gt;&lt;BR /&gt;Best way to do it is with fsadm&lt;BR /&gt;(Online JFS)&lt;BR /&gt;you must first defrag the filesystem, reduce the filesystem (fsadm again) then lvreduce the lvol.. all online.&lt;BR /&gt;&lt;BR /&gt;If it really is a concern to do this online, you need to get OnlineJFS.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
    <pubDate>Wed, 05 Dec 2001 10:25:34 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-12-05T10:25:34Z</dc:date>
    <item>
      <title>Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624030#M631548</link>
      <description>Is it possible to reduce a logical volume.&lt;BR /&gt;For some reason, (vg00-lvol8-/var) is allocated 5Gb and I need to shift some of the extra capacity over to (vg00-lvol7-/usr) currently at 500Mb.&lt;BR /&gt;&lt;BR /&gt;Is this possible?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Russ.</description>
      <pubDate>Mon, 03 Dec 2001 15:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624030#M631548</guid>
      <dc:creator>Russ Hancock_1</dc:creator>
      <dc:date>2001-12-03T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624031#M631549</link>
      <description>Russ,&lt;BR /&gt;&lt;BR /&gt;It is not advisable to reduce a logical volume unless  you have Online JFS. The best way  is to re-arrange the file systems a bit. Since /var is only 500MB, create a standby file system of size 600, copy the contents, destroy /var and create it with probably 1.5 GB and then copy back the contents. You don't have to do this if you have around 1.5 GB free space where you can simply make it as /var. You need to do this in single user mode. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 03 Dec 2001 15:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624031#M631549</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-03T15:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624032#M631550</link>
      <description>Hi Russ: &lt;BR /&gt;&lt;BR /&gt;Yes it is possible but sometimes dangerous. You can use fsadm to reduce the filesystem and then use lvreduce to shrink the logical volume.&lt;BR /&gt;Man fsadm_vxfs and lvreduce for details. &lt;BR /&gt;&lt;BR /&gt;Your safer option is to:&lt;BR /&gt;1) Backup the filesystem&lt;BR /&gt;2) umount the filesystem&lt;BR /&gt;3) remove the logical volume&lt;BR /&gt;4) recreate the logical volume&lt;BR /&gt;5) build a new filesystem&lt;BR /&gt;6) mount the filesystem&lt;BR /&gt;7) restore the filesystem from backup&lt;BR /&gt;&lt;BR /&gt;In any event, backup before doing any of this.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2001 15:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624032#M631550</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-12-03T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624033#M631551</link>
      <description>Russ&lt;BR /&gt;&lt;BR /&gt;Everyone has given you great suggestions, one thing that you might want to also think about doing since you have a very large /var and want to reduce it, try doing the following:&lt;BR /&gt;1) make_recovery -A -C -v   - Creating system tape.&lt;BR /&gt;2) Reboot into the path of the tape drive booting into the hpux Ignite-UX utility.&lt;BR /&gt;3) Rebuild all of the filesystems that you want to resize.&lt;BR /&gt;&lt;BR /&gt;This may take a little longer but it will probably serve you better in the long run.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2001 21:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624033#M631551</guid>
      <dc:creator>fg_1</dc:creator>
      <dc:date>2001-12-03T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624034#M631552</link>
      <description>I just did this yesterday,&lt;BR /&gt;&lt;BR /&gt;create a new lvol the size you want.&lt;BR /&gt;&lt;BR /&gt;cp -rp /orig /new&lt;BR /&gt;&lt;BR /&gt;vi /etc/fstab&lt;BR /&gt;change the lvol mount info&lt;BR /&gt;&lt;BR /&gt;reboot&lt;BR /&gt;remove the orig_lvol&lt;BR /&gt;&lt;BR /&gt;Best way to do it is with fsadm&lt;BR /&gt;(Online JFS)&lt;BR /&gt;you must first defrag the filesystem, reduce the filesystem (fsadm again) then lvreduce the lvol.. all online.&lt;BR /&gt;&lt;BR /&gt;If it really is a concern to do this online, you need to get OnlineJFS.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 05 Dec 2001 10:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624034#M631552</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-12-05T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624035#M631553</link>
      <description>Attention Russ,&lt;BR /&gt;&lt;BR /&gt;If you reduce logical volume you may ( 99 %) corrupt data on that logical volume.&lt;BR /&gt;&lt;BR /&gt;In fact, hp-ux didn't mark blocks containing data and those not containing data within the logical volume.&lt;BR /&gt;&lt;BR /&gt;See the manuel page in the Warning section, it's written :&lt;BR /&gt;&lt;BR /&gt;The lvreduce command on a logical volume containing a file systemof greater length than the size being reduced to will cause data CORRUPTION.&lt;BR /&gt;&lt;BR /&gt;Action :&lt;BR /&gt;&lt;BR /&gt;You must plan for an Ignite first to save you data.&lt;BR /&gt;&lt;BR /&gt;Magdi</description>
      <pubDate>Mon, 10 Dec 2001 10:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624035#M631553</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-12-10T10:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624036#M631554</link>
      <description>Wouldn't a fsadm -b 8388608 /dev/vg00/lvol8 work? Reduce the file system to 4gig. Leaving 1 gig to add on unto /usr.&lt;BR /&gt;&lt;BR /&gt;-Gene</description>
      <pubDate>Fri, 21 Dec 2001 19:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624036#M631554</guid>
      <dc:creator>Gene Matusovsky</dc:creator>
      <dc:date>2001-12-21T19:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing a logical volume .</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624037#M631555</link>
      <description>I have found a combination of steps to successfully reducing logical volumes.  The only requirements are as follows:&lt;BR /&gt;&lt;BR /&gt;1. Advanced Online JFS Insatlled &amp;amp; working properly.&lt;BR /&gt;2. The file system be mounted, but inactive.&lt;BR /&gt;3. Do not reduce smaller than data size (or data WILL be corrupted!)&lt;BR /&gt;&lt;BR /&gt;Keep in mind this is not an "Online" feature, just added functionality that the Advanced Online JFS package offers.&lt;BR /&gt;&lt;BR /&gt;Assumptions in this example:&lt;BR /&gt;-"/m" represents the mountpoint&lt;BR /&gt;-The new file system size is 300mb&lt;BR /&gt;-The file system is /dev/vg00/lvol6&lt;BR /&gt;&lt;BR /&gt;1.Unmount and mount /m. (Best way to ensure it is not active)&lt;BR /&gt;2.Defragment and cluster the data:  &lt;BR /&gt;  #/usr/sbin/fsadm -F vxfs -d -D -e -E /m&lt;BR /&gt;3.Shrink the file system (Example 300mb): &lt;BR /&gt;  #/usr/sbin/fsadm -F vxfs -b 300000 /m (the -b is the new size in KB) &lt;BR /&gt;4.Shrink the Logical Volume:&lt;BR /&gt;  #/sbin/lvreduce -L 300 /dev/vg00/lvol6 (-L is new size in MB)&lt;BR /&gt;&lt;BR /&gt;(Keep in mind that this is just one suggestion, and there are likely inefficiencies.  Please feel free to comment or include suggestions.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Oct 2003 14:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-a-logical-volume/m-p/2624037#M631555</guid>
      <dc:creator>Russell_20</dc:creator>
      <dc:date>2003-10-28T14:00:11Z</dc:date>
    </item>
  </channel>
</rss>

