<?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 /var full, cannot rm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912469#M107604</link>
    <description>Hi,&lt;BR /&gt;My /var is 100%, due too a many many files in /var/tmp.&lt;BR /&gt;I'd like to rm /var/tmp/*, but there are too many arguments to use a "*".&lt;BR /&gt;ls : Too many arguments&lt;BR /&gt;rm : Too many arguments&lt;BR /&gt;ls | xargs -l rm doesn't seem to work either.&lt;BR /&gt;What to now ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan</description>
    <pubDate>Tue, 25 Feb 2003 10:29:34 GMT</pubDate>
    <dc:creator>Ceesjan van Hattum</dc:creator>
    <dc:date>2003-02-25T10:29:34Z</dc:date>
    <item>
      <title>/var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912469#M107604</link>
      <description>Hi,&lt;BR /&gt;My /var is 100%, due too a many many files in /var/tmp.&lt;BR /&gt;I'd like to rm /var/tmp/*, but there are too many arguments to use a "*".&lt;BR /&gt;ls : Too many arguments&lt;BR /&gt;rm : Too many arguments&lt;BR /&gt;ls | xargs -l rm doesn't seem to work either.&lt;BR /&gt;What to now ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan</description>
      <pubDate>Tue, 25 Feb 2003 10:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912469#M107604</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2003-02-25T10:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912470#M107605</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;for i in /var/tmp/*&lt;BR /&gt;do&lt;BR /&gt;   rm $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ian</description>
      <pubDate>Tue, 25 Feb 2003 10:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912470#M107605</guid>
      <dc:creator>Ian Box</dc:creator>
      <dc:date>2003-02-25T10:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912471#M107606</link>
      <description>Hi,&lt;BR /&gt;you could use the find command, e.g.:&lt;BR /&gt;# find /var/tmp/ -type f -name "whatever_with_wildcard" -exec ls -l {} \;&lt;BR /&gt;And if you get the correct output, substitute ls -l by rm.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 10:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912471#M107606</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-02-25T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912472#M107607</link>
      <description>Hi CeesJan,&lt;BR /&gt;&lt;BR /&gt;find /var/tmp -mtime +7 | while read LINE&lt;BR /&gt;do&lt;BR /&gt;rm $LINE&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Tue, 25 Feb 2003 10:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912472#M107607</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-02-25T10:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912473#M107608</link>
      <description>Try find with -exec:-&lt;BR /&gt;&lt;BR /&gt;find /var/tmp -type f -mtime +X -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;Where X = a number of days old.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you can still use rm but limit the number of files by specifying a less general argument. Something like:-&lt;BR /&gt;&lt;BR /&gt;rm a*    # remove all files starting with a&lt;BR /&gt;rm b*&lt;BR /&gt;rm aa*&lt;BR /&gt;rm bb*&lt;BR /&gt;&lt;BR /&gt;etc depending what filenames you have.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Tue, 25 Feb 2003 10:36:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912473#M107608</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2003-02-25T10:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912474#M107609</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;#cd /var&lt;BR /&gt;#rm -rf tmp&lt;BR /&gt;#mkdir tmp&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 10:47:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912474#M107609</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2003-02-25T10:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912475#M107610</link>
      <description>Thanks the respons.&lt;BR /&gt;All options i already found myself, but the real solution was to find the processes which generate these files.&lt;BR /&gt;It seemed that i had more than 10 fbackup processes running.&lt;BR /&gt;By killing these fbackups, the /var was automatically reduced to 63%. The amount of files decrease just enough to let my wildcard-expension (*) work again.&lt;BR /&gt;&lt;BR /&gt;Case closed&lt;BR /&gt;Thanks,&lt;BR /&gt;Ceesjan</description>
      <pubDate>Tue, 25 Feb 2003 10:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912475#M107610</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2003-02-25T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912476#M107611</link>
      <description>A note of caution here!&lt;BR /&gt;&lt;BR /&gt;Don't forget that many system daemons/software place their lockfiles in /var/tmp (for example RaidManager). You don't necessarily want to remove everything or you could delete something the system needs.&lt;BR /&gt;&lt;BR /&gt;I would look to see what is in the directory first using Robert Jan's solution (but echo rather than rm the line) then use John Palmers idea to delete blocks of files.&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Feb 2003 10:56:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912476#M107611</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2003-02-25T10:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912477#M107612</link>
      <description>Hi Ceesjan&lt;BR /&gt;&lt;BR /&gt;Check against a current /var/tmp file by running lsof - this will identify the process associated with the file.&lt;BR /&gt;&lt;BR /&gt;rgds, Robin</description>
      <pubDate>Tue, 25 Feb 2003 12:05:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912477#M107612</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-02-25T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: /var full, cannot rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912478#M107613</link>
      <description>You may have files loaded in the /var folder prior to mount.&lt;BR /&gt;&lt;BR /&gt;Boot your system to single user mode.&lt;BR /&gt;&lt;BR /&gt;shutdown -ry now &lt;BR /&gt;&lt;BR /&gt;interupt the boot process when prompted&lt;BR /&gt;&lt;BR /&gt;bo Y to interact with the IPL&lt;BR /&gt;&lt;BR /&gt;hpux -is&lt;BR /&gt;&lt;BR /&gt;Boots to single user mode, mounts nothing.&lt;BR /&gt;&lt;BR /&gt;cd /var&lt;BR /&gt;&lt;BR /&gt;There should be nothing there.  If there is, list it and delete it or possbily move it somewhere else.&lt;BR /&gt;&lt;BR /&gt;You can issue manual mount commands in single user mode.&lt;BR /&gt;&lt;BR /&gt;mount /home&lt;BR /&gt;&lt;BR /&gt;Then move the offending files there if applicable.&lt;BR /&gt;&lt;BR /&gt;If files have been copied into /var while not mounted, they wont show up on a ls after a filesystem is mounted on the folder.  Thus the files appear hidden and are tough to find.&lt;BR /&gt;&lt;BR /&gt;Its happened to me a few times with flaky disks and finger mistakes.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 25 Feb 2003 13:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full-cannot-rm/m-p/2912478#M107613</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-02-25T13:33:27Z</dc:date>
    </item>
  </channel>
</rss>

