<?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: Decrease and increase file system. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020004#M633129</link>
    <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;Online reducing the filesystem has always failed for me with fsadm_vxfs.&lt;BR /&gt;&lt;BR /&gt;Boot the system in the multiuser mode.&lt;BR /&gt;&lt;BR /&gt;# shutdown 0&lt;BR /&gt;Mount /home and /var&lt;BR /&gt;&lt;BR /&gt;Pls. take the backup of /home and /var.&lt;BR /&gt;&lt;BR /&gt;Do an lvremove on both the lvols in the single user mode and recreate them as per requirement.&lt;BR /&gt;&lt;BR /&gt;Create new filesystem and restore from backup.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
    <pubDate>Thu, 10 Jul 2003 08:48:05 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2003-07-10T08:48:05Z</dc:date>
    <item>
      <title>Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020000#M633125</link>
      <description>Hi,&lt;BR /&gt;I need to decresase /home and increase /var.&lt;BR /&gt;I have HP-UX 10.20 with JFS, i have been searching for this question in the forums and i have found this:&lt;BR /&gt;&lt;BR /&gt;Decrease:&lt;BR /&gt;fsadm -F vxfs -b new_size /home&lt;BR /&gt;&lt;BR /&gt;if i need to defrag first:&lt;BR /&gt;fsadm -F vxfs -d -e -s /home&lt;BR /&gt;&lt;BR /&gt;Increase size: &lt;BR /&gt;fsadm -F vxfs -b new_size /var&lt;BR /&gt;&lt;BR /&gt;The questions i have are:&lt;BR /&gt;1) Can i do this inside CDE with root permisions or i need to run in single user mode?&lt;BR /&gt;2) When man fsadm i do not find the -b option, do i have the incorrect version of fsadm?&lt;BR /&gt;3) Can i loose the data in the partitions?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Frank.</description>
      <pubDate>Thu, 10 Jul 2003 08:23:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020000#M633125</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-07-10T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020001#M633126</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;1) You can run in multi-user mode - in fact you have to apply the fsadm to the mount point, so the LV must be mounted&lt;BR /&gt;&lt;BR /&gt;2) Check "man fsadm_vxfs"&lt;BR /&gt;&lt;BR /&gt;3) You can lose data if the fsadm does not check the blocks - in later versions (Version 3 or above according to my manpage) it will relocate blocks automatically during a decrease - check what your manpage states&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Ollie.</description>
      <pubDate>Thu, 10 Jul 2003 08:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020001#M633126</guid>
      <dc:creator>Ollie R</dc:creator>
      <dc:date>2003-07-10T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020002#M633127</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) you can do it in CDE, but the chance that some files in your home dir will be in use are greater. If you can go down to single user would be best&lt;BR /&gt;&lt;BR /&gt;2) you have the correct version of fsadm, you should look at the man page of&lt;BR /&gt;fsadm_vxfs&lt;BR /&gt;but it rarely exists in the manpages...&lt;BR /&gt;&lt;BR /&gt;Look at this thread and don't laught too much :)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fd45a3e6e0bd6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fd45a3e6e0bd6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3) HP says no, you will not loose anything, but i will take a backup, especially of the /home. Enlarging is quite never a real problem, but descreasing... well, tried it a couple of times but never worked, always failed for inode in use or similar..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 08:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020002#M633127</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-07-10T08:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020003#M633128</link>
      <description>Man page attached :)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 08:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020003#M633128</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-07-10T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020004#M633129</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;Online reducing the filesystem has always failed for me with fsadm_vxfs.&lt;BR /&gt;&lt;BR /&gt;Boot the system in the multiuser mode.&lt;BR /&gt;&lt;BR /&gt;# shutdown 0&lt;BR /&gt;Mount /home and /var&lt;BR /&gt;&lt;BR /&gt;Pls. take the backup of /home and /var.&lt;BR /&gt;&lt;BR /&gt;Do an lvremove on both the lvols in the single user mode and recreate them as per requirement.&lt;BR /&gt;&lt;BR /&gt;Create new filesystem and restore from backup.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 10 Jul 2003 08:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020004#M633129</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-07-10T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020005#M633130</link>
      <description>HI,&lt;BR /&gt;thanks for your replies, i will assign points soon.&lt;BR /&gt;&lt;BR /&gt;One thing more:&lt;BR /&gt;&lt;BR /&gt;What is the new_size parameter for the -b option kbytes, blocks...? &lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Thu, 10 Jul 2003 08:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020005#M633130</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-07-10T08:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020006#M633131</link>
      <description>Hi Frank,&lt;BR /&gt;&lt;BR /&gt;Say the /var fs is 1000MB you want it to be 500MB.&lt;BR /&gt;&lt;BR /&gt;# fsadm -F vxfs -b 500M /var&lt;BR /&gt;&lt;BR /&gt;new size is the size you want the filesystem to be now.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 10 Jul 2003 08:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020006#M633131</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2003-07-10T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020007#M633132</link>
      <description>-b by default in blocks and each block is of 512 byte.&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
      <pubDate>Thu, 10 Jul 2003 08:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020007#M633132</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2003-07-10T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020008#M633133</link>
      <description>Hi,&lt;BR /&gt;i knew the -b option was in bytes...&lt;BR /&gt;tested yesterday :)&lt;BR /&gt;&lt;BR /&gt;fsadm -F vxfs -b size_in_mb*1024 /mount_point&lt;BR /&gt;&lt;BR /&gt;will do the work..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If in doubt, a fast serch in the forum will clarify you.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 09:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020008#M633133</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-07-10T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020009#M633134</link>
      <description>Frank,&lt;BR /&gt;&lt;BR /&gt;A word of caution.  In VxFS version 2 file systems (which I'm reasonably sure you have in 10.20), reducing the size of the file system will fail if there are FS structures in the areas to be reduced.  You should reorg the FS first using "fsadm -F vxfs -d -D -e -E /mount_point".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 09:27:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020009#M633134</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-10T09:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Decrease and increase file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020010#M633135</link>
      <description>Hi all,&lt;BR /&gt;thanks for your answers.&lt;BR /&gt;&lt;BR /&gt;The correct solution cames from Sanjiv, i have no success with fsadm, i have had to remove the two volumes and recreate them.&lt;BR /&gt;&lt;BR /&gt;the solution was:&lt;BR /&gt;&lt;BR /&gt;- shutdown 0  (Single user mode)&lt;BR /&gt;- mount /var and /home&lt;BR /&gt;- backup them&lt;BR /&gt;- umount both&lt;BR /&gt;- lvremove /dev/vg_name/lv_nme  (twice)&lt;BR /&gt;- lvcreate -L new_size_in_megas -n lv_name /dev/vg_name (twice)&lt;BR /&gt;- newfs -F vxfs /dev/vg_name/rlv_name&lt;BR /&gt;- mount again /var /home&lt;BR /&gt;- restore backup.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Frank.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jul 2003 08:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-and-increase-file-system/m-p/3020010#M633135</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-07-11T08:14:54Z</dc:date>
    </item>
  </channel>
</rss>

