<?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: can't delete file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917877#M407247</link>
    <description>No special characters</description>
    <pubDate>Thu, 11 Aug 2005 16:20:52 GMT</pubDate>
    <dc:creator>Alain Tesserot</dc:creator>
    <dc:date>2005-08-11T16:20:52Z</dc:date>
    <item>
      <title>can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917862#M407232</link>
      <description>There is a file used by syslogd call /vav/adm/syslog/mail.log&lt;BR /&gt;I need to delete that file but get an error that the file doesn't exists yet syslogd keeps appending to the file. I really need to delete that file as it is growing and eventually will fill up the file system.&lt;BR /&gt;I thought of running fsck -F vxfs -m /dev/rdsk/c0t0d0s0 but are not sure if the -m option will be usefull on a mounted file system.</description>
      <pubDate>Thu, 11 Aug 2005 15:24:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917862#M407232</guid>
      <dc:creator>Alain Tesserot</dc:creator>
      <dc:date>2005-08-11T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917863#M407233</link>
      <description>You need to stop processes accessing the file. check those processes.&lt;BR /&gt;&lt;BR /&gt;fuser -u "./file"&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 11 Aug 2005 15:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917863#M407233</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-08-11T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917864#M407234</link>
      <description>Do not delete this file.&lt;BR /&gt;&lt;BR /&gt;Instead try this;&lt;BR /&gt;# cd /var/adm/syslog&lt;BR /&gt;# &amp;gt; mail.log&lt;BR /&gt;&lt;BR /&gt;The mail.log file is a log file for the open process of sendmail. Do a rm on this file and you will not get the inodes.&lt;BR /&gt;&lt;BR /&gt;You can &amp;gt;mail.log or do 'cat /dev/null &amp;gt; mail.log' Both do the same thing&lt;BR /&gt;&lt;BR /&gt;Can't find it? What is in the /var/adm/syslog directory?&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917864#M407234</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-08-11T15:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917865#M407235</link>
      <description>The processes writing to the file are what is keeping it open and therefore preventing you from actually deleting it.  You must find those processes and kill/terminate them.  the fuser command will be helpful here.</description>
      <pubDate>Thu, 11 Aug 2005 15:29:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917865#M407235</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-11T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917866#M407236</link>
      <description>Try zeroing out that file:&lt;BR /&gt;&lt;BR /&gt;# &amp;gt; /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;cheers!!!</description>
      <pubDate>Thu, 11 Aug 2005 15:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917866#M407236</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-11T15:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917867#M407237</link>
      <description>there is a log file trimming process available through SAM that might be of help here too...</description>
      <pubDate>Thu, 11 Aug 2005 15:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917867#M407237</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-11T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917868#M407238</link>
      <description>&lt;BR /&gt;get lsof : &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;use "ls -l" and then "lsof" like this (You had a typo of /vav when I think you meant /var):&lt;BR /&gt;&lt;BR /&gt;[root@vpart1 /var/appl]# ls -l /var/adm/syslog/mail.log&lt;BR /&gt;-r--r--r--   1 root       root       3907409 Aug  1 16:57 /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@vpart1 /var/appl]# lsof /var/adm/syslog/mail.log &lt;BR /&gt;COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME&lt;BR /&gt;syslogd 809 root    9u   REG 64,0x8  3907409 10494 /var/adm/syslog/mail.log&lt;BR /&gt;[root@vpart1 /var/appl]# &lt;BR /&gt;&lt;BR /&gt;and DO NOT DELETE IT, simply truncate it:&lt;BR /&gt;&lt;BR /&gt;cat /dev/null &amp;gt; /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 11 Aug 2005 15:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917868#M407238</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-08-11T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917869#M407239</link>
      <description>I can't zero out or delete the file yet syslogd is able to write to that file.&lt;BR /&gt;I tried doing an fuser -fu /var/adm/syslog/mail.log but get an error that the file doesn't exist so I can't really tell who besides syslogd is using that file.&lt;BR /&gt;I tried stoping syslogd and delete the file but no luck. I'm thinking this either a bug or inode corruption.</description>
      <pubDate>Thu, 11 Aug 2005 15:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917869#M407239</guid>
      <dc:creator>Alain Tesserot</dc:creator>
      <dc:date>2005-08-11T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917870#M407240</link>
      <description>You can truncate the file through SAM using the following selections&lt;BR /&gt;&lt;BR /&gt;Routine Tasks&lt;BR /&gt;System Log Files&lt;BR /&gt;&lt;BR /&gt;Select /var/adm/syslog/mail.log&lt;BR /&gt;&lt;BR /&gt;then from the "Actions" menu, select "Trim-&amp;gt;Trim to Zero"&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917870#M407240</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-11T15:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917871#M407241</link>
      <description>It ill warn you about active processes having the file open, but select ok and proceed ans the file willbe truncated.</description>
      <pubDate>Thu, 11 Aug 2005 15:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917871#M407241</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-11T15:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917872#M407242</link>
      <description>What system/OS do you have? If fuser is not showing what processes are using /var/adm/syslog try lsof as suggested by Harry.&lt;BR /&gt;&lt;BR /&gt;Run lsof on the mounted filesystem that contains the "/var/adm/syslog" directory. You can get that info from bdf as follows:&lt;BR /&gt;&lt;BR /&gt;# bdf /var/adm/syslog&lt;BR /&gt;&lt;BR /&gt;now run lsof on the mntpoint returned by the above command...if it's "/var" then run lsof on it like...&lt;BR /&gt;&lt;BR /&gt;# lsof /var | grep -i "/var/adm/syslog"&lt;BR /&gt;&lt;BR /&gt;this will show what processes are using it.</description>
      <pubDate>Thu, 11 Aug 2005 15:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917872#M407242</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-11T15:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917873#M407243</link>
      <description>If the file does not exist how do you know that the syslogd is writing to this file? Could it be writing to another file? Somewhere else?&lt;BR /&gt;&lt;BR /&gt;If you have no mail.log file in the /var/adm/syslog directory, try to 'touch mail.log' and watch to see if it is increasing in size.&lt;BR /&gt;&lt;BR /&gt;Maybe the mail.log wasn't there but the syslogd says it is writing somewhere.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Aug 2005 15:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917873#M407243</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-08-11T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917874#M407244</link>
      <description>There is a file /var/adm/syslog/mail.log&lt;BR /&gt;If I do ls /var/adm/syslog/ I can see mail.log&lt;BR /&gt;If I do touch  /var/adm/syslog/mail.log and do ls /var/adm/syslog/ then I see 2 files named mail.log&lt;BR /&gt;If I do rm mail.log it removes the one I touched but the original remains and can't be deleted.&lt;BR /&gt;&lt;BR /&gt;I think there may be file system corruption.&lt;BR /&gt;Any ideas?</description>
      <pubDate>Thu, 11 Aug 2005 16:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917874#M407244</guid>
      <dc:creator>Alain Tesserot</dc:creator>
      <dc:date>2005-08-11T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917875#M407245</link>
      <description>What about unprintable/control characters in the file name? Check this:&lt;BR /&gt; &lt;BR /&gt;ll /var/adm/syslog | vis&lt;BR /&gt; &lt;BR /&gt;If you see something strange there, check also /etc/syslog.conf using vis(1).&lt;BR /&gt; &lt;BR /&gt;Just my 2 cents...&lt;BR /&gt;Dietmar.</description>
      <pubDate>Thu, 11 Aug 2005 16:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917875#M407245</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2005-08-11T16:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917876#M407246</link>
      <description>ll | cat -v&lt;BR /&gt;ll | vis&lt;BR /&gt;&lt;BR /&gt;There seems to be special char in the file name.</description>
      <pubDate>Thu, 11 Aug 2005 16:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917876#M407246</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-08-11T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917877#M407247</link>
      <description>No special characters</description>
      <pubDate>Thu, 11 Aug 2005 16:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917877#M407247</guid>
      <dc:creator>Alain Tesserot</dc:creator>
      <dc:date>2005-08-11T16:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917878#M407248</link>
      <description>do an ls -il on the directory to get the inide number of the file and then "find /var/adm/syslog -inum num -exec rm {} \;" to remove the file.</description>
      <pubDate>Thu, 11 Aug 2005 16:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917878#M407248</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-11T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917879#M407249</link>
      <description>Either remove it as suggested by Alan or zero it out:&lt;BR /&gt;&lt;BR /&gt;# find /var/adm/syslog -inum num -exec cat /dev/null &amp;gt; {} \;</description>
      <pubDate>Thu, 11 Aug 2005 16:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917879#M407249</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-11T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917880#M407250</link>
      <description>You can try removing it interactively by moving into the "/var/adm/syslog" dir and issuing the "rm -i" command:&lt;BR /&gt;&lt;BR /&gt;# cd /var/adm/syslog&lt;BR /&gt;&lt;BR /&gt;# rm -i *mail*&lt;BR /&gt;&lt;BR /&gt;then answer "y" only to the specific file you want removed.&lt;BR /&gt;&lt;BR /&gt;regards!!!</description>
      <pubDate>Thu, 11 Aug 2005 17:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917880#M407250</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-11T17:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't delete file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917881#M407251</link>
      <description>Thanks everyone&lt;BR /&gt;&lt;BR /&gt;The solution was to use rm -i *mail*&lt;BR /&gt;That got rid of the file and I was able to touch a new one and point syslogd to it.</description>
      <pubDate>Fri, 12 Aug 2005 09:03:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-delete-file/m-p/4917881#M407251</guid>
      <dc:creator>Alain Tesserot</dc:creator>
      <dc:date>2005-08-12T09:03:27Z</dc:date>
    </item>
  </channel>
</rss>

