<?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 /usr file system (vxfs) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535176#M25829</link>
    <description>Hi Elliott:&lt;BR /&gt;&lt;BR /&gt;'tar' resides in /sbin as does 'frecover'.  You could use either 'tar' or 'fbackup' while /usr is mounted, and then use '/sbin/tar' or '/sbin/frecover' to restore.  Yes, 'cpio' only exists in /usr.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 31 May 2001 17:27:40 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-05-31T17:27:40Z</dc:date>
    <item>
      <title>Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535168#M25821</link>
      <description>Given that /usr is large enough to be reduced what is the best way to accomplish the task. Aren't command that are necessary to accomplish the reduce in /usr/bin - /usr/sbin ?</description>
      <pubDate>Thu, 31 May 2001 16:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535168#M25821</guid>
      <dc:creator>Elliott Moskowitz</dc:creator>
      <dc:date>2001-05-31T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535169#M25822</link>
      <description>Hi Elliott:&lt;BR /&gt;&lt;BR /&gt;If you have Online JFS licensed, then you may be able to do this while the filesytem is mounted.  Generally you are advised to degragment the filesystem first.  It is more likely that the subsequent attempt to shrink the filesystem will succeed if you do this.  If files reside and are inuse in the region destined for reduction, the reduction will fail.  The latest (3.3) version of JFS does much better at this than earlier version, I understand.&lt;BR /&gt;&lt;BR /&gt;Assuming online JFS:&lt;BR /&gt;&lt;BR /&gt;# fsadm -d -D -e -E /&lt;MOUNTPOINT&gt;&lt;BR /&gt;# fsadm -b &lt;NEWSIZE&gt; /&lt;MOUNTPOINT&gt;&lt;BR /&gt;# lvreduce -L &lt;NEWSIZE&gt; /dev/vgXX/lvolX&lt;BR /&gt;&lt;BR /&gt;If you do not have the online JFS component, then you must backup the filesystem's data; unmount the filesystem; lvreduce;, recreate; and reload the contents. &lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/NEWSIZE&gt;&lt;/MOUNTPOINT&gt;&lt;/NEWSIZE&gt;&lt;/MOUNTPOINT&gt;</description>
      <pubDate>Thu, 31 May 2001 16:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535169#M25822</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-31T16:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535170#M25823</link>
      <description>Hi Elliott,&lt;BR /&gt;&lt;BR /&gt;first the most important thing.... make a backup!!!&lt;BR /&gt;&lt;BR /&gt;You will find all the commands needed in /sbin.&lt;BR /&gt;These commands are not linked to any libraries and work in single user mode and without /usr mounted.&lt;BR /&gt;&lt;BR /&gt;So it depends if you have advanced JFS installed or not. But if so check the manpage for fsadm_vxfs.&lt;BR /&gt;&lt;BR /&gt;If not you need to get to single user mode and do a lvreduce on that lvol.&lt;BR /&gt;&lt;BR /&gt;But really make sure that you have the data on a tape to fall back. Reducing always bears some risk.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Steffi Jones</description>
      <pubDate>Thu, 31 May 2001 16:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535170#M25823</guid>
      <dc:creator>Steffi Jones_1</dc:creator>
      <dc:date>2001-05-31T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535171#M25824</link>
      <description>If you have online jfs can do the following&lt;BR /&gt;1. defrag your file system&lt;BR /&gt;fsadm -F vxfs -d -e -s /var&lt;BR /&gt;2. Reduce the file system&lt;BR /&gt;Example: you want to go from 1G to 500Mb&lt;BR /&gt;Calculate size in bytes 500*1024=510000 ( I didn't use a calculater but you get the idea :) 0&lt;BR /&gt;&lt;BR /&gt;fsadm -F vxfs -b 510000 /var&lt;BR /&gt;&lt;BR /&gt;If this works then you can go to the next step&lt;BR /&gt;3. Reduce the lvol&lt;BR /&gt;bdf - get new size of fs and divide by 1024 to get Mb of filesystem&lt;BR /&gt;Use the newsize + 4m so if the new sise is 512M use 516M so you don't destroy any data in your file system.&lt;BR /&gt;&lt;BR /&gt;lvreduce -L &lt;FSSIZEINMB&gt; /dev/vgXX/lvol#&lt;BR /&gt;example&lt;BR /&gt;lvreduce -L 516 /dev/vgXX/lvol#&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Peggy&lt;/FSSIZEINMB&gt;</description>
      <pubDate>Thu, 31 May 2001 16:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535171#M25824</guid>
      <dc:creator>Peggy Fong</dc:creator>
      <dc:date>2001-05-31T16:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535172#M25825</link>
      <description>James &amp;amp; Steffi,&lt;BR /&gt;&lt;BR /&gt;I do not have JFS.&lt;BR /&gt;&lt;BR /&gt;In addition, to clarify my question, if I will be using the mount, cpio, etc... commands to do the restore, once I do the lvreduce on /usr, will I still be able to use those commands ?</description>
      <pubDate>Thu, 31 May 2001 16:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535172#M25825</guid>
      <dc:creator>Elliott Moskowitz</dc:creator>
      <dc:date>2001-05-31T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535173#M25826</link>
      <description>#rcp -p /usr/bin/lvreduce /tmp&lt;BR /&gt;#rcp -p /usr/bin/newfs /tmp&lt;BR /&gt;#tar cvf /usr/*&lt;BR /&gt;Boot in single user mode&lt;BR /&gt;#mount /tmp&lt;BR /&gt;#cd /tmp&lt;BR /&gt;#lvreduce -L xxx /dev/vg00/lvolx&lt;BR /&gt;#newfs -F vxfs /dev/vg00/rlvolx&lt;BR /&gt;#mount /dev/vg00/lvolx /usr&lt;BR /&gt;#cd /usr&lt;BR /&gt;#tar xv&lt;BR /&gt;#reboot</description>
      <pubDate>Thu, 31 May 2001 16:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535173#M25826</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-05-31T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535174#M25827</link>
      <description>HI Elliott:&lt;BR /&gt;&lt;BR /&gt;OK.  'vxfs' is also know as "JFS", but JFS has a base and an online component.  If you don't have the online component (no "online" noted in: 'swlist -l bundle|grep -i jfs' output) then you will need to drop to single-user mode and use the commands in /sbin.&lt;BR /&gt;&lt;BR /&gt;I suggest that booting to single-user mode is easist; then doing your LVM maintenance is the easiest, cleanest way to start.  You could also do your backups there (with /usr mounted) to be sure of a quiet system.&lt;BR /&gt;&lt;BR /&gt;As always, make very, very sure you have a good backup.&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 May 2001 17:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535174#M25827</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-31T17:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535175#M25828</link>
      <description>The point I do not understand is once I do the lvreduce and the newfs to reduce the /usr file system, the file /usr/bin/cpio I need to restore the backup will no longer exist. Even if I were to copy /usr/bin/cpio to another file system and try to execute the cpio command from there I receive an error message.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 May 2001 17:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535175#M25828</guid>
      <dc:creator>Elliott Moskowitz</dc:creator>
      <dc:date>2001-05-31T17:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce /usr file system (vxfs)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535176#M25829</link>
      <description>Hi Elliott:&lt;BR /&gt;&lt;BR /&gt;'tar' resides in /sbin as does 'frecover'.  You could use either 'tar' or 'fbackup' while /usr is mounted, and then use '/sbin/tar' or '/sbin/frecover' to restore.  Yes, 'cpio' only exists in /usr.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 31 May 2001 17:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reduce-usr-file-system-vxfs/m-p/2535176#M25829</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-31T17:27:40Z</dc:date>
    </item>
  </channel>
</rss>

