<?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 file system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634048#M646255</link>
    <description>&lt;BR /&gt;HI,&lt;BR /&gt;&lt;BR /&gt;To reduce the size of the logical volume:&lt;BR /&gt;&lt;BR /&gt;lvreduce -L &lt;NEW size="" in="" mb=""&gt;  /dev/vg##/lvol##&lt;BR /&gt;&lt;BR /&gt;-USA&lt;/NEW&gt;</description>
    <pubDate>Thu, 20 Dec 2001 15:53:39 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2001-12-20T15:53:39Z</dc:date>
    <item>
      <title>reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634045#M646252</link>
      <description>as I reduce an file system:&lt;BR /&gt;/dev/vg01/lvol8     430080   38287  367363    9% /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;reduce in :&lt;BR /&gt;/dev/vg01/lvol8      40960   38191    2653   94% /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;reduce of 430mb in 40M</description>
      <pubDate>Thu, 20 Dec 2001 15:44:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634045#M646252</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2001-12-20T15:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634046#M646253</link>
      <description>Do you have a question? Not sure what you want.</description>
      <pubDate>Thu, 20 Dec 2001 15:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634046#M646253</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-20T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634047#M646254</link>
      <description>What are you asking?  I don't see a question anywhere?&lt;BR /&gt;&lt;BR /&gt;Are you concerned with the reduction in the amount of data?  If so, that is part of the risk of reducing a file system.  When you reduce you are at risk of losing data.&lt;BR /&gt;&lt;BR /&gt;The most risk free way to reduce an LV is to back it up (a couple of times), remove the LV, recreate the LV and then restore your data.</description>
      <pubDate>Thu, 20 Dec 2001 15:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634047#M646254</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-12-20T15:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634048#M646255</link>
      <description>&lt;BR /&gt;HI,&lt;BR /&gt;&lt;BR /&gt;To reduce the size of the logical volume:&lt;BR /&gt;&lt;BR /&gt;lvreduce -L &lt;NEW size="" in="" mb=""&gt;  /dev/vg##/lvol##&lt;BR /&gt;&lt;BR /&gt;-USA&lt;/NEW&gt;</description>
      <pubDate>Thu, 20 Dec 2001 15:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634048#M646255</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-12-20T15:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634049#M646256</link>
      <description>my question is that steps I must follow to reduce el file system?&lt;BR /&gt;, only with lvreduce?</description>
      <pubDate>Thu, 20 Dec 2001 16:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634049#M646256</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2001-12-20T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634050#M646257</link>
      <description>Hi Jairo,&lt;BR /&gt;&lt;BR /&gt;I see 38MB of data on this file system. It's better to take a backup of it before you attempt to reduce the file system.&lt;BR /&gt;&lt;BR /&gt;You can do it safely if you have OnlineJFS. If you don't, I insist you to take the backup, unmount the file system, use lvreduce and mount the file system back.&lt;BR /&gt;&lt;BR /&gt;Online JFS,&lt;BR /&gt;&lt;BR /&gt;1. Take backup&lt;BR /&gt;2. #fsadm -b 40960 /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;Without onlineJFS&lt;BR /&gt;&lt;BR /&gt;1. Take backup&lt;BR /&gt;2. Umount /dev/vg01/lvol8&lt;BR /&gt;3. lvreduce -L 40 /dev/vg01/lvol8&lt;BR /&gt;4. fsck /dev/vg01/lvol8&lt;BR /&gt;4. mount /dev/vg01/lvol8 /etc/opt/activation&lt;BR /&gt;5. Restore the data (if the data is corrupted)&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 20 Dec 2001 16:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634050#M646257</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-20T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634051#M646258</link>
      <description>hey,&lt;BR /&gt;&lt;BR /&gt;I would recommend you to backup your file system before you reduce it ! Then lvreduce it. Do an fsck after reducing the file system for any possible errors.&lt;BR /&gt;&lt;BR /&gt;# lvreduce -L new_size lvname.&lt;BR /&gt;&lt;BR /&gt;SW</description>
      <pubDate>Thu, 20 Dec 2001 16:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634051#M646258</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2001-12-20T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634052#M646259</link>
      <description>gc1 # umount /etc/opt/activation/&lt;BR /&gt;sgc1 # lvreduce -L 70 /dev/vg01/lvol8   &lt;BR /&gt;execute all steps:&lt;BR /&gt;&lt;BR /&gt;Warning: rounding up logical volume size to extent boundary at size "72" MB.&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/lvol8" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf&lt;BR /&gt;sgc1 # fsck /dev/vg01/lvol8&lt;BR /&gt;file system is clean - log replay is not required&lt;BR /&gt;sgc1 # mount /dev/vg01/lvol8&lt;BR /&gt;&lt;BR /&gt;but cradled I do bdf, I continue seeing 430 Ms in the file system:&lt;BR /&gt;so that the modification is not updated?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sgc1 # bdf&lt;BR /&gt;/dev/vg01/lvol8     430080   38287  367363    9% /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Dec 2001 17:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634052#M646259</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2001-12-20T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634053#M646260</link>
      <description>hey,&lt;BR /&gt;&lt;BR /&gt;what is the output of lvdisplay ?&lt;BR /&gt;&lt;BR /&gt;Normally it's a problem  while extending file systems and if not doing an extendfs after lvextend. &lt;BR /&gt;&lt;BR /&gt;Some info:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cf6e503a1ba845b77b/screen=ckiDisplayDocument?docId=200000009933331" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=cf6e503a1ba845b77b/screen=ckiDisplayDocument?docId=200000009933331&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SW</description>
      <pubDate>Thu, 20 Dec 2001 17:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634053#M646260</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2001-12-20T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634054#M646261</link>
      <description>Hi Jairo,&lt;BR /&gt;&lt;BR /&gt;Can you please attach lvdisplay /dev/vg01/lvol8?.&lt;BR /&gt;&lt;BR /&gt;Also try unmount and mount again. &lt;BR /&gt;&lt;BR /&gt;Do you have recent LVM patches?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 20 Dec 2001 18:25:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634054#M646261</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-12-20T18:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634055#M646262</link>
      <description>I believe after you reduce the size of a lvol to a size smaller than a file system contained within the lgovical volume, you must re-create the file system.&lt;BR /&gt;If you were using Online JFS you could have used the fsadm command.  But if using std lvm commands (as it would appear you have) you would need to do the following steps:&lt;BR /&gt;1. Backup up the file system &lt;BR /&gt;2. Umount the file system&lt;BR /&gt;3. Create the new smaller filesystem using newfs command. Indicate the new smaller file system size using the -s size option newfs command.&lt;BR /&gt;4. Re-mount file system&lt;BR /&gt;5. Restore the backup up file system data to the newly created file system.&lt;BR /&gt;&lt;BR /&gt;That should fix ya,&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rit</description>
      <pubDate>Thu, 20 Dec 2001 18:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634055#M646262</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-12-20T18:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634056#M646263</link>
      <description>Jairo. There two steps to this process, 1)  reduce the logical volume, which you did correctly. And 2) Reduce the filesystem.&lt;BR /&gt;&lt;BR /&gt;You can reduce the filesystem with the fsadm command. To reduce your files system to 70MB, all you had to do was run the command&lt;BR /&gt;&lt;BR /&gt;fsadm -b 143360 /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;(The fsadm uses blocks. 1 MB = 2048 blocks, 70MB * 2048  = 143360 blocks).&lt;BR /&gt;&lt;BR /&gt;Try running the fsadm command above. If you get an error message. Then try putting back your old Logical Volume Information back in. (Look in /etc/lvmconf/vg01.conf ) And run &lt;BR /&gt;&lt;BR /&gt;lvextend -l 105 /dev/vg01/lvol8&lt;BR /&gt;&lt;BR /&gt;(105 is your old extends of 420MB/4. There are 4MB per each extends. It is preferable to work with extends than with MB) Run the lvdisplay /dev/vg01/lvol8 to view the current extends.&lt;BR /&gt;&lt;BR /&gt;If you did not modify this filesystem yet you should be able to restore. Then run the &lt;BR /&gt;&lt;BR /&gt;fsadm -b 143360 /etc/opt/activation&lt;BR /&gt;&lt;BR /&gt;If all else fails. Then you will need to follow the suggestions of the othe posters. Create an new small 70MB or 40MB partition, copy your data there and erase your old large partition.&lt;BR /&gt;&lt;BR /&gt;Don't forgot back, back, and backup!!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Dec 2001 18:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634056#M646263</guid>
      <dc:creator>Gene Matusovsky</dc:creator>
      <dc:date>2001-12-21T18:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: reduce file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634057#M646264</link>
      <description>Hello Jairo,&lt;BR /&gt;&lt;BR /&gt;since I do not know wether you have the "Online JFS/Advanced VxFS" installed and since you are only talking about a few MB:&lt;BR /&gt;- backup those few MB, perhaps just a simple "tar" to another filesystem&lt;BR /&gt;- unmount the filesystem to be reduced&lt;BR /&gt;- use "lvreduce" to shrink it as much as you want&lt;BR /&gt;- use "mkfs" to create a new filesystem on it&lt;BR /&gt;- mount it again, perhaps simply with "mount -a"&lt;BR /&gt;- untar the backup back to that filesystem&lt;BR /&gt;&lt;BR /&gt;Estimated amount of time: 5minutes!&lt;BR /&gt;&lt;BR /&gt;Good luck and merry X-mas!&lt;BR /&gt;Wodisc</description>
      <pubDate>Fri, 21 Dec 2001 22:13:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-file-system/m-p/2634057#M646264</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-12-21T22:13:39Z</dc:date>
    </item>
  </channel>
</rss>

