<?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 logical volume in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968290#M610620</link>
    <description>No OnlineJFS is installed. So how could I proceed further in production enviornment to reduce the logical volume?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mehul</description>
    <pubDate>Mon, 26 Mar 2007 07:07:00 GMT</pubDate>
    <dc:creator>mehul_3</dc:creator>
    <dc:date>2007-03-26T07:07:00Z</dc:date>
    <item>
      <title>Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968283#M610613</link>
      <description>space allocation is as under &lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1024000  140304  876848   14% /&lt;BR /&gt;/dev/vg00/lvol1     503736   84824  368536   19% /stand&lt;BR /&gt;/dev/vg00/lvol8    5120000 4064160 1048192   79% /var&lt;BR /&gt;/dev/vg00/lvol7    3072000 1652144 1408776   54% /usr&lt;BR /&gt;/dev/vg03/lvol4    20480000 2764784 17438476   14% /u04&lt;BR /&gt;/dev/vg00/lvol4    1024000  803848  218960   79% /tmp&lt;BR /&gt;/dev/vg01/lvol1    10240000 5291522 4793870   52% /oracle&lt;BR /&gt;/dev/vg00/lvol6    3072000 1307504 1750736   43% /opt&lt;BR /&gt;/dev/vg00/lvol5    2048000  134136 1898944    7% /home&lt;BR /&gt;/dev/vg01/lvol2    16384000 8823710 7325378   55% /arch&lt;BR /&gt;/dev/vg03/lvol5    153600000 29490560 123139952   19% /u05&lt;BR /&gt;/dev/vg03/lvol1    81920000 59100040 22641696   72% /u01&lt;BR /&gt;/dev/vg03/lvol2    81920000 62656576 19112992   77% /u02&lt;BR /&gt;/dev/vg03/lvol3    81920000 53490664 28207240   65% /u03&lt;BR /&gt;and I want set logical volume lvol5 to 70GB i.e reduce from 150GB to 70GB. I am trying via lreduce -L 7000 /dev/vg03/lvol5 but giving warning message that data might be lost or corrupted. I am really worried about that because oracle archive file destination was being set on these volume and suspicious to go further.</description>
      <pubDate>Sat, 24 Mar 2007 08:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968283#M610613</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2007-03-24T08:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968284#M610614</link>
      <description>Hi Mehul:&lt;BR /&gt;&lt;BR /&gt;The warning message was wise to evaulate.  You need to _first_ reduce the size of the filesystem contained within the logical volume (with 'fsadm') and then 'lvreduce' the logical volume.  If you have already reduced the filesystem size then you may ignore the warning.&lt;BR /&gt;&lt;BR /&gt;If this isn't a VxVS (JFS) filesystem (unlikely) or if you don't have OnlineJFS (I hope not) then you must backup any data that you want saved; 'lvreduce' the filesystem; 'newfs' a filesystem within the logical volume; and reload your data.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 24 Mar 2007 09:17:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968284#M610614</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-24T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968285#M610615</link>
      <description>lvreduce simply chops off the disk WITHOUT regard to anything stored in the disk area. DON'T use lvreduce unless you have Online JFS (a priced product and use the very latest version), your disk and filesystem patches are up to date (2007), use HP-UX version 11.11 (11i ver 1 or later) and you have made a complete backup of the data on this disk. &lt;BR /&gt; &lt;BR /&gt;Otherwise, you have to save the data on another disk or tape, un-mount the filesystem, use lvreduce, then newfs to recreate an empty filesystem, re-mount the filesystem and restore the data.</description>
      <pubDate>Sat, 24 Mar 2007 09:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968285#M610615</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-03-24T09:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968286#M610616</link>
      <description>shalom,&lt;BR /&gt;&lt;BR /&gt;It may be too late, but if your data is still there back it up prior to proceeding.&lt;BR /&gt;&lt;BR /&gt;You may be interested to know that some of your data may be sitting on the end of the logical volume and will be chopped off. Please read Bill's post very carefully.&lt;BR /&gt;&lt;BR /&gt;I even do this when OnlineJFS is avaiable.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 24 Mar 2007 13:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968286#M610616</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-24T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968287#M610617</link>
      <description>&lt;!--!*#--&gt;Hi mehul,&lt;BR /&gt;&lt;BR /&gt;reducing a filesystem is task with quite delicacy. It has four steps.&lt;BR /&gt;&lt;BR /&gt;1. Considering thoroughly&lt;BR /&gt;2. Defragmenting filesystem we want to reduce&lt;BR /&gt;3. Reducing filesystem via fsadm&lt;BR /&gt;4. Reducing underlying logical volume via lvreduce.&lt;BR /&gt;&lt;BR /&gt;We do have OnlineJFS on the system, do we?&lt;BR /&gt;As you say you want to reduce /u05 (/dev/vg03/lvol5), which is quite fine as you have this filesystem filled up only up to 19%.&lt;BR /&gt;&lt;BR /&gt;Defragmentation will happen by using:&lt;BR /&gt;# fsadm -d -e -D -E /u05&lt;BR /&gt;-d and -D handle directory fragmentation and report it's state both before and after the process&lt;BR /&gt;- e and -E do the same as above but with extents&lt;BR /&gt;&lt;BR /&gt;After you have it defragmented, you can use fsadm to reduce the filesystem. Like:&lt;BR /&gt;# fsadm -F vxfs -b 70000M /u05&lt;BR /&gt;&lt;BR /&gt;By this, we have filesystem reduced and now we are waiting only for logical volume reduce. Please - do not use -L in lvreduce (or lvextend), it rounds up things. Be nice to LVM and use -l which uses number of extents. Check of extent size via lvdisplay, divide 70000M by this extent size and you'll get number of extents to which we are reducing the logical volume to. For example you have 16M per extent, and you want to have 70000M on this logical volume, this gets us 4375 extents.&lt;BR /&gt;# lvreduce -l 4375 /dev/vg03/lvol5&lt;BR /&gt;&lt;BR /&gt;And you're done. It is wise also to verify extent distribution via lvdisplay -v, just to have things checked.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Sun, 25 Mar 2007 05:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968287#M610617</guid>
      <dc:creator>MHudec</dc:creator>
      <dc:date>2007-03-25T05:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968288#M610618</link>
      <description>Hi martin,&lt;BR /&gt;Thanks for your suggestion and steps followed. I already did in our test enviornment by reducing volume /arch directly using lvreduce and got into problem.Following is the snapshot of what I did.&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1024000  884040  138896   86% /&lt;BR /&gt;/dev/vg00/lvol1     503736  165520  287840   37% /stand&lt;BR /&gt;/dev/vg00/lvol8    5120000 2178160 2919432   43% /var&lt;BR /&gt;/dev/vg00/lvol7    3072000 1654624 1406368   54% /usr&lt;BR /&gt;/dev/vg03/lvol5    184320000 172080864 12143552   93% /u05&lt;BR /&gt;/dev/vg03/lvol4    20480000 18071308 2371124   88% /u04&lt;BR /&gt;/dev/vg03/lvol3    71680000 57544168 14025400   80% /u03&lt;BR /&gt;/dev/vg03/lvol2    71680000 64412392 7210896   90% /u02&lt;BR /&gt;/dev/vg03/lvol1    71680000 59756096 11831064   83% /u01&lt;BR /&gt;/dev/vg00/lvol4    1024000   29448  987432    3% /tmp&lt;BR /&gt;/dev/vg01/lvol1    10240000 5005164 5071254   50% /oracle&lt;BR /&gt;/dev/vg00/lvol6    3072000 1308472 1749776   43% /opt&lt;BR /&gt;/dev/vg00/lvol5    2048000  195416 1838176   10% /home&lt;BR /&gt;/dev/vg01/lvol2    16384000  310452 15571284    2% /arch&lt;BR /&gt;# lvreduce -L 12000 /dev/vg01/lvol2&lt;BR /&gt;The Logical Volume has a mounted filesystem on it.&lt;BR /&gt;Logical volume "/dev/vg01/lvol2" is not reduced.&lt;BR /&gt;# umount /arch&lt;BR /&gt;# lvrduce -L 12000 /dev/vg01/lvol2&lt;BR /&gt;sh: lvrduce:  not found.&lt;BR /&gt;# lvreduce -L 12000 /dev/vg01/lvol2&lt;BR /&gt;Warning: The Logical Volume has a file system larger than the reduced size.&lt;BR /&gt;Reducing the Logical Volume will cause filesystem corruption.&lt;BR /&gt;When a logical volume is reduced useful data might get lost;&lt;BR /&gt;do you really want the command to proceed (y/n) : y&lt;BR /&gt;Logical volume "/dev/vg01/lvol2" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.con&lt;BR /&gt;f&lt;BR /&gt;So, how could I retain logical vol lvol2 and data.&lt;BR /&gt;&lt;BR /&gt;In production enviornment I will take care all steps followed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Mar 2007 23:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968288#M610618</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2007-03-25T23:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968289#M610619</link>
      <description>As I mentioned in my first answer, do NOT use lvreduce until you have made a copy of every file on this lvol.  lvreduce is *NOT* a filesytem command so it *will* destroy your data if the filesystem extends beyond the reduced size of your lvol. The correct command is fsadm -b to reduce a logical volume that contains a filesystem. Run this command to determine if you have OnLine JFS:&lt;BR /&gt; &lt;BR /&gt;swlist -l product|grep OnlineJFS &lt;BR /&gt; &lt;BR /&gt;If you see nothing, then you do not have this product and fsadm -b will not work. In that case, reducing the lvol will likely destroy your data.&lt;BR /&gt; &lt;BR /&gt;If you have reduced lvol2 already, you can try to mount it and see if it has been destroyed. DO NOT RUN fsck if it says the volume needs repair!!! Instead, resize the lvol back to it's original size:&lt;BR /&gt; &lt;BR /&gt;/dev/vg01/lvol2 16384000 8823710 7325378 55% /arch&lt;BR /&gt; &lt;BR /&gt;something like this:&lt;BR /&gt; &lt;BR /&gt;lvextend -L 16000 /dev/vg01/lvol2&lt;BR /&gt; &lt;BR /&gt;and now mount the volume. Hopefully, it should be OK now. You can safely assume that lvreduce will always destroy filesystems (and data in raw database volumes).</description>
      <pubDate>Mon, 26 Mar 2007 06:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968289#M610619</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-03-26T06:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968290#M610620</link>
      <description>No OnlineJFS is installed. So how could I proceed further in production enviornment to reduce the logical volume?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mehul</description>
      <pubDate>Mon, 26 Mar 2007 07:07:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968290#M610620</guid>
      <dc:creator>mehul_3</dc:creator>
      <dc:date>2007-03-26T07:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968291#M610621</link>
      <description>Hi (again) Mehul:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; No OnlineJFS is installed. So how could I proceed further in production enviornment to reduce the logical volume?&lt;BR /&gt;&lt;BR /&gt;I answered that too, originally:&lt;BR /&gt;&lt;BR /&gt;If you don't have OnlineJFS (I hope not) then you must backup any data that you want saved; 'lvreduce' the filesystem; 'newfs' a filesystem within the logical volume; and reload your data.&lt;BR /&gt;&lt;BR /&gt;That said, *every* production server should have OnlineJFS licensed. NOt only does this allow you to perform filesystem resizing while the filesystem is in use, but it offers a series of mount options that can dramatically improve filesystem performance under select conditions.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968291#M610621</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-03-26T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing logical volume</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968292#M610622</link>
      <description>Reducing a volume group without JFS is not recommended in HP the best way is take the backup of the logical volume &amp;amp; take the details of the lv group file and remove the logical volume and recreate a logical volume this will save your time instead of reducing logical volume and running fsck.</description>
      <pubDate>Wed, 28 Mar 2007 00:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reducing-logical-volume/m-p/3968292#M610622</guid>
      <dc:creator>Jollyjet</dc:creator>
      <dc:date>2007-03-28T00:41:05Z</dc:date>
    </item>
  </channel>
</rss>

