<?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: reduce the lv size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228555#M468071</link>
    <description>Lvreduce is a risky command.&lt;BR /&gt;Suggest o have a backup of the FS mounted on this LV. Then run the below command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1)fsadm -F vxfs -b &lt;SIZE of="" the="" lv="" in="" mb=""&gt; &lt;FILSYSTEM-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;2) lvreduce -L &lt;SIZE of="" the="" lv="" in="" mb=""&gt; &lt;LV name=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sagar&lt;/LV&gt;&lt;/SIZE&gt;&lt;/FILSYSTEM-NAME&gt;&lt;/SIZE&gt;</description>
    <pubDate>Mon, 08 Mar 2010 08:40:04 GMT</pubDate>
    <dc:creator>Sagar Sirdesai</dc:creator>
    <dc:date>2010-03-08T08:40:04Z</dc:date>
    <item>
      <title>reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228553#M468069</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I suppose to increase the lvcreate to 15gb but i have increased it to 25gb.&lt;BR /&gt;&lt;BR /&gt;Now can i reduce it to 15gb by calculating the extents by using the following command:&lt;BR /&gt;#lvreduce -l &lt;LV extends=""&gt; &lt;LOGICAL vol=""&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/LOGICAL&gt;&lt;/LV&gt;</description>
      <pubDate>Mon, 08 Mar 2010 08:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228553#M468069</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-03-08T08:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228554#M468070</link>
      <description>The data inside this lv is the production data.&lt;BR /&gt;If i reduce the size, will there is an impact on the data?</description>
      <pubDate>Mon, 08 Mar 2010 08:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228554#M468070</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-03-08T08:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228555#M468071</link>
      <description>Lvreduce is a risky command.&lt;BR /&gt;Suggest o have a backup of the FS mounted on this LV. Then run the below command&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1)fsadm -F vxfs -b &lt;SIZE of="" the="" lv="" in="" mb=""&gt; &lt;FILSYSTEM-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;2) lvreduce -L &lt;SIZE of="" the="" lv="" in="" mb=""&gt; &lt;LV name=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sagar&lt;/LV&gt;&lt;/SIZE&gt;&lt;/FILSYSTEM-NAME&gt;&lt;/SIZE&gt;</description>
      <pubDate>Mon, 08 Mar 2010 08:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228555#M468071</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2010-03-08T08:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228556#M468072</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Reducing a logical volume works well.&lt;BR /&gt;&lt;BR /&gt;However, there are documented cases when it&lt;BR /&gt;caused problems.&lt;BR /&gt;&lt;BR /&gt;It is strongly recommended to run a defragmentation of a logical volume before&lt;BR /&gt;running lvreduce(1M).&lt;BR /&gt;&lt;BR /&gt;Regrads,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 08 Mar 2010 09:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228556#M468072</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-03-08T09:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228557#M468073</link>
      <description>&lt;BR /&gt;i suppose we should run the command in reverse order.Not sure...&lt;BR /&gt;you can use lvreduce or lvextend with -L and final size.&lt;BR /&gt;&lt;BR /&gt;If you have just run then i suppose it would not hurt the data but its always better to take the backup and reduce and see if if any files are lost.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 08 Mar 2010 09:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228557#M468073</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-08T09:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228558#M468074</link>
      <description>Hi Sagar,&lt;BR /&gt;&lt;BR /&gt;I have just increased the LV not yet increased the filesystem.  In that case can we use lvreduce command?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228558#M468074</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-03-08T09:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228559#M468075</link>
      <description>Backup mount point which corresponding to logical volume which need to lvreduce&lt;BR /&gt;&lt;BR /&gt;Check below thread steps given.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1011016" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1011016&lt;/A&gt;</description>
      <pubDate>Mon, 08 Mar 2010 09:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228559#M468075</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-03-08T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228560#M468076</link>
      <description>&amp;gt;&amp;gt;I have just increased the LV not yet increased the filesystem. In that case can we use lvreduce command?&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;again misunderstanding  "lvextend" command will increase size of the logical volume, with help of online JFS , you refect changes without umounting file system&lt;BR /&gt;&lt;BR /&gt;You meant to say ? you just issue "lvextend" didn't do "fsadm" right ?</description>
      <pubDate>Mon, 08 Mar 2010 09:28:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228560#M468076</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-03-08T09:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228561#M468077</link>
      <description>"...Reducing a logical volume works well...."&lt;BR /&gt;&lt;BR /&gt;With Online JFS, yes.  OP didn't mention OS version nor if online JFS was installed.&lt;BR /&gt;&lt;BR /&gt;If not, you need a good backup of all the data on that logical volume.   You'd have to reduce it "off-line" and restore the data.</description>
      <pubDate>Mon, 08 Mar 2010 14:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228561#M468077</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2010-03-08T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228562#M468078</link>
      <description>&amp;gt; I have just increased the LV not yet increased the filesystem. In that case can we use lvreduce command?&lt;BR /&gt; &lt;BR /&gt;If you did not use fsadm or extendfs to change the filesystem then you can use lvreduce without any problems. lvextend makes the lvol bigger but has no effect on the filesystem. The filesystem code does not look at the lvol size. Only the commands newfs, mkfs, fsadm and extendfs will modify what the filesystem sees.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; Now can i reduce it to 15gb by calculating the extents...&lt;BR /&gt; &lt;BR /&gt;LV extents are a real pain to use and easy to calculate incorrectly. Use -L #### in MBytes. If the original size in 15 GB, then lvreduce -L 15000 is all you need.</description>
      <pubDate>Tue, 09 Mar 2010 02:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228562#M468078</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-03-09T02:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228563#M468079</link>
      <description>&lt;!--!*#--&gt;&amp;gt;LV extents are a real pain to use and easy to &amp;gt;calculate incorrectly. Use -L #### in MBytes. &amp;gt;If the original size in 15 GB, then lvreduce &amp;gt;-L 15000 is all you need.&lt;BR /&gt;&lt;BR /&gt;Bill, I must neglect it. I prefer to use "-l extent number", because it is a much exact method. To me 15GB is 15*1024 MB which is 15360 MB. 15000MB would be 15GiB, but I dislike these notations anyway. If you stick to the sizes in MB or GB by extending an FS, you can easily get lost between the conversions. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Mar 2010 10:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228563#M468079</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-03-09T10:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228564#M468080</link>
      <description>Thank you Bill Hassell for making me clear.&lt;BR /&gt;&lt;BR /&gt;One more thing:&lt;BR /&gt;Actually i have increased to 25gb instead of 15gb right then in that case how can i revert to 15gb?&lt;BR /&gt;Following command will revert me to 15gb?&lt;BR /&gt;&lt;BR /&gt;#lvreduce -L 15360 &lt;LV name=""&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/LV&gt;</description>
      <pubDate>Thu, 11 Mar 2010 09:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228564#M468080</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-03-11T09:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228565#M468081</link>
      <description>You follow below example :- (In this example iam reducing "50MB&lt;BR /&gt;&lt;BR /&gt;step1 :- Backup &lt;FILE_SYSTEM&gt; important ****&lt;BR /&gt;&lt;BR /&gt;step 2 :-# fsadm -F vxfs -D -d -E -e -s /test/testlv -&amp;gt; File system name&lt;BR /&gt;&lt;BR /&gt;step 3 :-# fsadm -F vxfs -b &lt;NEW_SIZE&gt; /test/testlv -&amp;gt; File system name&lt;BR /&gt;&lt;BR /&gt;step 4:- # umount /test/testlv -&amp;gt; File system name&lt;BR /&gt;(this depends, hence i am not comfortable so i'm unmounting before redcuing)&lt;BR /&gt;&lt;BR /&gt;step 5 :- # lvreduce -L &lt;NEW size=""&gt; /dev/vg01/lvol4&lt;BR /&gt;&lt;BR /&gt;Warning: rounding up logical volume size to extent boundary at size "52" MB.&lt;BR /&gt;&lt;BR /&gt;When a logical volume is reduced useful data might get lost;&lt;BR /&gt;&lt;BR /&gt;do you really want the command to proceed (y/n) : y&lt;BR /&gt;&lt;BR /&gt;Logical volume "/dev/vg01/lvol4" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf &lt;BR /&gt;&lt;BR /&gt;More refernce.&lt;BR /&gt;&lt;BR /&gt;# fsadm ???F vxfs ???d ???D ???e ???E &lt;MOUNTPOINT&gt;&lt;BR /&gt;-d perform directory defragmentation&lt;BR /&gt;-e perform extent defragmentation&lt;BR /&gt;# fsadm ???F vxfs ???b &lt;N&gt; &lt;MOUNTPOINT&gt;&lt;BR /&gt;-b &lt;N&gt; set new file system size to n KB&lt;BR /&gt;# lvreduce ???L &lt;N&gt; /dev/vgXX/lvolX&lt;BR /&gt;-L &lt;N&gt; set new size of lvol to n MB&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/MOUNTPOINT&gt;&lt;/N&gt;&lt;/MOUNTPOINT&gt;&lt;/NEW&gt;&lt;/NEW_SIZE&gt;&lt;/FILE_SYSTEM&gt;</description>
      <pubDate>Thu, 11 Mar 2010 10:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228565#M468081</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-03-11T10:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: reduce the lv size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228566#M468082</link>
      <description>Thank you.</description>
      <pubDate>Tue, 16 Mar 2010 04:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-the-lv-size/m-p/5228566#M468082</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-03-16T04:37:44Z</dc:date>
    </item>
  </channel>
</rss>

