<?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: Logical Volume Full and unable to free up space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293723#M337155</link>
    <description>If you have removed files, but the space is not opened you prolly have a process running that is not allowing the space to "free up"&lt;BR /&gt;&lt;BR /&gt;Use lsof to find this.&lt;BR /&gt;&lt;BR /&gt;Also may want to use cleanup -c 2 to remove patches that have been supercedes at least 2 times. This is incredibly useful for clearing out space.&lt;BR /&gt;&lt;BR /&gt;For finding large files you may want one of the below:&lt;BR /&gt;1. find /var -xdev -depth -size +7000 â  xdev -exec ll {} \; | more&lt;BR /&gt;(finds files larger than 7000k)&lt;BR /&gt;2. find / -type f -size +1000000c -xdev -exec ls -l {} \;&lt;BR /&gt;(if you want to search for a number of characters try the lower case c after the number)&lt;BR /&gt;OR&lt;BR /&gt;find / -xdev -size +1000000c -exec ll {} \; &lt;BR /&gt;(searches for directories as well as files.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or my favorite refence is touch.&lt;BR /&gt;To remove dated files. Can be modified to remove sized files as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# touch -amt 200504150000 /tmp/ref1&lt;BR /&gt;# touch -amt 200802282359 /tmp/ref2&lt;BR /&gt;&lt;BR /&gt;# find /opt/mtmc/ibs/import/reject -xdev -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec rm {} \+&lt;BR /&gt;&lt;BR /&gt;This will remove files that are newer (more recently modified) than April 15 at 0000 AND NOT newer than Feb, 28th 2359 of this year&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Oct 2008 14:00:58 GMT</pubDate>
    <dc:creator>Adam W.</dc:creator>
    <dc:date>2008-10-24T14:00:58Z</dc:date>
    <item>
      <title>Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293722#M337154</link>
      <description>Having an issue with a logical volume on HP UX 11.23&lt;BR /&gt;The output of df -k shows below&lt;BR /&gt;/var                  (/dev/vg00/lvol8       ) :  &lt;BR /&gt;8912896 total allocated Kb  &lt;BR /&gt;0 free allocated Kb&lt;BR /&gt;8912896 used allocated Kb&lt;BR /&gt;&lt;BR /&gt;when i go into /var and do a du -ks i get the following&lt;BR /&gt;426368 &lt;BR /&gt;I have connected to HPUX Server with a Linux box and it reports the /var directory having used 380MB approx.&lt;BR /&gt;&lt;BR /&gt;I did remove a directory in /var/adm/sw/save but a minute later the disk was full again. There is something causing the volume to fill up and im not convinced it's data.&lt;BR /&gt;&lt;BR /&gt;Any ideas on where i start to troubleshoot this?&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Fri, 24 Oct 2008 13:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293722#M337154</guid>
      <dc:creator>HoweIan</dc:creator>
      <dc:date>2008-10-24T13:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293723#M337155</link>
      <description>If you have removed files, but the space is not opened you prolly have a process running that is not allowing the space to "free up"&lt;BR /&gt;&lt;BR /&gt;Use lsof to find this.&lt;BR /&gt;&lt;BR /&gt;Also may want to use cleanup -c 2 to remove patches that have been supercedes at least 2 times. This is incredibly useful for clearing out space.&lt;BR /&gt;&lt;BR /&gt;For finding large files you may want one of the below:&lt;BR /&gt;1. find /var -xdev -depth -size +7000 â  xdev -exec ll {} \; | more&lt;BR /&gt;(finds files larger than 7000k)&lt;BR /&gt;2. find / -type f -size +1000000c -xdev -exec ls -l {} \;&lt;BR /&gt;(if you want to search for a number of characters try the lower case c after the number)&lt;BR /&gt;OR&lt;BR /&gt;find / -xdev -size +1000000c -exec ll {} \; &lt;BR /&gt;(searches for directories as well as files.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or my favorite refence is touch.&lt;BR /&gt;To remove dated files. Can be modified to remove sized files as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# touch -amt 200504150000 /tmp/ref1&lt;BR /&gt;# touch -amt 200802282359 /tmp/ref2&lt;BR /&gt;&lt;BR /&gt;# find /opt/mtmc/ibs/import/reject -xdev -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec rm {} \+&lt;BR /&gt;&lt;BR /&gt;This will remove files that are newer (more recently modified) than April 15 at 0000 AND NOT newer than Feb, 28th 2359 of this year&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 14:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293723#M337155</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2008-10-24T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293724#M337156</link>
      <description>Removing /var/adm/sw/save was BAD..  No longer will you be able to rollback any bad patch.  Bummer..&lt;BR /&gt;&lt;BR /&gt;As you mindlessly delete, maybe important stuff, keep in mind that processes are activly writing to /var and some even might keep configuration information there.  Removing a log file of an active process may not free up the disk space.  You need to be selective about what you are deleting.&lt;BR /&gt;&lt;BR /&gt;Certainly files with extentions like .log are prime candidates but typically processes need to be stopped / restarted or sig_hupped in order to restart their logging.&lt;BR /&gt;&lt;BR /&gt;There is a whole list of HPUX applications that typically use /var.&lt;BR /&gt;&lt;BR /&gt;I would start first by investigating your largests users.  A du -sk * under /var is a good place to start.  Cleanup of /var/adm/sw should only be done with the cleanup command. &lt;BR /&gt;Good candidates for review are:&lt;BR /&gt;/var/adm/syslog/syslog.log&lt;BR /&gt;/var/adm/wtmp* &lt;BR /&gt;/var/adm/btmp*&lt;BR /&gt;/var/mail&lt;BR /&gt;/var/tmp&lt;BR /&gt;/var/preserve&lt;BR /&gt;/var/sam/log&lt;BR /&gt;and more....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And as another option, depending on your environment, /var/ may just need to be bigger.  &lt;BR /&gt;&lt;BR /&gt;Caution is needed before you render your system unusable just to resolve some other issue.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 14:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293724#M337156</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2008-10-24T14:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293725#M337157</link>
      <description>Hi Ian:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I did remove a directory in /var/adm/sw/save &lt;BR /&gt;&lt;BR /&gt;Yikes!  Unless you know what you are doing, or (hopefully) used the 'cleanup' command, you may have ruined your server for any future patching!&lt;BR /&gt;&lt;BR /&gt;Your symptoms sound like a process that has opened a temporary file; immediately unlinked (removed) it [a common technique]; and continued to write to the temporary file.  When the last process writing to the file in question terminates, then the disk space consumed will be returned to the system.&lt;BR /&gt;&lt;BR /&gt;You can use 'lsof' to see unlinked, open files:&lt;BR /&gt;&lt;BR /&gt;# lsof +D /var +L1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 24 Oct 2008 14:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293725#M337157</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-24T14:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293726#M337158</link>
      <description>Howelan,&lt;BR /&gt;   I hope you have a full system backup handy, cause installing new patches and/or rolling your server back is now impossible. If you have a full backup somewhere you need to push it immediately. THEN try to figure out why /var is full.</description>
      <pubDate>Fri, 24 Oct 2008 14:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293726#M337158</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2008-10-24T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293727#M337159</link>
      <description>I don't have a backup of the /var/adm/sw/save directory for this server.&lt;BR /&gt;I did run cleanup -c 1 before i removed the contents of this directory. I hope it hasn't prevented me from rolling out new patches to this server.&lt;BR /&gt;&lt;BR /&gt;Regarding the lsof command&lt;BR /&gt;This command is not recognised when i run it from the command line. &lt;BR /&gt;when i do a "find / -name" lsof i do not find this program.&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Oct 2008 14:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293727#M337159</guid>
      <dc:creator>HoweIan</dc:creator>
      <dc:date>2008-10-24T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293728#M337160</link>
      <description>&amp;gt;I don't have a backup of the /var/adm/sw/save directory for this server.  I did run cleanup -c 1 before I removed the contents of this directory.&lt;BR /&gt;&lt;BR /&gt;You won't be able to remove any patches.  The purpose of cleanup is to recover space, there is no need to remove anything else.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Regarding the lsof command&lt;BR /&gt;&lt;BR /&gt;You can download it from the porting center:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.80/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.80/&lt;/A&gt;</description>
      <pubDate>Fri, 24 Oct 2008 22:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293728#M337160</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-24T22:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Volume Full and unable to free up space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293729#M337161</link>
      <description>Removing the sw/save directory may prevent from installing any more software, not just patches. swinstall uses the sw directory to understand what has already been installed. You should try installing a small package (like lsof) to see if it will work. If not, this server has a big problem and will probably have to be rebuilt if you don't have a backup.&lt;BR /&gt; &lt;BR /&gt;In the future, for any mountpoint, NEVER look for big files and just delete them. A lot of new sysadmins have removed those giant files called vmunix and wondered why the server will not boot anymore. You want to find the big directories first. The command (for any directory or mountpoint) is:&lt;BR /&gt; &lt;BR /&gt;du -kx /var | sort -rn | head -20&lt;BR /&gt; &lt;BR /&gt;The directories at the top are the ones to look inside. To sort the files inside the directory, use:&lt;BR /&gt; &lt;BR /&gt;ll /some_dir | sort -rnk5 | head -20&lt;BR /&gt; &lt;BR /&gt;The fact that the directory immediately fills up after removing a lot of space means you have a runaway program. And one of the reasons not to look for big files is that this bad program may have created 50,000 small files, thus eating up your space. You can be assured that the disk is filling up with data. You just have to locate the junk file(s) and/or the program causing the mess.</description>
      <pubDate>Fri, 24 Oct 2008 22:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/logical-volume-full-and-unable-to-free-up-space/m-p/4293729#M337161</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-24T22:41:06Z</dc:date>
    </item>
  </channel>
</rss>

