<?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 LV in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957169#M631807</link>
    <description>You can go back to the initial state if you extend back the LV and new logical extends match the logical extends removed by 'lvreduce' in the same order they were.&lt;BR /&gt;Then unmount FS and mount again.&lt;BR /&gt;&lt;BR /&gt;I did some tests lot of time about this and it worked. My test was the following:&lt;BR /&gt;&lt;BR /&gt;1) create a new LV&lt;BR /&gt;2) create a new FS on it&lt;BR /&gt;3) mount new FS&lt;BR /&gt;4) copy files on new FS&lt;BR /&gt;5) unmount FS&lt;BR /&gt;6) remove LV (--&amp;gt; release disk blocks)&lt;BR /&gt;7) create a new LV as large as removed LV (--&amp;gt; I'm sure disk blocks match the released disk blocks in step 6)&lt;BR /&gt;8) mount FS&lt;BR /&gt;9) read data files on FS.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Apr 2003 08:15:44 GMT</pubDate>
    <dc:creator>Jdamian</dc:creator>
    <dc:date>2003-04-23T08:15:44Z</dc:date>
    <item>
      <title>Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957167#M631805</link>
      <description>At first I have a LV named A with 4096M size.&lt;BR /&gt;Then I use lvreduce to reduce it size to 3072M. After lvreduce, the lvdisplay show the size of LV A is 3072M but bdf still show LV A is 4096M.&lt;BR /&gt;Then I reboot the machine, the LV A cann't mount because the file system is larger than LV size.&lt;BR /&gt;How can I do now if I want to keep all the data in LV A.</description>
      <pubDate>Wed, 23 Apr 2003 07:31:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957167#M631805</guid>
      <dc:creator>Rabel</dc:creator>
      <dc:date>2003-04-23T07:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957168#M631806</link>
      <description>If your FS is VxFS and Online JFS is installed on system, you can reduce a FS without unmounting, but you must reduce the FS prior to reduce the LV; not reduce LV prior to reduce FS... Why ?&lt;BR /&gt;&lt;BR /&gt;Imagine FS data exist on blocks that you have removed from LV ... how can system access now to them ?. no way.&lt;BR /&gt;&lt;BR /&gt;In other cases:&lt;BR /&gt;&lt;BR /&gt;1) VxFS without OnlineJFS: you must unmount you FS and try to run 'fsadm -b newsize'... I'm not sure this command work.&lt;BR /&gt;&lt;BR /&gt;2) HFS: you must unmount your FS and create again (newfs, mkfs)... that means losing data.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 08:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957168#M631806</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-04-23T08:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957169#M631807</link>
      <description>You can go back to the initial state if you extend back the LV and new logical extends match the logical extends removed by 'lvreduce' in the same order they were.&lt;BR /&gt;Then unmount FS and mount again.&lt;BR /&gt;&lt;BR /&gt;I did some tests lot of time about this and it worked. My test was the following:&lt;BR /&gt;&lt;BR /&gt;1) create a new LV&lt;BR /&gt;2) create a new FS on it&lt;BR /&gt;3) mount new FS&lt;BR /&gt;4) copy files on new FS&lt;BR /&gt;5) unmount FS&lt;BR /&gt;6) remove LV (--&amp;gt; release disk blocks)&lt;BR /&gt;7) create a new LV as large as removed LV (--&amp;gt; I'm sure disk blocks match the released disk blocks in step 6)&lt;BR /&gt;8) mount FS&lt;BR /&gt;9) read data files on FS.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 08:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957169#M631807</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-04-23T08:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957170#M631808</link>
      <description>Hi,&lt;BR /&gt;lvreduce reduce he size of logical volume not FS and bdf shows the info about File systems not logical volumes. lvreduce will destry the data because after doing the lvreduce you have to run newfs to make system aware that FS size got changed.&lt;BR /&gt;&lt;BR /&gt;So if you want to reduce size of a logical volume and you don't have Online JFS steps are below.&lt;BR /&gt;1. Take full backup of File system&lt;BR /&gt;2. umount FS&lt;BR /&gt;3. lvreduce logical volume &lt;BR /&gt;4. newfs &lt;BR /&gt;5. mount the FS and restore data.&lt;BR /&gt;&lt;BR /&gt;but if you have online JFS &lt;BR /&gt;1. fsadm reduce the filesystem size&lt;BR /&gt;2. lvreduce reduce the logical volume size.&lt;BR /&gt;&lt;BR /&gt;Sunil S</description>
      <pubDate>Fri, 25 Apr 2003 09:32:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957170#M631808</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2003-04-25T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957171#M631809</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Sure you haven't umounted the file sysetm before using lvreduce command.&lt;BR /&gt;&lt;BR /&gt;If you don't have Online JFS installed, then you have to unmount the lvol before reducing &lt;BR /&gt;(hope you have the backup)&lt;BR /&gt;&lt;BR /&gt;Get into single user mode ,unmount the file system, use lvreduce and do fsck of that lvol and init 3</description>
      <pubDate>Fri, 25 Apr 2003 10:05:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957171#M631809</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-04-25T10:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957172#M631810</link>
      <description>hi,&lt;BR /&gt;I think u already lost the data if didn't have the backup. only thing u can do now is run newfs on new reduced LV, so that it will be recognised by LVM.&lt;BR /&gt;&lt;BR /&gt;without onlin JFS u can not reduce the LV size, because you will loos the data. best option is copy the present contents onto tape, then reduce LV, then run newfs then copy the old contents to the new FS.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Apr 2003 10:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957172#M631810</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2003-04-25T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce LV</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957173#M631811</link>
      <description>Hi,&lt;BR /&gt;   using the commands:&lt;BR /&gt;&lt;BR /&gt;   "lvextend" or "lvreduce"&lt;BR /&gt;&lt;BR /&gt;to increase or decrease the dimension of your filesystem, it can happen that the space is seen as not modified when you try to mount the just-modified filesystem.&lt;BR /&gt;&lt;BR /&gt;To avoid this, you have to execute the following command:&lt;BR /&gt;&lt;BR /&gt;extendfs /dev/vg00/lvolXX&lt;BR /&gt;&lt;BR /&gt;where XX is the number of your volume.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Ernesto.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Apr 2003 10:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-lv/m-p/2957173#M631811</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2003-04-28T10:01:31Z</dc:date>
    </item>
  </channel>
</rss>

