<?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 /usr and increase /var in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368341#M195220</link>
    <description>Jane,&lt;BR /&gt;&lt;BR /&gt;Sorry, I didn't realize you Online JFS.  In that case, you don't need to worry about single user.  I think Sundar's done a pretty good job of elaborating the steps involved so I won't bother repeating.  Good luck!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Mon, 30 Aug 2004 14:10:06 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-08-30T14:10:06Z</dc:date>
    <item>
      <title>decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368334#M195213</link>
      <description>I have the following file system layout:&lt;BR /&gt;/dev/vg00/lvol7    1024000  452984  571016   44% /var&lt;BR /&gt;/dev/vg00/lvol6    2764800 1376856 1377144   50% /usr&lt;BR /&gt;&lt;BR /&gt;I need to decrease /usr and give the space to /var. &lt;BR /&gt;&lt;BR /&gt;Is it OK to lvreduce /usr and lvextend /var in single usr mode? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Mon, 30 Aug 2004 13:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368334#M195213</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2004-08-30T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368335#M195214</link>
      <description>Jane,&lt;BR /&gt;&lt;BR /&gt;That's definitely the easy way to do it since you need to unmount them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 30 Aug 2004 13:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368335#M195214</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-08-30T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368336#M195215</link>
      <description>So I can decrease /usr without side effect? I have done lvextend but never lvreduce on /usr. &lt;BR /&gt;&lt;BR /&gt;OK, I will give it a try. I have online JFS installed, can I lvreduce in mutiuser mode? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Mon, 30 Aug 2004 13:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368336#M195215</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2004-08-30T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368337#M195216</link>
      <description>Jane,&lt;BR /&gt;&lt;BR /&gt;  Reducing the LV is only very rarely succesful especially with the layout versions prior to 4.&lt;BR /&gt;&lt;BR /&gt;  Keep a good backup of /usr before reducing the lv.&lt;BR /&gt;&lt;BR /&gt;  You could use online JFS to defrag the file system before reducing but again I assume you dont have Online JFS since you have mentioned you need to bring down the system to reduce the LV.&lt;BR /&gt;&lt;BR /&gt;  Before lvreduce, you need to execute fsadm to reduce the filesystem size.&lt;BR /&gt;&lt;BR /&gt;  After lvextend, you can execute either fsadm or extendfs to increase the filesystem size.&lt;BR /&gt;&lt;BR /&gt;-- Sundar.</description>
      <pubDate>Mon, 30 Aug 2004 13:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368337#M195216</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-08-30T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368338#M195217</link>
      <description>If you have OnlineJFS installed then why bother going to the single user mode ?&lt;BR /&gt;&lt;BR /&gt;Even with OnlineJFS, lvreduce is kinda destructive&lt;BR /&gt;&lt;BR /&gt;1) Backup /usr&lt;BR /&gt;2) fsadm -F vxfs -D -E -d -e /usr&lt;BR /&gt;    &lt;BR /&gt;  This will defrag the filesystem and thus incrases the chances of being able to reduce the filesystem size.&lt;BR /&gt;&lt;BR /&gt;3) fsadm -F vxfs -b &lt;NEWSIZE&gt;m /usr&lt;BR /&gt;4) lvreduce -L XXX /dev/vg00/lvolX&lt;BR /&gt;5) lvextend -L YYY /dev/vg00/lvolY&lt;BR /&gt;6) fsadm -F vxfs -b &lt;NEWSIZE&gt;m /var&lt;BR /&gt;7) bdf and confirm&lt;BR /&gt;&lt;BR /&gt;-- Sundar.&lt;/NEWSIZE&gt;&lt;/NEWSIZE&gt;</description>
      <pubDate>Mon, 30 Aug 2004 13:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368338#M195217</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-08-30T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368339#M195218</link>
      <description>hi Sundar,&lt;BR /&gt;&lt;BR /&gt;Thanks for the details and warnings. &lt;BR /&gt;&lt;BR /&gt;I need to increase /var to put other system's image there ( this machine is my ignite server). &lt;BR /&gt;&lt;BR /&gt;I have found the way to put the images on other files system (/homes). So I won't risk to do it. The good lesson I learned is that to calculate the size while installing the OS or leave some unallocated space in vg00.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Jane</description>
      <pubDate>Mon, 30 Aug 2004 13:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368339#M195218</guid>
      <dc:creator>jane zhang</dc:creator>
      <dc:date>2004-08-30T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368340#M195219</link>
      <description>lvreduce might be a problem. Doing lvextend will not be a problem. If you have onlineJFS, you can even do this online.&lt;BR /&gt;&lt;BR /&gt;If you have onlineJFS, you can use this procedure to reduce the size,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062938991" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000062938991&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The itrc doc id is A4360299.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Aug 2004 14:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368340#M195219</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-08-30T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368341#M195220</link>
      <description>Jane,&lt;BR /&gt;&lt;BR /&gt;Sorry, I didn't realize you Online JFS.  In that case, you don't need to worry about single user.  I think Sundar's done a pretty good job of elaborating the steps involved so I won't bother repeating.  Good luck!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 30 Aug 2004 14:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368341#M195220</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-08-30T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: decrease /usr and increase /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368342#M195221</link>
      <description>I get the point!&lt;BR /&gt;Thnx guys!&lt;BR /&gt;What i did:&lt;BR /&gt;&lt;BR /&gt;# fsadm -F vxfs -b 6000m /opt&lt;BR /&gt;vxfs fsadm: /dev/vg00/rlvol6 is currently 7028736 sectors - size will be reduced&lt;BR /&gt;vxfs fsadm: allocations found in shrink range, moving data&lt;BR /&gt;# lvreduce -L 6000 /dev/vg00/lvol6&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/vg00/lvol6" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;&lt;BR /&gt;Then with SAM increase /usr volume ;)&lt;BR /&gt;&lt;BR /&gt;Brgds,&lt;BR /&gt;Sergej</description>
      <pubDate>Wed, 31 Aug 2005 03:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/decrease-usr-and-increase-var/m-p/3368342#M195221</guid>
      <dc:creator>Sergej_5</dc:creator>
      <dc:date>2005-08-31T03:33:56Z</dc:date>
    </item>
  </channel>
</rss>

